Skip to content

Commit 2ebc0fa

Browse files
committed
Revert "Run adopt as part of insert"
This reverts commit c825cea. See #813 and #814 for context.
1 parent 8f3ee85 commit 2ebc0fa

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

2363+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2364+
23632365
<li><p><a for=/>Insert</a> <var>node</var> into <var>parent</var> before <var>referenceChild</var>.
23642366

23652367
<li><p>Return <var>node</var>.
@@ -2424,8 +2426,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
24242426
<p>For each <var>node</var> in <var>nodes</var>, in <a>tree order</a>:
24252427

24262428
<ol>
2427-
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2428-
24292429
<li><p>If <var>child</var> is null, then <a for=set>append</a> <var>node</var> to
24302430
<var>parent</var>'s <a for=tree>children</a>.
24312431

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

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

2541+
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.
2542+
25412543
<li><p>Let <var>removedNodes</var> be the empty set.
25422544

25432545
<li>
@@ -2570,6 +2572,9 @@ within a <var>parent</var>, run these steps:
25702572
within a <var>parent</var>, run these steps:
25712573

25722574
<ol>
2575+
<li><p>If <var>node</var> is non-null, then <a>adopt</a> <var>node</var> into <var>parent</var>'s
2576+
<a for=Node>node document</a>.
2577+
25732578
<li><p>Let <var>removedNodes</var> be <var>parent</var>'s <a>children</a>.
25742579

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

5310-
<li><p>If <var>node</var> is a {{DocumentFragment}} <a for=/>node</a> whose
5311-
<a for=DocumentFragment>host</a> is non-null, then return.
5312-
53135315
<li><p><a>Adopt</a> <var>node</var> into <a>this</a>.
53145316

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

0 commit comments

Comments
 (0)