annevk avatar annevk committed 506744d Draft

pre-insert needs to use reference child too; when reference child equals node use, node's next sibling as reference per http://lists.w3.org/Archives/Public/www-dom/2012AprJun/0090.html

Comments (0)

Files changed (3)

 <!--end-logo-->
 </div>
  <h1>DOM4</h1>
- <h2 class="no-num no-toc" id="editor's-draft-1-june-2012">
-  <span class="w3conly">Editor's Draft 1 June 2012</span>
+ <h2 class="no-num no-toc" id="editor's-draft-3-june-2012">
+  <span class="w3conly">Editor's Draft 3 June 2012</span>
   </h2>
 
  <dl>
  <a href="#concept-throw" title="concept-throw">throw</a> a
  "<code><a href="#hierarchyrequesterror">HierarchyRequestError</a></code>" and terminate these steps.
 
+ <li><p>Let <var title="">reference child</var> be <var title="">child</var>.
+
+ <li><p>If <var title="">reference child</var> is <var title="">node</var>, set it
+ to <var title="">node</var>'s
+ <a href="#concept-tree-next-sibling" title="concept-tree-next-sibling">next sibling</a>.
+
  <li><p><a href="#concept-node-adopt" title="concept-node-adopt">Adopt</a>
  <var title="">node</var> with <var title="">parent</var>'s
  <a href="#concept-node-document" title="concept-node-document">node document</a>.
 
  <li><p><a href="#concept-node-insert" title="concept-node-insert">Insert</a> <var title="">node</var>
- into <var title="">parent</var> before <var title="">child</var>.
+ into <var title="">parent</var> before <var title="">reference child</var>.
 
  <li><p>Return <var title="">node</var>.
  <!-- technically this is post-insert -->
  <li><p>Let <var title="">reference child</var> be <var title="">child</var>'s
  <a href="#concept-tree-next-sibling" title="concept-tree-next-sibling">next sibling</a>.
 
+ <li><p>If <var title="">reference child</var> is <var title="">node</var>, set it
+ to <var title="">node</var>'s
+ <a href="#concept-tree-next-sibling" title="concept-tree-next-sibling">next sibling</a>.
+
  <li><p><a href="#concept-node-adopt" title="concept-node-adopt">Adopt</a>
  <var title="">node</var> with <var title="">parent</var>'s
  <a href="#concept-node-document" title="concept-node-document">node document</a>.

Overview.src.html

  <span title=concept-throw>throw</span> a
  "<code>HierarchyRequestError</code>" and terminate these steps.
 
+ <li><p>Let <var title>reference child</var> be <var title>child</var>.
+
+ <li><p>If <var title>reference child</var> is <var title>node</var>, set it
+ to <var title>node</var>'s
+ <span title=concept-tree-next-sibling>next sibling</span>.
+
  <li><p><span title=concept-node-adopt>Adopt</span>
  <var title>node</var> with <var title>parent</var>'s
  <span title=concept-node-document>node document</span>.
 
  <li><p><span title=concept-node-insert>Insert</span> <var title>node</var>
- into <var title>parent</var> before <var title>child</var>.
+ into <var title>parent</var> before <var title>reference child</var>.
 
  <li><p>Return <var title>node</var>.
  <!-- technically this is post-insert -->
  <li><p>Let <var title>reference child</var> be <var title>child</var>'s
  <span title=concept-tree-next-sibling>next sibling</span>.
 
+ <li><p>If <var title>reference child</var> is <var title>node</var>, set it
+ to <var title>node</var>'s
+ <span title=concept-tree-next-sibling>next sibling</span>.
+
  <li><p><span title=concept-node-adopt>Adopt</span>
  <var title>node</var> with <var title>parent</var>'s
  <span title=concept-node-document>node document</span>.
 
 <div class="head">
 <h1>DOM4</h1>
- <h2 class="no-num no-toc" id="free-editor's-draft-1-june-2012">
-  <span class="now3c">Free Editor's Draft 1 June 2012</span>
+ <h2 class="no-num no-toc" id="free-editor's-draft-3-june-2012">
+  <span class="now3c">Free Editor's Draft 3 June 2012</span>
  </h2>
 
  <dl>
 <p class="now3c copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
 To the extent possible under law, the editors have waived all copyright and
 related or neighboring rights to this work. In addition, as of
-1 June 2012, the editors have made this specification available
+3 June 2012, the editors have made this specification available
 under the
 <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
 which is available at
  <a href="#concept-throw" title="concept-throw">throw</a> a
  "<code><a href="#hierarchyrequesterror">HierarchyRequestError</a></code>" and terminate these steps.
 
+ <li><p>Let <var title="">reference child</var> be <var title="">child</var>.
+
+ <li><p>If <var title="">reference child</var> is <var title="">node</var>, set it
+ to <var title="">node</var>'s
+ <a href="#concept-tree-next-sibling" title="concept-tree-next-sibling">next sibling</a>.
+
  <li><p><a href="#concept-node-adopt" title="concept-node-adopt">Adopt</a>
  <var title="">node</var> with <var title="">parent</var>'s
  <a href="#concept-node-document" title="concept-node-document">node document</a>.
 
  <li><p><a href="#concept-node-insert" title="concept-node-insert">Insert</a> <var title="">node</var>
- into <var title="">parent</var> before <var title="">child</var>.
+ into <var title="">parent</var> before <var title="">reference child</var>.
 
  <li><p>Return <var title="">node</var>.
  <!-- technically this is post-insert -->
  <li><p>Let <var title="">reference child</var> be <var title="">child</var>'s
  <a href="#concept-tree-next-sibling" title="concept-tree-next-sibling">next sibling</a>.
 
+ <li><p>If <var title="">reference child</var> is <var title="">node</var>, set it
+ to <var title="">node</var>'s
+ <a href="#concept-tree-next-sibling" title="concept-tree-next-sibling">next sibling</a>.
+
  <li><p><a href="#concept-node-adopt" title="concept-node-adopt">Adopt</a>
  <var title="">node</var> with <var title="">parent</var>'s
  <a href="#concept-node-document" title="concept-node-document">node document</a>.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.