Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExternal scripts in an XML document mess up the namespace map #19087
Comments
bors-servo
added a commit
to servo/html5ever
that referenced
this issue
Nov 2, 2017
Reset namespace stack when processing an empty script tag This addresses the problem from servo/servo#19087. Non-script empty tags go through the `append_tag` code path which does not pop anything from the namespace stack. Empty script tags go through insert_tag/close_tag instead, which does pop an element from the namespace stack.
|
This was fixed by servo/html5ever@3c993fa#diff-e1bfdf8803c27281c69f3f0bb30729cf. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
foo.xhtml:
foo.js:
When loaded from a server that provides the application/xhtml+xml, this yields the output:
because the inline script element receives an empty namespace when it's being created by the parser, so we only create an Element instead of an HTMLScriptElement.