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

Adding HighlightRange to the selection #14

Open
Reinmar opened this issue Nov 15, 2018 · 1 comment
Open

Adding HighlightRange to the selection #14

Reinmar opened this issue Nov 15, 2018 · 1 comment

Comments

@Reinmar
Copy link

Reinmar commented Nov 15, 2018

My understanding is that since HighlightRange inherits from Range, it can be passed to Selection#addRange().

According to https://www.w3.org/TR/selection-api/#dom-selection-addrange that range is passed there by a reference and it should be updated once the selection changes.

Does it mean that someone can add a highlight range to the selection? And, if so, could it cause some problems?

Also, we could imagine that the selection is highlighting its ranges internally (so ::selection ~== ::highlight(selection)). I wonder if this could have some interesting implications.

@gked
Copy link

gked commented Jul 23, 2019

we can close this since the issue is now tracked here: MicrosoftEdge/MSEdgeExplainers#70

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