Skip to content

Raw HTML declaration casing inconsistency between spec and reference parser #620

@wooorm

Description

@wooorm

For block HTML, a declaration is as follows:

Start condition: line begins with the string <! followed by an uppercase ASCII letter.
End condition: line contains the character `.

For raw HTML (inline), it is as follows:

A declaration consists of the string <!, a name consisting of one or more uppercase ASCII letters, whitespace, a string of characters not including the character >, and the character >.


The reference parser does not seem to care about the inline HTML restriction on uppercase ASCII letters:

asd <!doctype html>

<!doctype html>

CM:

<p>asd <!doctype html></p>
<p><!doctype html></p>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions