Skip to content

Commit e6b69e3

Browse files
authored
Editorial: use Infra list syntax in mutations
As pointed out at #695 (review) it would be nice if this were more consistent.
1 parent daa525d commit e6b69e3

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

dom.bs

+11-12
Original file line numberDiff line numberDiff line change
@@ -2427,10 +2427,8 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
24272427
its <a for=range>end offset</a> by <var>count</var>.
24282428
</ol>
24292429

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> ».
24342432

24352433
<li>If <var>node</var> is a {{DocumentFragment}}
24362434
<a>node</a>,
@@ -2602,16 +2600,16 @@ within a <var>parent</var>, run these steps:
26022600
<p>If <var>child</var>'s <a for=tree>parent</a> is not null, then:
26032601

26042602
<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> ».
26062604

26072605
<li><p><a for=/>Remove</a> <var>child</var> from its <var>parent</var> with the
26082606
<i>suppress observers flag</i> set.
26092607
</ol>
26102608

26112609
<p class="note no-backref">The above can only be false if <var>child</var> is <var>node</var>.
26122610

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> ».
26152613
<!-- This needs to come before insert as that removes the children of a
26162614
DocumentFragment node. -->
26172615

@@ -2637,11 +2635,12 @@ To <dfn export for=Node id=concept-node-replace-all>replace all</dfn> with a
26372635
<li>Let <var>removedNodes</var> be <var>parent</var>'s
26382636
<a>children</a>.
26392637

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> ».
26452644

26462645
<li><a for=/>Remove</a> all
26472646
<var>parent</var>'s <a>children</a>, in

0 commit comments

Comments
 (0)