|
69 | 69 | <div class="head">
|
70 | 70 | <p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
|
71 | 71 | <h1 class="p-name no-ref allcaps" id="title">DOM</h1>
|
72 |
| - <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2015-12-15">15 December 2015</time></span></h2> |
| 72 | + <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2015-12-17">17 December 2015</time></span></h2> |
73 | 73 | <div data-fill-with="spec-metadata">
|
74 | 74 | <dl>
|
75 | 75 | <dt>Participate:
|
@@ -985,10 +985,14 @@ <h4 class="heading settled" data-level="4.2.1" id="mutation-algorithms"><span cl
|
985 | 985 | <li><a data-link-type="dfn" href="#concept-node-adopt">Adopt</a> <var>node</var> into <var>parent</var>’s <a data-link-type="dfn" href="#concept-node-document">node document</a>.
|
986 | 986 | <li>Let <var>removedNodes</var> be the empty list.
|
987 | 987 | <li>
|
988 |
| - <p>If <var>child</var>’s parent is not null, set <var>removedNodes</var> to a list solely |
989 |
| - containing <var>child</var> and remove <var>child</var> from its <var>parent</var> with the <i>suppress observers flag</i> set. </p> |
| 988 | + <p>If <var>child</var>’s <a data-link-type="dfn" href="#concept-tree-parent">parent</a> is not null, run these substeps: </p> |
| 989 | + <ol> |
| 990 | + <li> |
| 991 | + <p>Set <var>removedNodes</var> to a list solely containing <var>child</var>. </p> |
| 992 | + <li> |
| 993 | + <p><a data-link-type="dfn" href="#concept-node-remove">Remove</a> <var>child</var> from its <var>parent</var> with the <i>suppress obvservers flag</i> set. </p> |
| 994 | + </ol> |
990 | 995 | <p class="note no-backref" role="note">The above can only be false if <var>child</var> is <var>node</var>. </p>
|
991 |
| - <li><a data-link-type="dfn" href="#concept-node-remove">Remove</a> <var>child</var> from its <var>parent</var> with the <i>suppress observers flag</i> set. |
992 | 996 | <li>Let <var>nodes</var> be <var>node</var>’s <a data-link-type="dfn" href="#concept-tree-child">children</a> if <var>node</var> is a <code class="idl"><a data-link-type="idl" href="#documentfragment">DocumentFragment</a></code> <a data-link-type="dfn" href="#concept-node">node</a>, and a list containing solely <var>node</var> otherwise.
|
993 | 997 | <li><a data-link-type="dfn" href="#concept-node-insert">Insert</a> <var>node</var> into <var>parent</var> before <var>reference child</var> with
|
994 | 998 | the <i>suppress observers flag</i> set.
|
|
0 commit comments