[Bug 9964] Namespaces section should be more explicit + touch the extensibility problem

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9964


Henri Sivonen <hsivonen@iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsivonen@iki.fi




--- Comment #1 from Henri Sivonen <hsivonen@iki.fi>  2010-06-21 08:37:12 ---
(In reply to comment #0)

> HTML5 introduces undeclared (native) default namespaces for the root HTML
> element <html>, the root SVG element <svg> and the root MathML element <math>.

Actually, HTML5 defaults the namespace assignments for all HTML, SVG and MathML
elements (not just the roots). It never generates namespace declarations
implicitly in the DOM.

> For XML-compatibility, polyglot markup REQUIRES these default namespaces to be
> declared:
> 
> <html xmlns="http://www.w3.org/1999/xhtml">

Note that in text/html, this doesn't parse into a namespace declaration, so
this needs to be an exception for strict tree identity.

>  <svg xmlns="http://www.w3.org/2000/svg">
> <math xmlns="http://www.w3.org/1998/Math/MathML">

Also, any HTML child of SVG <foreignObject> needs to have
xmlns="http://www.w3.org/1999/xhtml".

> For XML-compatibility,
> polyglot markup REQUIRES that the XLink namespace is declared once on the HTML
> root element <html>, or once on the foreign element where is used — <svg> or
> <mathml>.

Please justify this assertion. See bug 9971.

> 5.3 Attributes with the <code>xml:</code> or <code>xmlns:</code> prefix
> HTML5 also allows the prefixed XML attributes base (xml:base), lang (xml:lang),
> space (xml:space) and xlink (xmlns:xlink). Declaring the namespace of xml
> prefix and the xmlns: prefix  is forbidden by XML.

HTML5 does not allowe xml:space, xml:base or xmlns:link on HTML elements in
text/html.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 21 June 2010 08:37:14 UTC