Re: [whatwg/dom] Add definition for composed selection range (PR #1342)

sefeng211 left a comment (whatwg/dom#1342)

> However, this PR DOES NOT collapse its associated "composed selection range", as long as everything is same-document 

Di changed the PR to use shadow-including root rather than comparing the document, I think we now also collapse the composed selection range which is correct IMO. 

> When we "set the start" of a "legacy uncomposed range" in the same root, but in a way that inverts its start/end, the "legacy uncomposed range" collapses to the new start—that behavior predates this PR too. But per this PR, we ALSO collapse its associated "composed selection range" at the new start boundary point

This also looks fine to me. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1342#issuecomment-2725346090
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1342/c2725346090@github.com>

Received on Friday, 14 March 2025 17:33:57 UTC