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>
- cause the
math element to be closed and HTML p and foo elements to be inserted as children of the body element; or
- 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?
https://html.spec.whatwg.org/multipage/parsing.html#scriptForeignEndTag
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>mathelement to be closed and HTMLpandfooelements to be inserted as children of thebodyelement; orpelement and a MathMLfooelement as children of themathelement?If 1 (what the browsers do), where does (or should) the specification specify that?