[html5] r3951 - [] (0) If you move a node from an HTML doc to an XML doc, you can create nodes w [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Sep 21 17:39:08 PDT 2009
Author: ianh
Date: 2009-09-21 17:39:07 -0700 (Mon, 21 Sep 2009)
New Revision: 3951
Modified:
index
source
Log:
[] (0) If you move a node from an HTML doc to an XML doc, you can create nodes with names you otherwise could not. So we have to handle that case also.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7488
Modified: index
===================================================================
--- index 2009-09-22 00:32:02 UTC (rev 3950)
+++ index 2009-09-22 00:39:07 UTC (rev 3951)
@@ -71051,6 +71051,10 @@
COLON (":").</li> <!--(prefixes can get adjusted, so this isn't an
excuse) -->
+ <li>A node with a <!--prefix or--> local name that does not match
+ the XML <code title="">Name</code> production. <a href=#refsXML>[XML]</a></li> <!--(again, prefixes can get
+ adjusted, so this isn't an excuse) -->
+
<li>An <code>Attr</code> node, <code>Text</code> node,
<code>CDATASection</code> node, <code>Comment</code> node, or
<code>ProcessingInstruction</code> node whose data contains
@@ -71074,9 +71078,8 @@
</ul><p class=note>These are the only ways to make a DOM
unserializable. The DOM enforces all the other XML constraints; for
- example, trying to set an attribute with a name that contains an
- equals sign (=) will raise an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code>
- exception.</p>
+ example, trying to append two elements to a <code>Document</code>
+ node will raise a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
Modified: source
===================================================================
--- source 2009-09-22 00:32:02 UTC (rev 3950)
+++ source 2009-09-22 00:39:07 UTC (rev 3951)
@@ -84375,6 +84375,11 @@
COLON (":").</li> <!--(prefixes can get adjusted, so this isn't an
excuse) -->
+ <li>A node with a <!--prefix or--> local name that does not match
+ the XML <code title="">Name</code> production. <a
+ href="#refsXML">[XML]</a></li> <!--(again, prefixes can get
+ adjusted, so this isn't an excuse) -->
+
<li>An <code>Attr</code> node, <code>Text</code> node,
<code>CDATASection</code> node, <code>Comment</code> node, or
<code>ProcessingInstruction</code> node whose data contains
@@ -84402,9 +84407,8 @@
<p class="note">These are the only ways to make a DOM
unserializable. The DOM enforces all the other XML constraints; for
- example, trying to set an attribute with a name that contains an
- equals sign (=) will raise an <code>INVALID_CHARACTER_ERR</code>
- exception.</p>
+ example, trying to append two elements to a <code>Document</code>
+ node will raise a <code>HIERARCHY_REQUEST_ERR</code> exception.</p>
More information about the Commit-Watchers
mailing list