csslint: support "i" in attribute selector

This commit is contained in:
tophf 2017-05-17 06:10:51 +03:00
parent 4250f89ed3
commit bc63eccaa9

View File

@ -2287,6 +2287,14 @@ Parser.prototype = function() {
tokenStream.mustMatch([Tokens.IDENT, Tokens.STRING]);
value += tokenStream.token().value;
value += this._readWhitespace();
if (tokenStream.match([Tokens.IDENT])
&& tokenStream.token().value.toLowerCase() == 'i') {
value += tokenStream.token().value;
value += this._readWhitespace();
} else {
tokenStream.unget();
}
}
tokenStream.mustMatch(Tokens.RBRACKET);