Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要滑动区域用attachShadow({ mode: "open" })渲染 #13

Closed
qilong1997 opened this issue Dec 27, 2024 · 1 comment
Closed

需要滑动区域用attachShadow({ mode: "open" })渲染 #13

qilong1997 opened this issue Dec 27, 2024 · 1 comment

Comments

@qilong1997
Copy link

需要滑动区域用attachShadow({ mode: "open" })渲染的内容,highlighter.getSelectionRange()获取不到内容如何解决

@DLillard0
Copy link
Owner

@qilong1997 很可惜,目前 getSelection API 没办法支持 ShadowDOM 内部的 selection 选中监听,参考这个 issue,目前有在讨论通过一个新的 API getComposedRange 来支持 ShadowDOM,但目前还没有浏览器实现,所以暂时没办法解决这个问题。

@DLillard0 DLillard0 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants