You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Parse is unable to gracefully recover css with incomplete @ rule. I'm getting an error on parsing css from the user input:
TypeError: Cannot read property 'start' of null
at Tokenizer.getRange (shady-css-parser/src/shady-css/tokenizer.js:88:36)
at Parser.parseAtRule (shady-css-parser/src/shady-css/parser.js:148:39)
at Parser.parseRule (shady-css-parser/src/shady-css/parser.js:86:25)
at Parser.parseRules (shady-css-parser/src/shady-css/parser.js:53:31)
at Parser.parseStylesheet (shady-css-parser/src/shady-css/parser.js:41:49)
at Parser.parse (shady-css-parser/src/shady-css/parser.js:34:21)
The minimal css input string example : ul {list-style: square); @. The following code is going to fail in Parser.parseAtRule:
The Parse is unable to gracefully recover css with incomplete @ rule. I'm getting an error on parsing css from the user input:
TypeError: Cannot read property 'start' of null
at Tokenizer.getRange (shady-css-parser/src/shady-css/tokenizer.js:88:36)
at Parser.parseAtRule (shady-css-parser/src/shady-css/parser.js:148:39)
at Parser.parseRule (shady-css-parser/src/shady-css/parser.js:86:25)
at Parser.parseRules (shady-css-parser/src/shady-css/parser.js:53:31)
at Parser.parseStylesheet (shady-css-parser/src/shady-css/parser.js:41:49)
at Parser.parse (shady-css-parser/src/shady-css/parser.js:34:21)
The minimal css input string example :
ul {list-style: square); @
. The following code is going to fail in Parser.parseAtRule:The token.advance() function discards the first @ for media rule and nulls tokenizer.currentToken (start) as nothing left in it.
The text was updated successfully, but these errors were encountered: