Skip to content

"Any other end tag" #6788

@stevecheckoway

Description

@stevecheckoway

https://html.spec.whatwg.org/multipage/parsing.html#scriptForeignEndTag

Any other end tag

I think there might be a spec bug here. html5lib-tests added tree-building tests of the form <math></p><foo>. That test in particular agrees with how Safari, Firefox, and Chrome parse that bit of HTML. The Gumbo and html5ever parsers disagree. My reading of the spec agrees with Gumbo and html5ever.

Essentially, should the </p><foo>

  1. cause the math element to be closed and HTML p and foo elements to be inserted as children of the body element; or
  2. insert an HTML p element and a MathML foo element as children of the math element?

If 1 (what the browsers do), where does (or should) the specification specify that?

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