- From: Di Zhang <notifications@github.com>
- Date: Thu, 20 Mar 2025 14:25:50 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 20 March 2025 21:25:54 UTC
@dizhang168 commented on this pull request. > - The method must throw {{InvalidStateError}} exception if the - [=this=] is <a>empty</a>. Otherwise, it must create a new - <a>range</a>, [=Range/set the start=] both its [=range/start=] and - [=range/end=] to the [=range/end=] of [=this=]'s <a>range</a>, and - then set [=this=]'s <a>range</a> to the newly-created <a>range</a>. - </p> + <p> + The method must follow these steps: + </p> + <ol> + <li>If [=this=] is <a>empty</a>, throw an {{InvalidStateError}} + exception and abort these steps. + </li> + <li>Let <var>bp</var> be the [=Range/end=] of [=this=]'s <a>range</a>. + </li> + <li><a>Set the composed selection range</a> with <var>bp</var> and That is my bad, this part of the PR should be updated. Most of the ranges references in the API, including the one you are pointing at, should be referencing the `legacy uncomposed range` instead. "this's range" => "this's legacy uncomposed range". -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/pull/345#discussion_r2006476911 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/pull/345/review/2704151633@github.com>
Received on Thursday, 20 March 2025 21:25:54 UTC