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

Should TreeWalker be expanded to support shadow roots in support of the selection API? #164

Closed
keithamus opened this issue Apr 21, 2023 · 1 comment

Comments

@keithamus
Copy link
Member

WCCG had their spring F2F in which this was discussed. Present members of WCCG identified an action item to raise this issue. You can read the full notes of the discussion (WCCG had their spring F2F) in which this was discussed, heading entitled "Selection API". I won't be quoting the notes for brevity.

TreeWalker was discussed as a mechanism to walk the DOM to gather textcontent of the currently selected nodes, but it was pointed out that TreeWalker does not iterate over shadow roots.

This issue is to discuss the expansion of TreeWalker to support shadow roots, perhaps using a shadowroots: option to provide contained shadow roots?

Refs #161

@rniwa
Copy link
Contributor

rniwa commented Apr 21, 2023

TreeWalker is in a DOM specification so this issue should be tracked in https://github.com/whatwg/dom/ instead.

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