Steps 7-9 of the input type change algorithm

Spec: https://html.spec.whatwg.org/multipage/input.html#input-type-change

In short, this resets the selection to the start of the field when the
type has changed from one which doesn't support the selection API to one
that does.

I couldn't see an existing WPT test covering this.
This commit is contained in:
Jon Leighton 2017-12-11 21:30:47 +01:00
parent ce7bae8834
commit a8b64aca2a
5 changed files with 40 additions and 7 deletions

View file

@ -553459,7 +553459,7 @@
"testharness"
],
"html/semantics/forms/the-input-element/type-change-state.html": [
"d731573ee091b7e658ea0b1ded46a764e8165f6c",
"6ca94002609dae5548e5c832e4a84639c1094f69",
"testharness"
],
"html/semantics/forms/the-input-element/url.html": [