Skip to content

Commit 6eb77d0

Browse files
committed
Revert "Run adopt as part of insert"
This reverts commit c825cea. See #813 and #814 for context.
1 parent 88c2569 commit 6eb77d0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: dom.bs

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

2381+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2382+
23812383
<li><p><a for=/>Insert</a> <var>node</var> into <var>parent</var> before <var>referenceChild</var>.
23822384

23832385
<li><p>Return <var>node</var>.
@@ -2442,8 +2444,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
24422444
<p>For each <var>node</var> in <var>nodes</var>, in <a>tree order</a>:
24432445

24442446
<ol>
2445-
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2446-
24472447
<li><p>If <var>child</var> is null, then <a for=set>append</a> <var>node</var> to
24482448
<var>parent</var>'s <a for=tree>children</a>.
24492449

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

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

2559+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2560+
25592561
<li><p>Let <var>removedNodes</var> be the empty set.
25602562

25612563
<li>
@@ -2588,6 +2590,9 @@ within a <var>parent</var>, run these steps:
25882590
within a <var>parent</var>, run these steps:
25892591

25902592
<ol>
2593+
<li><p>If <var>node</var> is non-null, then <a>adopt</a> <var>node</var> into <var>parent</var>'s
2594+
<a for=Node>node document</a>.
2595+
25912596
<li><p>Let <var>removedNodes</var> be <var>parent</var>'s <a>children</a>.
25922597

25932598
<li><p>Let <var>addedNodes</var> be the empty set.
@@ -5302,9 +5307,6 @@ must run these steps:
53025307
<li><p>If <var>node</var> is a <a for=/>shadow root</a>, then <a>throw</a> a
53035308
"{{HierarchyRequestError!!exception}}" {{DOMException}}.
53045309

5305-
<li><p>If <var>node</var> is a {{DocumentFragment}} <a for=/>node</a> whose
5306-
<a for=DocumentFragment>host</a> is non-null, then return.
5307-
53085310
<li><p><a>Adopt</a> <var>node</var> into <a>this</a>.
53095311

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

0 commit comments

Comments
 (0)