Skip to content

"Any other end tag" in-body has bugs #2226

@zcorpan

Description

@zcorpan

While checking the spec for #2224 I noticed that https://html.spec.whatwg.org/#parsing-main-inbody:special-3 appears to have bugs. Consider:

<!doctype html><body></adsfasdf>
  • There is no parse error (it's only a parse error if asdfasdf is on the stack (and not the current node after implied end tags), or is in the special category)
  • (noticed by @gsnedders) the algorithm doesn't terminate in that case?! i.e., you'll just keep "Set node to the previous entry in the stack of open elements."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions