@@ -2427,10 +2427,8 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2427
2427
its <a for=range>end offset</a> by <var> count</var> .
2428
2428
</ol>
2429
2429
2430
- <li> Let <var> nodes</var> be <var> node</var> 's
2431
- <a>children</a> if <var> node</var> is
2432
- a {{DocumentFragment}} <a>node</a> , and a
2433
- list containing solely <var> node</var> otherwise.
2430
+ <li><p> Let <var> nodes</var> be <var> node</var> 's <a>children</a> , if <var> node</var> is a
2431
+ {{DocumentFragment}} <a>node</a> ; otherwise « <var> node</var> ».
2434
2432
2435
2433
<li> If <var> node</var> is a {{DocumentFragment}}
2436
2434
<a>node</a> ,
@@ -2602,16 +2600,16 @@ within a <var>parent</var>, run these steps:
2602
2600
<p> If <var> child</var> 's <a for=tree>parent</a> is not null, then:
2603
2601
2604
2602
<ol>
2605
- <li><p> Set <var> removedNodes</var> to a list solely containing <var> child</var> .
2603
+ <li><p> Set <var> removedNodes</var> to « <var> child</var> » .
2606
2604
2607
2605
<li><p> <a for=/>Remove</a> <var> child</var> from its <var> parent</var> with the
2608
2606
<i> suppress observers flag</i> set.
2609
2607
</ol>
2610
2608
2611
2609
<p class="note no-backref"> The above can only be false if <var> child</var> is <var> node</var> .
2612
2610
2613
- <li> Let <var> nodes</var> be <var> node</var> 's <a>children</a> if <var> node</var> is a
2614
- {{DocumentFragment}} <a>node</a> , and a list containing solely <var> node</var> otherwise .
2611
+ <li><p> Let <var> nodes</var> be <var> node</var> 's <a>children</a> if <var> node</var> is a
2612
+ {{DocumentFragment}} <a>node</a> ; otherwise « <var> node</var> » .
2615
2613
<!-- This needs to come before insert as that removes the children of a
2616
2614
DocumentFragment node. -->
2617
2615
@@ -2637,11 +2635,12 @@ To <dfn export for=Node id=concept-node-replace-all>replace all</dfn> with a
2637
2635
<li> Let <var> removedNodes</var> be <var> parent</var> 's
2638
2636
<a>children</a> .
2639
2637
2640
- <li> Let <var> addedNodes</var> be the empty list if <var> node</var> is
2641
- null, <var> node</var> 's <a>children</a> if
2642
- <var> node</var> is a {{DocumentFragment}}
2643
- <a>node</a> , and a list containing <var> node</var>
2644
- otherwise.
2638
+ <li><p> Let <var> addedNodes</var> be the empty list.
2639
+
2640
+ <li><p> If <var> node</var> is {{DocumentFragment}} <a>node</a> , then set <var> addedNodes</var> to
2641
+ <var> node</var> 's <a>children</a> .
2642
+
2643
+ <li><p> Otherwise, if <var> node</var> is non-null, set <var> addedNodes</var> to « <var> node</var> ».
2645
2644
2646
2645
<li> <a for=/>Remove</a> all
2647
2646
<var> parent</var> 's <a>children</a> , in
0 commit comments