[html5] r1426 - /
whatwg at whatwg.org
whatwg at whatwg.org
Thu Apr 10 02:44:12 PDT 2008
Author: ianh
Date: 2008-04-10 02:44:10 -0700 (Thu, 10 Apr 2008)
New Revision: 1426
Modified:
index
source
Log:
[c] (0) Allow xmlns='' on any HTML element that is a child of a node that isn't an HTML element.
Modified: index
===================================================================
--- index 2008-04-10 08:59:34 UTC (rev 1425)
+++ index 2008-04-10 09:44:10 UTC (rev 1426)
@@ -6482,10 +6482,29 @@
<dd><code title=handler-onunload><a href="#onunload">onunload</a></code>
</dl>
- <p>Finally, any attribute starting with the string "<code
- title="attr-data-*"><a href="#data-">data-</a></code>" may be specified on
+ <p>Also, any attribute starting with the string "<code
+ title="attr-data-*"><a href="#data-">data-</a></code>" can be specified on
any <span>HTML element</span>, to store custom data specific to the page.
+ <p>In <a href="#html-">HTML documents</a>, the <code><a
+ href="#html">html</a></code> element, and any other elements in the <a
+ href="#html-namespace0">HTML namespace</a> whose parent element is not in
+ the <a href="#html-namespace0">HTML namespace</a>, 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 <a href="#xml-documents">XML documents</a>.
+
+ <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 <a
+ href="#html-0">HTML parser</a>, 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 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.
+
<h4 id=the-id><span class=secno>3.4.1 </span>The <dfn id=id
title=attr-id><code>id</code></dfn> attribute</h4>
@@ -7057,8 +7076,7 @@
<dt>Element-specific attributes:
- <dd><code title=attr-html-manifest><a href="#manifest">manifest</a></code></dd>
- <!--<dd><code title="attr-html-xmlns">xmlns</code></dd>-->
+ <dd><code title=attr-html-manifest><a href="#manifest">manifest</a></code>
<dt>DOM interface:
@@ -7091,24 +7109,6 @@
href="#base">base</a></code> elements are seen, its value is not subject
to being made relative to any base URI.
- <p>Though it has absolutely no effect and no meaning, the <code><a
- href="#html">html</a></code> element, in <a href="#html-">HTML
- documents</a>, 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 <a
- href="#xml-documents">XML documents</a>.
-
- <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 <a
- href="#html-0">HTML parser</a>, 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 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.
-
<h3 id=document><span class=secno>3.7 </span>Document metadata</h3>
<h4 id=the-head><span class=secno>3.7.1 </span>The <dfn
Modified: source
===================================================================
--- source 2008-04-10 08:59:34 UTC (rev 1425)
+++ source 2008-04-10 09:44:10 UTC (rev 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,26 +5596,7 @@
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>
<h4>The <dfn><code>head</code></dfn> element</h4>
More information about the Commit-Watchers
mailing list