Skip to content

Commit

Permalink
[c] (0) Allow xmlns='' on any HTML element that is a child of a node …
Browse files Browse the repository at this point in the history
…that isn't an HTML element.

git-svn-id: http://svn.whatwg.org/webapps@1426 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 10, 2008
1 parent 1df4be1 commit 928f5ae
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 44 deletions.
44 changes: 22 additions & 22 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -6482,10 +6482,29 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<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>

Expand Down Expand Up @@ -7057,8 +7076,7 @@ onActivate, onBeforeDeactivate, onDeactivate, document.hasFocus):

<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:

Expand Down Expand Up @@ -7091,24 +7109,6 @@ onActivate, onBeforeDeactivate, onDeactivate, document.hasFocus):
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
Expand Down
45 changes: 23 additions & 22 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4945,11 +4945,32 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<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
Expand Down Expand Up @@ -5547,7 +5568,6 @@ onActivate, onBeforeDeactivate, onDeactivate, document.hasFocus):
<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>
<!--
Expand Down Expand Up @@ -5576,25 +5596,6 @@ onActivate, onBeforeDeactivate, onDeactivate, document.hasFocus):
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>

Expand Down

0 comments on commit 928f5ae

Please sign in to comment.