- From: Di Zhang <notifications@github.com>
- Date: Mon, 10 Mar 2025 20:05:04 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 11 March 2025 03:05:08 UTC
dizhang168 left a comment (whatwg/dom#1362) To be clear, the proposal is to change the "set the start" step by adding the following pre-step: 1. While _node_ is a node and _node_'s root is a shadow root, repeat these steps: 1.1. Set _offset_ to index of _node_'s root's host. 1.2 Set _node_ to _node_'s root's host's parent. And similar for "set the end" to, 1. While _node_ is a node and _node_'s root is a shadow root, repeat these steps: 1.1. Set _offset_ to index of _node_'s root's host plus one. 1.2 Set _node_ to _node_'s root's host's parent. To me, yes, web compat is the main concern. Since this change would be to modify the result of getRangeAt(0) and Range API, I believe this should be separated from the efforts to specify composed range for getComposedRanges(). -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1362#issuecomment-2712443238 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1362/2712443238@github.com>
Received on Tuesday, 11 March 2025 03:05:08 UTC