Skip to content

Commit 37fb987

Browse files
domfarolinoannevk
andauthored
Editorial: unconjugate "pre-insertion" and "pre-removing"
Also stop exporting "ensure pre-insert validity" and modernize it a bit. Co-authored-by: Anne van Kesteren <[email protected]>
1 parent bb30d16 commit 37fb987

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

dom.bs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2611,9 +2611,9 @@ steps:
26112611

26122612
<h4 id=mutation-algorithms>Mutation algorithms</h4>
26132613

2614-
<p>To
2615-
<dfn export for=Node id=concept-node-ensure-pre-insertion-validity>ensure pre-insertion validity</dfn>
2616-
of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run these steps:
2614+
<p>To <dfn id=concept-node-ensure-pre-insertion-validity>ensure pre-insert validity</dfn> of a
2615+
<a for=/>node</a> <var>node</var> into a <a for=/>node</a> <var>parent</var> before a
2616+
<a for=/>node</a> <var>child</var>:
26172617

26182618
<ol>
26192619
<li><p>If <var>parent</var> is not a {{Document}}, {{DocumentFragment}}, or {{Element}}
@@ -2667,7 +2667,7 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
26672667
<var>parent</var> before a <var>child</var>, run these steps:
26682668

26692669
<ol>
2670-
<li><p><a>Ensure pre-insertion validity</a> of <var>node</var> into <var>parent</var> before
2670+
<li><p><a>Ensure pre-insert validity</a> of <var>node</var> into <var>parent</var> before
26712671
<var>child</var>.
26722672

26732673
<li><p>Let <var>referenceChild</var> be <var>child</var>.
@@ -3039,7 +3039,7 @@ optional <i>suppress observers flag</i>, run these steps:
30393039

30403040
<li><p>For each {{NodeIterator}} object <var>iterator</var> whose
30413041
<a for=traversal>root</a>'s <a for=Node>node document</a> is <var>node</var>'s
3042-
<a for=Node>node document</a>, run the <a><code>NodeIterator</code> pre-removing steps</a> given
3042+
<a for=Node>node document</a>, run the <a><code>NodeIterator</code> pre-remove steps</a> given
30433043
<var>node</var> and <var>iterator</var>.
30443044

30453045
<li><p>Let <var>oldPreviousSibling</var> be <var>node</var>'s <a>previous sibling</a>.
@@ -3275,8 +3275,7 @@ are:
32753275
<li><p>Let <var>node</var> be the result of <a>converting nodes into a node</a> given
32763276
<var>nodes</var> and <a>this</a>'s <a for=Node>node document</a>.
32773277

3278-
<li><p><a>Ensure pre-insertion validity</a> of <var>node</var> into <a>this</a> before
3279-
null.
3278+
<li><p><a>Ensure pre-insert validity</a> of <var>node</var> into <a>this</a> before null.
32803279

32813280
<li><p><a for=Node>Replace all</a> with <var>node</var> within <a>this</a>.
32823281
</ol>
@@ -9058,13 +9057,12 @@ result of <a for="live range">cloning the contents</a> of <a>this</a>.
90589057
<!-- IE9 and Chrome 12 dev throw an exception before splitting the text
90599058
node if the insertBefore() is going to throw an exception (at least if the
90609059
new node is the parent of the start node, for instance). Firefox 4.0 and
9061-
Opera 11.00 don't. Now that we have "ensure pre-insertion validity," we go
9060+
Opera 11.00 don't. Now that we have "ensure pre-insert validity," we go
90629061
with the IE/Chrome behavior because it's more correct.
90639062

90649063
IE9 doesn't call splitText() if the offset is 0. This makes sense, but I go
90659064
with what all other browsers do. -->
9066-
<li><a>Ensure pre-insertion validity</a>
9067-
of <var>node</var> into <var>parent</var> before
9065+
<li><a>Ensure pre-insert validity</a> of <var>node</var> into <var>parent</var> before
90689066
<var>referenceNode</var>.
90699067

90709068
<li>If <var>range</var>'s <a for=range>start node</a> is a {{Text}} <a for=/>node</a>, set
@@ -9403,8 +9401,8 @@ filter matches any <a for=/>node</a>.
94039401
<a for=traversal>active flag</a>, <a for=traversal>root</a>, <a for=traversal>whatToShow</a>, and
94049402
<a for=traversal>filter</a> as well.
94059403

9406-
<p>The <dfn><code>NodeIterator</code> pre-removing steps</dfn> given a <var>nodeIterator</var> and
9407-
<var>toBeRemovedNode</var>, are as follows:
9404+
<p>The <dfn id=nodeiterator-pre-removing-steps><code>NodeIterator</code> pre-remove steps</dfn>
9405+
given a <var>nodeIterator</var> and <var>toBeRemovedNode</var>, are as follows:
94089406

94099407
<ol>
94109408
<li><p>If <var>toBeRemovedNode</var> is not an <a for=tree>inclusive ancestor</a> of

0 commit comments

Comments
 (0)