Closed domderen closed 7 years ago
Thanks. I will try to fix it on this weekend.
@ai Thanks, that would be great. I'm also happy to help with a PR, but just wasn't sure of the direction. Should the parser try to handle this exception gracefully? For example should it be handled in precheckMissedSemicolon
? Or should it catch the exception, and return it as CssSyntaxError?
Done 7c3e589
SafeParser idea is never return CssSyntaxError
:D. At least it should ignore the code.
Released in 3.0.1
That was super fast, thanks! ;)
SafeParser has failed to parse this CSS contents:
I know that
background: filter: ...
is not a correct usage, but it shouldn't crash the whole parsing process. Right now it fails with:Of if safe parser has to fail, it should throw an instance of CssSyntaxError to be able to find the faulty line number.