@@ -3040,7 +3040,7 @@ optional <i>suppress observers flag</i>, run these steps:
3040
3040
<a>shadow-including inclusive descendant</a> of <var> node</var> , set its <a for=range>start</a> to
3041
3041
(<var> parent</var> , <var> index</var> ).
3042
3042
3043
- <li><p> For each <a>composed live range</a> whose <a for=range>end node</a> is an
3043
+ <li><p> For each <a>composed live range</a> whose <a for=range>end node</a> is a
3044
3044
<a>shadow-including inclusive descendant</a> of <var> node</var> , set its <a for=range>end</a> to
3045
3045
(<var> parent</var> , <var> index</var> ).
3046
3046
@@ -5785,8 +5785,7 @@ are:
5785
5785
<hr>
5786
5786
5787
5787
<p> The <dfn method for=Document><code>createRange()</code></dfn> method steps are to return a new
5788
- {{Range}} <a>live range</a> with (<a>this</a> , 0) as its <a for=range>start</a> and <a
5789
- for=range> end</a> .
5788
+ {{Range}} object with (<a>this</a> , 0) as its <a for=range>start</a> and <a for=range>end</a> .
5790
5789
5791
5790
<p class=note> The {{Range/Range()}} constructor can be used instead.
5792
5791
@@ -7921,11 +7920,11 @@ range.setEnd(secondText, 4)
7921
7920
<a>node tree</a> above cannot be represented by a <a>range</a> . <a>Ranges</a> are only useful for
7922
7921
<a for=/>nodes</a> .
7923
7922
7924
- <p> {{Range}} objects, unlike {{StaticRange}} objects, are affected by mutations to the <a>node
7925
- tree</a> . Therefore they are <a>live ranges</a> . Such mutations will not invalidate them and will
7926
- try to ensure that it still represents the same piece of content. Necessarily, a <a>live range</a>
7927
- might itself be modified as part of the mutation to the <a>node tree</a> when, e.g., part of the
7928
- content it represents is mutated.
7923
+ <p> {{Range}} objects, unlike {{StaticRange}} objects, are affected by mutations to the
7924
+ <a>node tree</a> . Therefore they are <a>live ranges</a> . Such mutations will not invalidate them and
7925
+ will try to ensure that it still represents the same piece of content. Necessarily, a
7926
+ <a>live range</a> might itself be modified as part of the mutation to the <a>node tree</a> when,
7927
+ e.g., part of the content it represents is mutated.
7929
7928
7930
7929
<p class=note> See the <a for=/>insert</a> and <a for=/>remove</a> algorithms, the
7931
7930
{{Node/normalize()}} method, and the <a>replace data</a> and <a lt="split a Text node">split</a>
@@ -8162,12 +8161,11 @@ mutations to the <a>node tree</a>.</p>
8162
8161
<a>live ranges</a> associated with that <a>tree</a> .</p>
8163
8162
8164
8163
<p> A <dfn export id=concept-composed-live-range>composed live range</dfn> is a <a>live range</a>
8165
- that has one associated {{Range}} object - <dfn export
8166
- id=concept-composed-live-range-cached-live-range for="composed live range"> cached live
8167
- range</dfn> .</p>
8164
+ that has one associated {{Range}} object —
8165
+ <dfn export id=concept-cached-live-range for="composed live range">cached live range</dfn> .</p>
8168
8166
8169
- <p class=note> The <a>cached live range</a> is used to maintain backward compatibility with the
8170
- {{getRangeAt}} API.</p>
8167
+ <p class=note> The <a for="composed live range" >cached live range</a> is used to maintain backward
8168
+ compatibility with the {{getRangeAt}} API.</p>
8171
8169
8172
8170
<p> The <dfn export id=concept-range-root for="live range">root</dfn> of a <a>live range</a> is the
8173
8171
<a for=tree>root</a> of its <a for=range>start node</a> .
@@ -8237,7 +8235,7 @@ but not its <a for=range>end node</a>, or vice versa.
8237
8235
8238
8236
<dl class=domintro>
8239
8237
<dt><code><var> range</var> = new <a constructor>Range()</a> </code>
8240
- <dd> Returns a new {{Range}} <a>live range</a> .
8238
+ <dd> Returns a new {{Range}} object .
8241
8239
</dl>
8242
8240
8243
8241
<p> The <dfn constructor for=Range lt="Range()"><code>new Range()</code></dfn> constructor steps are
@@ -8303,9 +8301,9 @@ steps:
8303
8301
<li> Set <var> range</var> 's
8304
8302
<a for=range>start</a> to <var> bp</var> .
8305
8303
8306
- <li> If <var> range</var> is the associated <a >cached live range</a> of a <a>composed live
8307
- range</a> < var> composed live range</var> , set <var> composed live range</var> ’s <a
8308
- for ="range"> start</a> to <var> bp</var> .
8304
+ <li> If <var> range</var> is the <a for="composed live range" >cached live range</a> of a
8305
+ < var> composed live range</var> , set <var> composed live range</var> ’s
8306
+ <a or ="range">start</a> to <var> bp</var> .
8309
8307
</ol>
8310
8308
<dt> If these steps were invoked as "set the end"
8311
8309
<dd>
@@ -8322,9 +8320,9 @@ steps:
8322
8320
<li> Set <var> range</var> 's
8323
8321
<a for=range>end</a> to <var> bp</var> .
8324
8322
8325
- <li> If <var> range</var> is the associated <a >cached live range</a> of a <a>composed live range</a>
8326
- <var> composed live range</var> , set <var> composed live range</var> ’s <a for="range">end</a> to
8327
- <var> bp</var> .
8323
+ <li> If <var> range</var> is the <a for="composed live range" >cached live range</a> of a
8324
+ <var> composed live range</var> , set <var> composed live range</var> ’s
8325
+ <a for="range">end</a> to < var> bp</var> .
8328
8326
</ol>
8329
8327
</dl>
8330
8328
</ol>
@@ -8605,8 +8603,8 @@ method steps are:
8605
8603
(<var> new node</var> , <var> new offset</var> ).
8606
8604
</ol>
8607
8605
8608
- <p> To <dfn export id=concept-range-extract for="live range">extract</dfn> a {{Range}} <a>live
8609
- range</a> <var> range</var> , run these steps:
8606
+ <p> To <dfn export id=concept-range-extract for="live range">extract</dfn> a {{Range}} object
8607
+ <var> range</var> , run these steps:
8610
8608
8611
8609
<ol>
8612
8610
<li><p> Let <var> fragment</var> be a new {{DocumentFragment}} <a for=/>node</a> whose
@@ -8782,8 +8780,7 @@ range</a> <var>range</var>, run these steps:
8782
8780
<li> <a>Append</a> <var> clone</var>
8783
8781
to <var> fragment</var> .
8784
8782
8785
- <li> Let <var> subrange</var> be a new {{Range}} <a>live range</a>
8786
- whose <a for=range>start</a> is
8783
+ <li> Let <var> subrange</var> be a new {{Range}} object whose <a for=range>start</a> is
8787
8784
(<var> original start node</var> , <var> original start offset</var> ) and
8788
8785
whose <a for=range>end</a> is
8789
8786
(<var> first partially contained child</var> , <var> first partially contained child</var> 's
@@ -8836,8 +8833,7 @@ range</a> <var>range</var>, run these steps:
8836
8833
<li> <a>Append</a> <var> clone</var>
8837
8834
to <var> fragment</var> .
8838
8835
8839
- <li> Let <var> subrange</var> be a new {{Range}} <a>live range</a>
8840
- whose <a for=range>start</a> is
8836
+ <li> Let <var> subrange</var> be a new {{Range}} object whose <a for=range>start</a> is
8841
8837
(<var> last partially contained child</var> , 0) and whose
8842
8838
<a for=range>end</a> is
8843
8839
(<var> original end node</var> , <var> original end offset</var> ).
@@ -8861,7 +8857,7 @@ result of <a for="live range">extracting</a> <a>this</a>.
8861
8857
8862
8858
<p> To
8863
8859
<dfn export id=concept-range-clone for="live range" lt="clone the contents|cloning the contents">clone the contents</dfn>
8864
- of a {{Range}} <a>live range</a> <var> range</var> , run these steps:
8860
+ of a {{Range}} object <var> range</var> , run these steps:
8865
8861
8866
8862
<ol>
8867
8863
<li><p> Let <var> fragment</var> be a new {{DocumentFragment}} <a for=/>node</a> whose
@@ -8989,7 +8985,7 @@ of a {{Range}} <a>live range</a> <var>range</var>, run these steps:
8989
8985
<li> <a>Append</a> <var> clone</var>
8990
8986
to <var> fragment</var> .
8991
8987
8992
- <li> Let <var> subrange</var> be a new {{Range}} <a>live range</a>
8988
+ <li> Let <var> subrange</var> be a new {{Range}} object
8993
8989
whose <a for=range>start</a> is
8994
8990
(<var> original start node</var> , <var> original start offset</var> ) and
8995
8991
whose <a for=range>end</a> is
@@ -9047,7 +9043,7 @@ of a {{Range}} <a>live range</a> <var>range</var>, run these steps:
9047
9043
<li> <a>Append</a> <var> clone</var>
9048
9044
to <var> fragment</var> .
9049
9045
9050
- <li> Let <var> subrange</var> be a new {{Range}} <a>live range</a>
9046
+ <li> Let <var> subrange</var> be a new {{Range}} object
9051
9047
whose <a for=range>start</a> is
9052
9048
(<var> last partially contained child</var> , 0) and whose
9053
9049
<a for=range>end</a> is
@@ -9067,7 +9063,7 @@ of a {{Range}} <a>live range</a> <var>range</var>, run these steps:
9067
9063
result of <a for="live range">cloning the contents</a> of <a>this</a> .
9068
9064
9069
9065
<p> To <dfn export id=concept-range-insert for="live range">insert</dfn> a <a for=/>node</a>
9070
- <var> node</var> into a {{Range}} <a>live range</a> <var> range</var> , run these steps:
9066
+ <var> node</var> into a {{Range}} object <var> range</var> , run these steps:
9071
9067
9072
9068
<ol>
9073
9069
<li> If <var> range</var> 's <a for=range>start node</a> is a {{ProcessingInstruction}} or {{Comment}}
@@ -9217,7 +9213,7 @@ check first thing, which matches everyone but Firefox.
9217
9213
</ol>
9218
9214
9219
9215
<p> The <dfn method for=Range><code>cloneRange()</code></dfn> method steps are to return a new
9220
- {{Range}} <a>live range</a> with the same <a for=range>start</a> and <a for=range>end</a> as
9216
+ {{Range}} object with the same <a for=range>start</a> and <a for=range>end</a> as
9221
9217
<a>this</a> .
9222
9218
9223
9219
<p> The <dfn method for=Range><code>detach()</code></dfn> method steps are to do nothing.
0 commit comments