-
Notifications
You must be signed in to change notification settings - Fork 199
New Selection API features #1888
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't name this just selection.yml, because that's already taken by the ::selection pseudo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Matches both the spec title and the Caniuse key, so seems fine to me to keep API here, and there's precedent for doing so.
jamesnw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, but overall looks good!
Co-authored-by: James Stuckey Weber <james@oddbird.net>
The Selection API has been evolving over the years, so I've spent some time here making the data match caniuse as best I could.
I think the support data makes sense.
I also really wanted to split out
getComposedRangesbecause this is much newer, and Chromium is working on an implementation currently, and it unlocks a developer use case that was previously impossible.