- From: Xiaocheng Hu via GitHub <sysbot+gh@w3.org>
- Date: Thu, 22 Feb 2024 08:32:33 +0000
- To: public-css-archive@w3.org
Are there other APIs that pierce shadow DOM? `Document.getSelection()` looks like a similar API to me, which doesn't pierce shadow DOM, and returns `(container_node_of_host, host_offset_in_container)` if the selection is inside shadow DOM (regardless of open or closed). It might be confusing if `getSelection()` and `caretPositionFromPoint()` return different results. > `caretPositionFromPoint` do not pierce shadow DOM. Instead, put the API on `DocumentOrShadowRoot`. +1 to this idea. -- GitHub Notification of comment by xiaochengh Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9932#issuecomment-1958945363 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 22 February 2024 08:32:34 UTC