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

Selection Range API #1070

Closed
Fyrd opened this issue May 12, 2015 · 8 comments
Closed

Selection Range API #1070

Fyrd opened this issue May 12, 2015 · 8 comments

Comments

@Fyrd
Copy link
Owner

Fyrd commented May 12, 2015

Selection Range API

https://www.w3.org/TR/selection-api/

Includes (may need further investigation) :

  • window.getSelection()
  • selectstart & selectionchange events

See also: #1311: setSelectionRange, selectionStart and selectionEnd


This issue was imported from Google Moderator

Moderator votes: +22
Issue added by Phil Freo on 2014-04-03
To vote this issue up or down, simply include +1 or -1 in your comment.

@Fyrd Fyrd changed the title Include window.getSelection() Selection Range API Oct 3, 2015
@304NotModified
Copy link
Contributor

+1

@gustafl
Copy link

gustafl commented Feb 21, 2016

+1

But Selection and Range are separate APIs. Selection has its own specification here:

https://www.w3.org/TR/selection-api/

Support is pretty good in my experience, except that IE lacks the important Selection.extend() method. The Range interface is now part of DOM4.

@rvetere
Copy link

rvetere commented Mar 28, 2016

what about document.onselectionchange event which for example available in iOS..? ;) not sure if this is directly related to the selection range API but also can't be found right now in "caniuse".. is it available on android?

@podorozhny
Copy link

+1

3 similar comments
@Sauco82
Copy link

Sauco82 commented Jun 10, 2016

+1

@timtjtim
Copy link

+1

@merwan7
Copy link

merwan7 commented Jun 17, 2016

+1

@Fyrd
Copy link
Owner Author

Fyrd commented Aug 13, 2016

Now available at http://caniuse.com/#feat=selection-api

@Fyrd Fyrd closed this as completed Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants