-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
setRangeText should probably set the dirty value flag #2425
Comments
I should note that Gecko alerts "Why am I here?" if |
I have changed Gecko behavior for Once this is sorted out, there is a test at the end of https://hg.mozilla.org/mozilla-central/file/7b19a6386225/testing/web-platform/mozilla/tests/html/semantics/forms/textfieldselection/selection-value-interactions.html that can be moved to a normal wpt test. |
I agree this is a spec bug. We should just make this spec text change. |
Test moved over to the "to be upstreamed" bucket: https://hg.mozilla.org/integration/mozilla-inbound/rev/7b89ee0ae4204848f8d6f8f03ea036b6eeff3814 |
Consider this testcase:
Per spec this should alert (and show in the textarea) "Why am I here?" because https://html.spec.whatwg.org/multipage/forms.html#dom-textarea/input-setrangetext never sets the dirty value flag. That's not what what UAs do. They alert "axyzcde" (or at least Chrome, Safari, and Firefox do). As far as I can tell this is a spec bug; setRangeText should set the flag.
@cdumez @annevk @domenic @travisleithead
The text was updated successfully, but these errors were encountered: