[html5] r892 - /
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jun 14 15:17:36 PDT 2007
Author: ianh
Date: 2007-06-14 15:17:34 -0700 (Thu, 14 Jun 2007)
New Revision: 892
Modified:
index
source
Log:
[] (0) Adopt nodes when setting innerHTML in XML to avoid NS_ERROR_WRONG_DOCUMENT_ERR.
Modified: index
===================================================================
--- index 2007-06-14 22:07:55 UTC (rev 891)
+++ index 2007-06-14 22:17:34 UTC (rev 892)
@@ -4081,12 +4081,28 @@
attribute is being set.</p>
<li>
- <p>The user agent must take the children of the document, if the
- attribute is being set on a <code>Document</code> node, or of the
- document's root element, if the attribute is being set on an
- <code>Element</code> node, and append them to the node whose <code
- title=dom-innerHTML-HTML><a href="#innerhtml0">innerHTML</a></code>
- attribute is being set, preserving their order.</p>
+ <p>If the attribute is being set on a <code>Document</code> node, let
+ <var title="">new children</var> be the children of the document,
+ preserving their order. Otherwise, the attribute is being set on an
+ <code>Element</code> node; let <var title="">new children</var> be the
+ children of the the document's root element, preserving their order.</p>
+
+ <li>
+ <p>If the attribute is being set on a <code>Document</code> node, let
+ <var title="">target document</var> be that <code>Document</code> node.
+ Otherwise, the attribute is being set on an <code>Element</code> node;
+ let <var title="">target document</var> be the <code
+ title="">ownerDocument</code> of that <code>Element</code>.</p>
+
+ <li>
+ <p>Set the <code title="">ownerDocument</code> of all the nodes in <var
+ title="">new children</var> to the <var title="">target document</var>.</p>
+
+ <li>
+ <p>Append all the <var title="">new children</var> nodes to the node
+ whose <code title=dom-innerHTML-HTML><a
+ href="#innerhtml0">innerHTML</a></code> attribute is being set,
+ preserving their order.</p>
</ol>
<h3 id=apis-in><span class=secno>2.6. </span>APIs in HTML documents</h3>
Modified: source
===================================================================
--- source 2007-06-14 22:07:55 UTC (rev 891)
+++ source 2007-06-14 22:17:34 UTC (rev 892)
@@ -2743,15 +2743,42 @@
<li>
- <p>The user agent must take the children of the document, if the
- attribute is being set on a <code>Document</code> node, or of the
- document's root element, if the attribute is being set on an
- <code>Element</code> node, and append them to the node whose <code
- title="dom-innerHTML-HTML">innerHTML</code> attribute is being
- set, preserving their order.</p>
+ <p>If the attribute is being set on a <code>Document</code> node,
+ let <var title="">new children</var> be the children of the
+ document, preserving their order. Otherwise, the attribute is
+ being set on an <code>Element</code> node; let <var title="">new
+ children</var> be the children of the the document's root element,
+ preserving their order.</p>
</li>
+ <li>
+
+ <p>If the attribute is being set on a <code>Document</code> node,
+ let <var title="">target document</var> be that
+ <code>Document</code> node. Otherwise, the attribute is being set
+ on an <code>Element</code> node; let <var title="">target
+ document</var> be the <code title="">ownerDocument</code> of that
+ <code>Element</code>.</p>
+
+ </li>
+
+ <li>
+
+ <p>Set the <code title="">ownerDocument</code> of all the nodes in
+ <var title="">new children</var> to the <var title="">target
+ document</var>.</p>
+
+ </li>
+
+ <li>
+
+ <p>Append all the <var title="">new children</var> nodes to the
+ node whose <code title="dom-innerHTML-HTML">innerHTML</code>
+ attribute is being set, preserving their order.</p>
+
+ </li>
+
</ol>
More information about the Commit-Watchers
mailing list