gorilla / css

Package gorilla/css is a CSS3 tokenizer.
https://gorilla.github.io
BSD 3-Clause "New" or "Revised" License
86 stars 36 forks source link

Parser does not properly emit bad-string tokens #12

Open riking opened 6 years ago

riking commented 6 years ago

The "consume an at-rule" algorithm says that the following should result in an at-rule with a prelude of title 56 56 Who's this d****e? and no block, but instead enters an "unclosed q" error state.

https://www.w3.org/TR/css-syntax-3/#consume-an-at-rule

Real world example: https://mspfa.com/?s=21504&p=2 (added to a