- From: <bugzilla@jessica.w3.org>
- Date: Thu, 15 Jun 2017 15:23:31 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30128 Bug ID: 30128 Summary: POLYGLOT namespace declarations Product: XPath / XQuery / XSLT Version: Recommendation Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Serialization 3.1 Assignee: cmsmcq@blackmesatech.com Reporter: alejandro.r.rojas@oracle.com QA Contact: public-qt-comments@w3.org Target Milestone: --- Test with this problem: Serialization-xhtml-2 Serialization-xhtml-21 Serialization-xhtml-22 Serialization-xhtml-38 Serialization-xhtml-40 In the tests from the above list, the expected ouput match for the first element <html> is <html> but I think it should also allow to match a namespace declaration for XHTML namespace like this: <html xmlns="http://www.w3.org/1999/xhtml"> This to allow implementations to create quirk-compatible documents. This because the spec says: ... If the value of the html-version serialization parameter is 5.0, the serializer SHOULD output namespace declarations in a way that is consistent with the requirements of [POLYGLOT]. ... >From POLYGLOT[https://www.w3.org/TR/html-polyglot/] : 4.4.1 Element-level namespaces [HTML5] introduces undeclared (native) default namespaces for the root HTML element, html, the root SVG element, svg, and the root MathML element, math. Polyglot markup declares the following default namespaces, when the markup languages are included in the document, to maintain XML compatibility [XML10]: <html xmlns="http://www.w3.org/1999/xhtml"> <math xmlns="http://www.w3.org/1998/Math/MathML"> <svg xmlns="http://www.w3.org/2000/svg"> Polyglot markup declares the default namespaces on the root HTML element, html, the root SVG element, svg, and the root MathML element math, and on any HTML elements used as children of SVG or MathML elements. Polyglot markup does not declare any other default or prefixed element namespace, because [HTML5] does not natively support the declaring of any other default or prefixed element namespace. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Thursday, 15 June 2017 15:23:39 UTC