@@ -2378,6 +2378,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
2378
2378
<li><p> If <var> referenceChild</var> is <var> node</var> , then set <var> referenceChild</var> to
2379
2379
<var> node</var> 's <a for=tree>next sibling</a> .
2380
2380
2381
+ <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2382
+
2381
2383
<li><p> <a for=/>Insert</a> <var> node</var> into <var> parent</var> before <var> referenceChild</var> .
2382
2384
2383
2385
<li><p> Return <var> node</var> .
@@ -2442,8 +2444,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2442
2444
<p> For each <var> node</var> in <var> nodes</var> , in <a>tree order</a> :
2443
2445
2444
2446
<ol>
2445
- <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2446
-
2447
2447
<li><p> If <var> child</var> is null, then <a for=set>append</a> <var> node</var> to
2448
2448
<var> parent</var> 's <a for=tree>children</a> .
2449
2449
@@ -2556,6 +2556,8 @@ within a <var>parent</var>, run these steps:
2556
2556
2557
2557
<li><p> Let <var> previousSibling</var> be <var> child</var> 's <a>previous sibling</a> .
2558
2558
2559
+ <li><p> <a>Adopt</a> <var> node</var> into <var> parent</var> 's <a for=Node>node document</a> .
2560
+
2559
2561
<li><p> Let <var> removedNodes</var> be the empty set.
2560
2562
2561
2563
<li>
@@ -2588,6 +2590,9 @@ within a <var>parent</var>, run these steps:
2588
2590
within a <var> parent</var> , run these steps:
2589
2591
2590
2592
<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
+
2591
2596
<li><p> Let <var> removedNodes</var> be <var> parent</var> 's <a>children</a> .
2592
2597
2593
2598
<li><p> Let <var> addedNodes</var> be the empty set.
@@ -5302,9 +5307,6 @@ must run these steps:
5302
5307
<li><p> If <var> node</var> is a <a for=/>shadow root</a> , then <a>throw</a> a
5303
5308
"{{HierarchyRequestError!!exception}} " {{DOMException}} .
5304
5309
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
-
5308
5310
<li><p> <a>Adopt</a> <var> node</var> into <a>this</a> .
5309
5311
5310
5312
<li><p> Return <var> node</var> .
0 commit comments