From bc63eccaa91271b0839a394e7c67ea45c631bbf7 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 17 May 2017 06:10:51 +0300 Subject: [PATCH] csslint: support "i" in attribute selector --- csslint/csslint-worker.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/csslint/csslint-worker.js b/csslint/csslint-worker.js index bb6be9df..31b24a10 100644 --- a/csslint/csslint-worker.js +++ b/csslint/csslint-worker.js @@ -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);