Skip to content

Commit 488eeab

Browse files
committed
Revert "Run adopt as part of insert"
This reverts commit c825cea. See #813 and #814 for context.
1 parent 73e7f33 commit 488eeab

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
@@ -2331,6 +2331,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
23312331
<li><p>If <var>referenceChild</var> is <var>node</var>, then set <var>referenceChild</var> to
23322332
<var>node</var>'s <a for=tree>next sibling</a>.
23332333

2334+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2335+
23342336
<li><p><a for=/>Insert</a> <var>node</var> into <var>parent</var> before <var>referenceChild</var>.
23352337

23362338
<li><p>Return <var>node</var>.
@@ -2395,8 +2397,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
23952397
<p>For each <var>node</var> in <var>nodes</var>, in <a>tree order</a>:
23962398

23972399
<ol>
2398-
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2399-
24002400
<li><p>If <var>child</var> is null, then <a for=set>append</a> <var>node</var> to
24012401
<var>parent</var>'s <a for=tree>children</a>.
24022402

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

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

2512+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2513+
25122514
<li><p>Let <var>removedNodes</var> be the empty set.
25132515

25142516
<li>
@@ -2541,6 +2543,9 @@ within a <var>parent</var>, run these steps:
25412543
within a <var>parent</var>, run these steps:
25422544

25432545
<ol>
2546+
<li><p>If <var>node</var> is non-null, then <a>adopt</a> <var>node</var> into <var>parent</var>'s
2547+
<a for=Node>node document</a>.
2548+
25442549
<li><p>Let <var>removedNodes</var> be <var>parent</var>'s <a>children</a>.
25452550

25462551
<li><p>Let <var>addedNodes</var> be the empty set.
@@ -5278,9 +5283,6 @@ must run these steps:
52785283
<li><p>If <var>node</var> is a <a for=/>shadow root</a>, then <a>throw</a> a
52795284
"{{HierarchyRequestError!!exception}}" {{DOMException}}.
52805285

5281-
<li><p>If <var>node</var> is a {{DocumentFragment}} <a for=/>node</a> whose
5282-
<a for=DocumentFragment>host</a> is non-null, then return.
5283-
52845286
<li><p><a>Adopt</a> <var>node</var> into <a>this</a>.
52855287

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

0 commit comments

Comments
 (0)