[html5] r3702 - [e] (0) Correct the domintro sections for innerHTML and outerHTML to mention the [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Aug 29 16:52:20 PDT 2009


Author: ianh
Date: 2009-08-29 16:52:19 -0700 (Sat, 29 Aug 2009)
New Revision: 3702

Modified:
   index
   source
Log:
[e] (0) Correct the domintro sections for innerHTML and outerHTML to mention the right exceptions.

Modified: index
===================================================================
--- index	2009-08-29 23:48:20 UTC (rev 3701)
+++ index	2009-08-29 23:52:19 UTC (rev 3702)
@@ -9717,9 +9717,10 @@
     <p>Can be set, to replace the <code>Document</code>'s contents
     with the result of parsing the given string.</p>
 
-    <p>In the case of <a href=#xml-documents>XML documents</a>, will throw a
-    <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the <code>Document</code> cannot be
-    serialized to XML, or if the given string is not well-formed.</p>
+    <p>In the case of <a href=#xml-documents>XML documents</a>, will throw an
+    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> if the <code>Document</code> cannot
+    be serialized to XML, and a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the given
+    string is not well-formed.</p>
 
    </dd>
 
@@ -9733,9 +9734,10 @@
     <p>Can be set, to replace the contents of the element with nodes
     parsed from the given string.</p>
 
-    <p>In the case of <a href=#xml-documents>XML documents</a>, will throw a
-    <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the element cannot be serialized to
-    XML, or if the given string is not well-formed.</p>
+    <p>In the case of <a href=#xml-documents>XML documents</a>, will throw an
+    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> if the element cannot be serialized
+    to XML, and a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the given string is not
+    well-formed.</p>
 
    </dd>
 
@@ -9835,10 +9837,15 @@
     <p>Can be set, to replace the element with nodes parsed from the
     given string.</p>
 
-    <p>In the case of <a href=#xml-documents>XML documents</a>, will throw a
-    <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the element cannot be serialized to
-    XML, or if the given string is not well-formed.</p>
+    <p>In the case of <a href=#xml-documents>XML documents</a>, will throw an
+    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> if the element cannot be serialized
+    to XML, and a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the given string is not
+    well-formed.</p>
 
+    <p>Throws a <code><a href=#no_modification_allowed_err>NO_MODIFICATION_ALLOWED_ERR</a></code> exception if
+    the parent of the element is the <code>Document</code>
+    node.</p>
+
    </dd>
 
   </dl><div class=impl>
@@ -69232,7 +69239,7 @@
   </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 raised an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code>
+  equals sign (=) will raise an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code>
   exception.</p>
 
 

Modified: source
===================================================================
--- source	2009-08-29 23:48:20 UTC (rev 3701)
+++ source	2009-08-29 23:52:19 UTC (rev 3702)
@@ -10134,9 +10134,10 @@
     <p>Can be set, to replace the <code>Document</code>'s contents
     with the result of parsing the given string.</p>
 
-    <p>In the case of <span>XML documents</span>, will throw a
-    <code>SYNTAX_ERR</code> if the <code>Document</code> cannot be
-    serialized to XML, or if the given string is not well-formed.</p>
+    <p>In the case of <span>XML documents</span>, will throw an
+    <code>INVALID_STATE_ERR</code> if the <code>Document</code> cannot
+    be serialized to XML, and a <code>SYNTAX_ERR</code> if the given
+    string is not well-formed.</p>
 
    </dd>
 
@@ -10150,9 +10151,10 @@
     <p>Can be set, to replace the contents of the element with nodes
     parsed from the given string.</p>
 
-    <p>In the case of <span>XML documents</span>, will throw a
-    <code>SYNTAX_ERR</code> if the element cannot be serialized to
-    XML, or if the given string is not well-formed.</p>
+    <p>In the case of <span>XML documents</span>, will throw an
+    <code>INVALID_STATE_ERR</code> if the element cannot be serialized
+    to XML, and a <code>SYNTAX_ERR</code> if the given string is not
+    well-formed.</p>
 
    </dd>
 
@@ -10265,10 +10267,15 @@
     <p>Can be set, to replace the element with nodes parsed from the
     given string.</p>
 
-    <p>In the case of <span>XML documents</span>, will throw a
-    <code>SYNTAX_ERR</code> if the element cannot be serialized to
-    XML, or if the given string is not well-formed.</p>
+    <p>In the case of <span>XML documents</span>, will throw an
+    <code>INVALID_STATE_ERR</code> if the element cannot be serialized
+    to XML, and a <code>SYNTAX_ERR</code> if the given string is not
+    well-formed.</p>
 
+    <p>Throws a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception if
+    the parent of the element is the <code>Document</code>
+    node.</p>
+
    </dd>
 
   </dl>
@@ -82299,7 +82306,7 @@
   <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 raised an <code>INVALID_CHARACTER_ERR</code>
+  equals sign (=) will raise an <code>INVALID_CHARACTER_ERR</code>
   exception.</p>
 
 




More information about the Commit-Watchers mailing list