NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 164 - Allow xmlns='' on any HTML element that is a child of a node that isn't an HTML element.
Allow xmlns='' on any HTML element that is a child of a node that isn't an HT...
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-20 21:26 CEST by Nobody
Modified: 2008-07-22 17:56 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-04-20 21:26:28 CEST
Index: source
===================================================================
--- source	(revision 1425)
+++ source	(revision 1426)
@@ -4945,11 +4945,32 @@
    <dd><code title="handler-onunload">onunload</code></dd>
   </dl>
 
-  <p>Finally, any attribute starting with the string "<code
-  title="attr-data-*">data-</code>" may be specified on any <span>HTML
+  <p>Also, any attribute starting with the string "<code
+  title="attr-data-*">data-</code>" can be specified on any <span>HTML
   element</span>, to store custom data specific to the page.</p>
 
 
+  <p>In <span>HTML documents</span>, the <code>html</code> element,
+  and any other elements in the <span>HTML namespace</span> whose
+  parent element is not in the <span>HTML namespace</span>, may have
+  an <code title="">xmlns</code> attribute specified, if, and only if,
+  it has the exact value
+  "<code>http://www.w3.org/1999/xhtml</code>". This does not apply to
+  <span>XML documents</span>.</p>
+
+  <p class="note">In HTML, the <code title="">xmlns</code> attribute
+  has absolutely no effect. It is basically a talisman. It is allowed
+  merely to make migration to and from XHTML mildly easier. When
+  parsed by an <span>HTML parser</span>, the attribute ends up in the
+  null namespace, not the "<code>http://www.w3.org/2000/xmlns/</code>"
+  namespace like namespace declaration attributes in XML do.</p>
+
+  <p class="note">In XML, an <code title="">xmlns</code> attribute is
+  part of the namespace declaration mechanism, and an element cannot
+  actually have an <code title="">xmlns</code> attribute in the null
+  namespace specified.</p>
+
+
   <h4>The <dfn title="attr-id"><code>id</code></dfn> attribute</h4>
 
   <p>The <code title="attr-id">id</code> attribute represents its
@@ -5547,7 +5568,6 @@
    <dd>A <code>head</code> element followed by a <code>body</code> element.</dd>
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-html-manifest">manifest</code></dd>
-   <!--<dd><code title="attr-html-xmlns">xmlns</code></dd>-->
    <dt>DOM interface:</dt>
    <dd>No difference from <code>HTMLElement</code>.</dd>
 <!--
@@ -5576,25 +5596,6 @@
   any <code>base</code> elements are seen, its value is not subject to
   being made relative to any base URI.</p>
 
-  <p>Though it has absolutely no effect and no meaning, the
-  <code>html</code> element, in <span>HTML documents</span>, may have
-  an <code title="">xmlns</code> attribute specified, if, and only if,
-  it has the exact value
-  "<code>http://www.w3.org/1999/xhtml</code>". This does not apply to
-  <span>XML documents</span>.</p>
-
-  <p class="note">In HTML, the <code title="">xmlns</code> attribute
-  has absolutely no effect. It is basically a talisman. It is allowed
-  merely to make migration to and from XHTML mildly easier. When
-  parsed by an <span>HTML parser</span>, the attribute ends up in the
-  null namespace, not the "<code>http://www.w3.org/2000/xmlns/</code>"
-  namespace like namespace declaration attributes in XML do.</p>
-
-  <p class="note">In XML, an <code title="">xmlns</code> attribute is
-  part of the namespace declaration mechanism, and an element cannot
-  actually have an <code title="">xmlns</code> attribute in the null
-  namespace specified.</p>
-
 
   <h3>Document metadata</h3>