Skip to content

Commit 0e4ee38

Browse files
committed
Revert "Run adopt as part of insert"
This reverts commit c825cea. See #813 and #814 for context.
1 parent 0de5ae3 commit 0e4ee38

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

dom.bs

+7-5
Original file line numberDiff line numberDiff line change
@@ -2368,6 +2368,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
23682368
<li><p>If <var>referenceChild</var> is <var>node</var>, then set <var>referenceChild</var> to
23692369
<var>node</var>'s <a for=tree>next sibling</a>.
23702370

2371+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2372+
23712373
<li><p><a for=/>Insert</a> <var>node</var> into <var>parent</var> before <var>referenceChild</var>.
23722374

23732375
<li><p>Return <var>node</var>.
@@ -2432,8 +2434,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
24322434
<p>For each <var>node</var> in <var>nodes</var>, in <a>tree order</a>:
24332435

24342436
<ol>
2435-
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2436-
24372437
<li><p>If <var>child</var> is null, then <a for=set>append</a> <var>node</var> to
24382438
<var>parent</var>'s <a for=tree>children</a>.
24392439

@@ -2546,6 +2546,8 @@ within a <var>parent</var>, run these steps:
25462546

25472547
<li><p>Let <var>previousSibling</var> be <var>child</var>'s <a>previous sibling</a>.
25482548

2549+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2550+
25492551
<li><p>Let <var>removedNodes</var> be the empty set.
25502552

25512553
<li>
@@ -2578,6 +2580,9 @@ within a <var>parent</var>, run these steps:
25782580
within a <var>parent</var>, run these steps:
25792581

25802582
<ol>
2583+
<li><p>If <var>node</var> is non-null, then <a>adopt</a> <var>node</var> into <var>parent</var>'s
2584+
<a for=Node>node document</a>.
2585+
25812586
<li><p>Let <var>removedNodes</var> be <var>parent</var>'s <a>children</a>.
25822587

25832588
<li><p>Let <var>addedNodes</var> be the empty set.
@@ -5315,9 +5320,6 @@ must run these steps:
53155320
<li><p>If <var>node</var> is a <a for=/>shadow root</a>, then <a>throw</a> a
53165321
"{{HierarchyRequestError!!exception}}" {{DOMException}}.
53175322

5318-
<li><p>If <var>node</var> is a {{DocumentFragment}} <a for=/>node</a> whose
5319-
<a for=DocumentFragment>host</a> is non-null, then return.
5320-
53215323
<li><p><a>Adopt</a> <var>node</var> into <a>this</a>.
53225324

53235325
<li><p>Return <var>node</var>.

0 commit comments

Comments
 (0)