Skip to content

Commit 73e7f33

Browse files
authored
Correct boundary point comparison in set the start or end
Fixes #924.
1 parent 52f7a52 commit 73e7f33

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

dom.bs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7803,27 +7803,27 @@ steps:
78037803
<dt>If these steps were invoked as "set the start"
78047804
<dd>
78057805
<ol>
7806-
<li>If <var>bp</var> is
7807-
<a for="boundary point">after</a> the
7808-
<var>range</var>'s <a for=range>end</a>, or
7809-
if <var>range</var>'s
7806+
<li>If <var>range</var>'s
78107807
<a for="live range">root</a> is not equal to
7811-
<var>node</var>'s <a for=tree>root</a>, set
7812-
<var>range</var>'s <a for=range>end</a> to
7813-
<var>bp</var>.
7808+
<var>node</var>'s <a for=tree>root</a>,
7809+
or if <var>bp</var> is
7810+
<a for="boundary point">after</a> the
7811+
<var>range</var>'s <a for=range>end</a>, set
7812+
<var>range</var>'s <a for=range>end</a>
7813+
to <var>bp</var>.
78147814

78157815
<li>Set <var>range</var>'s
78167816
<a for=range>start</a> to <var>bp</var>.
78177817
</ol>
78187818
<dt>If these steps were invoked as "set the end"
78197819
<dd>
78207820
<ol>
7821-
<li>If <var>bp</var> is
7822-
<a for="boundary point">before</a> the
7823-
<var>range</var>'s <a for=range>start</a>,
7824-
or if <var>range</var>'s
7821+
<li>If <var>range</var>'s
78257822
<a for="live range">root</a> is not equal to
7826-
<var>node</var>'s <a for=tree>root</a>, set
7823+
<var>node</var>'s <a for=tree>root</a>,
7824+
or if <var>bp</var> is
7825+
<a for="boundary point">before</a> the
7826+
<var>range</var>'s <a for=range>start</a>, set
78277827
<var>range</var>'s <a for=range>start</a>
78287828
to <var>bp</var>.
78297829

@@ -10106,7 +10106,8 @@ Yash Handa,
1010610106
Yehuda Katz,
1010710107
Yoav Weiss,
1010810108
Yoichi Osato,
10109-
Yoshinori Sano, and
10109+
Yoshinori Sano,
10110+
Yusuke Abe, and
1011010111
Zack Weinberg
1011110112
for being awesome!
1011210113

0 commit comments

Comments
 (0)