Bug 170918 - Update semantics for selection in response to changing value in input/textarea
Summary: Update semantics for selection in response to changing value in input/textarea
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-04-17 14:51 PDT by Domenic Denicola
Modified: 2023-07-10 10:06 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Domenic Denicola 2017-04-17 14:51:49 PDT
The spec was recently changed in https://github.com/whatwg/html/pull/2437. See the new spec at:

- https://html.spec.whatwg.org/multipage/forms.html#dom-input-value-value
- https://html.spec.whatwg.org/multipage/forms.html#dom-textarea-value

Web platform tests are available at http://w3c-test.org/html/semantics/forms/textfieldselection/selection-after-content-change.html

Note that browsers were previously rather non-interoperable and spec-compliant in this area, including WebKit; this change brings the spec more in line with WebKit for textarea, but less so for input.
Comment 1 Radar WebKit Bug Importer 2017-04-18 10:01:41 PDT
<rdar://problem/31683589>
Comment 2 Ahmad Saleem 2023-07-07 08:48:57 PDT
We are passing all WPT tests:

https://wpt.fyi/results/html/semantics/forms/textfieldselection/selection-after-content-change.html?label=experimental&label=master&aligned=

Do we need to do anything more?
Comment 3 Karl Dubost 2023-07-10 10:06:38 PDT
Probably it's fine. 
Thanks Ahmad for the heads up.