Bugzilla – Bug 1032
HtmlSerializer: use of localName without checking namespace
Last modified: 2016-12-14 11:24:48 CET
Elements with the local name "pre", "textarea", "listing", the void elements, and the non-escaping elements, should all be treated specially by HtmlSerializer only if the element's namespace is the HTML namespace. For example: <math><track/></math> This should be reserialized as: <math><track></track></math> As the standard says: "As stated in the terminology section, references to element types that do not explicitly specify a namespace always refer to elements in the HTML namespace. For example, if the spec talks about "a menuitem element", then that is an element with the local name "menuitem", the namespace "http://www.w3.org/1999/xhtml", and the interface HTMLMenuItemElement." Let me know if you want a patch.