-
Notifications
You must be signed in to change notification settings - Fork 31
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
Clarify how text selection in <input> and <textarea> work with Selection interface #83
Comments
The biggest difference between WebKit/Blink and Gecko is that the former two will update the selection inside a text field based on APIs on |
It seems a difference is only how text control selection API works without focus. |
As for Selection.toString(), Chrome and Safari return selected string in a text control, and Edge and Firefox returns nothing. |
I was testing the selection range with input and textarea, and there is also a difference between Blink/WebKit and Gecko. If some text in a text field or textarea is selected, the selection range in Blink and WebKit seems to be equivalent to a caret selection immediately before the input or textarea (so Gecko's behavior is almost certainly unintentional and the result of an implementation bug, but I wonder whether Blink/WebKit's behavior is worth keeping. |
The relationship between
Selection
interface and text control selections is unclear. Let's clarify, and ask for updating HTML specification if needed.The text was updated successfully, but these errors were encountered: