-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Raw HTML declaration casing inconsistency between spec and reference parser #620
Comments
If HTML allows them (can you link to the spec?) then certainly we should too. |
Spec is here: https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state Note that HTML though, treats old XML stuff (declarations, instructions), as comments. Except for the (ASCII case-insensitive) |
OK, let's change this. Do you want to do a PR? |
Done! |
This was changed in the commonmark spec in commonmark/commonmark-spec#620 Fixes pulldown-cmark#659
For block HTML, a declaration is as follows:
For raw HTML (inline), it is as follows:
The reference parser does not seem to care about the inline HTML restriction on uppercase ASCII letters:
CM:
Note that both are inline, and both “work”.
I am raising this issue here as I think a better solution is to change the spec, to allow ASCII lowercase alphas in declarations, as HTML also allows them.
The text was updated successfully, but these errors were encountered: