-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add selectionRoot
option to getComposedRanges parameter options
#180
Comments
The use case for this parameter was discussed here: cc: @mfreed7 |
Conversation about the WICG/webcomponents#79 (comment) Also note that providing |
@johanneswilm would you mind please Agenda+'ing this issue for TPAC? I don't have permission. |
Summary of discussion at TPAC: |
Closing this as this proposal is not in consideration for the current version of getComposedRanges. We can re-open if needed. |
To simplify selection for components that only wish to handle selections within a sub-tree, we would like to add the optional selectionRoot parameter. If provided, the returned StaticRange from getComposedRanges() will only contain endpoints that are inclusive descendants of this selectionRoot.
Proposal:
We would also need to redefine how the rescoping works for selectionRoot:
Resources
This parameter was first suggested in the explainer and had positive feedback. Please see the example in the explainer as it illustrates this parameter well.
Related issue: #176
The text was updated successfully, but these errors were encountered: