- From: Dominic Farolino <notifications@github.com>
- Date: Wed, 05 Mar 2025 17:42:12 -0800
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 6 March 2025 01:42:16 UTC
@domfarolino 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=] Which option did you opt for? It's not clear given the discussion here. Plus, I don't think we can just grab the shadow host of each anchor and focus and expect both hosts to be in the same root... what about nested shadow roots? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/pull/345#discussion_r1982436843 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/pull/345/review/2662880782@github.com>
Received on Thursday, 6 March 2025 01:42:16 UTC