- From: Di Zhang <notifications@github.com>
- Date: Mon, 21 Oct 2024 14:32:04 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 21 October 2024 21:32:08 UTC
Hi @rniwa! With the currently specced getComposedRanges(), I believe this issue is a blocker and should be resolved. The spec is being vague about the type of Range is associated to the Selection. In Blink (and likely all browsers), this is a Live Range and responds to DOM Mutations accordingly. However, as pointed above, if we want to support composed range, we cannot have it as a live range. I propose we clarify the above definition to: "Once a selection is associated with a given **live range** range, it must continue to be associated with that same range until this specification requires otherwise." But also add new definitions in Selection: * composed focus * composed anchor Which should default to focus/anchor, but can be set when selection crosses shadow trees. And these are the endpoints we use to compute getComposedRanges. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/2#issuecomment-2427765294 You are receiving this because you are subscribed to this thread. Message ID: <w3c/selection-api/issues/2/2427765294@github.com>
Received on Monday, 21 October 2024 21:32:08 UTC