Skip to content

Conversation

@captainbrosset
Copy link
Contributor

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 getComposedRanges because this is much newer, and Chromium is working on an implementation currently, and it unlocks a developer use case that was previously impossible.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Oct 2, 2024
Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Collaborator

@jamesnw jamesnw left a 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!

@captainbrosset captainbrosset merged commit 2be9e5c into main Oct 18, 2024
3 checks passed
@captainbrosset captainbrosset deleted the ranges branch October 18, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants