@@ -2360,6 +2360,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
2360
2360
<li><p> If <var> referenceChild</var> is <var> node</var> , then set <var> referenceChild</var> to
2361
2361
<var> node</var> 's <a for=tree>next sibling</a> .
2362
2362
2363
+ <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2364
+
2363
2365
<li><p> <a for=/>Insert</a> <var> node</var> into <var> parent</var> before <var> referenceChild</var> .
2364
2366
2365
2367
<li><p> Return <var> node</var> .
@@ -2424,8 +2426,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2424
2426
<p> For each <var> node</var> in <var> nodes</var> , in <a>tree order</a> :
2425
2427
2426
2428
<ol>
2427
- <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2428
-
2429
2429
<li><p> If <var> child</var> is null, then <a for=set>append</a> <var> node</var> to
2430
2430
<var> parent</var> 's <a for=tree>children</a> .
2431
2431
@@ -2538,6 +2538,8 @@ within a <var>parent</var>, run these steps:
2538
2538
2539
2539
<li><p> Let <var> previousSibling</var> be <var> child</var> 's <a>previous sibling</a> .
2540
2540
2541
+ <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2542
+
2541
2543
<li><p> Let <var> removedNodes</var> be the empty set.
2542
2544
2543
2545
<li>
@@ -2570,6 +2572,9 @@ within a <var>parent</var>, run these steps:
2570
2572
within a <var> parent</var> , run these steps:
2571
2573
2572
2574
<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
+
2573
2578
<li><p> Let <var> removedNodes</var> be <var> parent</var> 's <a>children</a> .
2574
2579
2575
2580
<li><p> Let <var> addedNodes</var> be the empty set.
@@ -5307,9 +5312,6 @@ must run these steps:
5307
5312
<li><p> If <var> node</var> is a <a for=/>shadow root</a> , then <a>throw</a> a
5308
5313
"{{HierarchyRequestError!!exception}} " {{DOMException}} .
5309
5314
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
-
5313
5315
<li><p> <a>Adopt</a> <var> node</var> into <a>this</a> .
5314
5316
5315
5317
<li><p> Return <var> node</var> .
0 commit comments