Skip to content

Number of parse errors for <!doctype html><math></html> #138

Open
@JKingweb

Description

@JKingweb

Line 1044 of tests19.dat in the tree construction tests lists three parse errors:

#data
<!doctype html><math></html>
#errors
(1,28): unexpected-end-tag
(1,28): expected-one-end-tag-but-got-another
(1,28): unexpected-end-tag

I have only been able to identify two of them, the first in foreign content parsing:

If node's tag name, converted to ASCII lowercase, is not the same as the tag name of the token, then this is a parse error.

And the second in the "in body" insertion mode:

Otherwise, if there is a node in the stack of open elements that is not either a dd element, a dt element, ..., or the html element, then this is a parse error.

After that the "after body" insertion mode only emits a parse error during fragment parsing (which this is not).

The test would seem to be in error. Is my assessment correct?

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