-
Notifications
You must be signed in to change notification settings - Fork 708
[css-syntax-3] Potentially missing a "parse error" specifier in "consume a URL token"? #7987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This may explain why no parse error is "emitted" in consume a URL token but it is not clear to me as well. |
(Generalizing this issue to all occurrence of "parse errors".) Another case is consume a qualified rule, which mentions Explicitly mentioning (and processing) these "bad and orphan" tokens as parse errors in all the algorithms would make them unnecessarily complex imo.
|
[css-foo]
(this is the name from the spec URL, without a level number unless the issue is specific to that level).
If you're proposing a new feature that doesn't obviously fit in an existing spec, skip this part — don't make something up.
[css-syntax-3]
“make it better” means different things to different people!
The specification has a paragraph that is as follows:

In the third case, we have obviously run into poor, malformed syntax. However, the spec never actually says that a parse error is given in this case, so a spec-compliant validator would not actually report a problem. This leads me to think that we are missing a parse error.
(Note: there is a parse error defined for the second case, but the way the spec is worded it does not apply to the third case)
CSS Syntax Module Level 3
The text was updated successfully, but these errors were encountered: