Skip to content

Commit 17b461c

Browse files
committed
Differentiate between "children change" steps and "children inserted" steps.
See whatwg/html#12279
1 parent 2a4363c commit 17b461c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

dom.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,6 +2840,12 @@ that all pending <a>node tree</a> insertions completely finish before more inser
28402840
<a for=/>remove</a>, and <a for=/>replace data</a>.
28412841
</div>
28422842

2843+
<div algorithm>
2844+
<p><a lt="other applicable specifications">Specifications</a> may define
2845+
<dfn export id=concept-node-children-inserted-ext>children inserted steps</dfn> for all or some
2846+
<a for=/>nodes</a>. The algorithm is passed no argument and is called from <a for=/>insert</a.
2847+
</div>
2848+
28432849
<div algorithm=insert>
28442850
<p>To <dfn export id=concept-node-insert>insert</dfn> a <a for=/>node</a> <var>node</var> into a
28452851
<a for=/>node</a> <var>parent</var> before null or a <a for=/>node</a> <var>child</var>, with an
@@ -2952,7 +2958,8 @@ optional boolean <dfn for="insert"><var>suppressObservers</var></dfn> (default f
29522958
<li><p>If <var>suppressObservers</var> is false, then <a>queue a tree mutation record</a> for
29532959
<var>parent</var> with <var>nodes</var>, « », <var>previousSibling</var>, and <var>child</var>.
29542960

2955-
<li><p>Run the <a>children changed steps</a> for <var>parent</var>.
2961+
<li><p>Run the <a>children inserted steps</a> for <var>parent</var>. If those are not defined, run
2962+
the <a>children changed steps</a> for <var>parent</var>.
29562963

29572964
<li>
29582965
<p>Let <var>staticNodeList</var> be a <a for=/>list</a> of <a for=/>nodes</a>, initially « ».</p>

0 commit comments

Comments
 (0)