- From: Di Zhang <notifications@github.com>
- Date: Fri, 28 Mar 2025 16:43:18 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 28 March 2025 23:43:22 UTC
@dizhang168 commented on this pull request. > @@ -546,24 +566,18 @@ <h2> <var>newFocus</var> be the <a>boundary point</a> (<var>node</var>, <var>offset</var>). </li> - <li>Let <var>newRange</var> be a new <a>range</a>. - </li> - <li>If <var>node</var>'s [=tree/root=] is not the same as the - [=this=]'s <a>range</a>'s [=tree/root=], [=Range/set the start=] - <var>newRange</var>'s [=range/start=] and [=range/end=] to - <var>newFocus</var>. + <li>If <var>node</var>'s [=tree/root=] is not the same as + [=this=]'s <a>range</a>'s [=tree/root=], <a>reset the range</a> with + <var>newFocus</var> and <var>newFocus</var>. </li> <li>Otherwise, if <var>oldAnchor</var> is [=boundary point/before=] Right, I have added the definition for composed before/after in the DOM PR. Once that lands, I can update this algorithm to use that instead. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/pull/345#discussion_r2019584895 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/pull/345/review/2727066982@github.com>
Received on Friday, 28 March 2025 23:43:22 UTC