@@ -2368,6 +2368,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
2368
2368
<li><p> If <var> referenceChild</var> is <var> node</var> , then set <var> referenceChild</var> to
2369
2369
<var> node</var> 's <a for=tree>next sibling</a> .
2370
2370
2371
+ <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2372
+
2371
2373
<li><p> <a for=/>Insert</a> <var> node</var> into <var> parent</var> before <var> referenceChild</var> .
2372
2374
2373
2375
<li><p> Return <var> node</var> .
@@ -2432,8 +2434,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2432
2434
<p> For each <var> node</var> in <var> nodes</var> , in <a>tree order</a> :
2433
2435
2434
2436
<ol>
2435
- <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2436
-
2437
2437
<li><p> If <var> child</var> is null, then <a for=set>append</a> <var> node</var> to
2438
2438
<var> parent</var> 's <a for=tree>children</a> .
2439
2439
@@ -2546,6 +2546,8 @@ within a <var>parent</var>, run these steps:
2546
2546
2547
2547
<li><p> Let <var> previousSibling</var> be <var> child</var> 's <a>previous sibling</a> .
2548
2548
2549
+ <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2550
+
2549
2551
<li><p> Let <var> removedNodes</var> be the empty set.
2550
2552
2551
2553
<li>
@@ -2578,6 +2580,9 @@ within a <var>parent</var>, run these steps:
2578
2580
within a <var> parent</var> , run these steps:
2579
2581
2580
2582
<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
+
2581
2586
<li><p> Let <var> removedNodes</var> be <var> parent</var> 's <a>children</a> .
2582
2587
2583
2588
<li><p> Let <var> addedNodes</var> be the empty set.
@@ -5315,9 +5320,6 @@ must run these steps:
5315
5320
<li><p> If <var> node</var> is a <a for=/>shadow root</a> , then <a>throw</a> a
5316
5321
"{{HierarchyRequestError!!exception}} " {{DOMException}} .
5317
5322
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
-
5321
5323
<li><p> <a>Adopt</a> <var> node</var> into <a>this</a> .
5322
5324
5323
5325
<li><p> Return <var> node</var> .
0 commit comments