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

What happens to direction when the range associated with the selection is modified? #127

Closed
darinadler opened this issue Sep 19, 2020 · 5 comments

Comments

@darinadler
Copy link

The specification says that modifying the range associated with the selection modifies the selection. But I can’t find anything that specifies what happens to direction when that occurs. I’m assuming it should always be reset to directionless if either endpoint of a range is modified, but I don’t see anything that defines that.

@rniwa
Copy link
Contributor

rniwa commented Sep 20, 2020

Related to #3

@annevk
Copy link
Member

annevk commented Sep 21, 2020

See also whatwg/dom#772.

@rniwa
Copy link
Contributor

rniwa commented Jul 13, 2022

Both Gecko & Blink maintains the original direction when using selectNode. https://jsfiddle.net/rdn30job/

@rniwa
Copy link
Contributor

rniwa commented Jul 13, 2022

Added a clarification in fff9e05

@rniwa rniwa closed this as completed Jul 13, 2022
@darinadler
Copy link
Author

I suggest we also get a test added to Web Platform Tests that covers this.

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

3 participants