Contact [email protected]

ExplainerNone

Specificationhttps://w3c.github.io/selection-api/#selectionchange-event

Summary

Dispatches selectionchange event per element when this 
element(input/textarea) provides a text selection or its selection changes. 
This is to match the latest specification of selectionchange event. This 
also matches Safari behavior. 


Blink componentBlink>Editing>Selection 
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EEditing%3ESelection>

TAG reviewNone

TAG review statusIssues addressed

Risks


Interoperability and Compatibility

Interoperability risk is low because Firefox and Safari have shipped this 
according to the specification. Compatibility risk is low because the 
selectionchange event targeting input/textarea would bubble up, and 
existing codes listening on Document will work well as ever.


*Gecko*: Shipped/Shipping

*WebKit*: Shipped/Shipping (https://commits.webkit.org/276238@main)

*Web developers*: No signals

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that 
it has potentially high risk for Android WebView-based applications?

Low WebView application risks.


Debuggability

None


Will this feature be supported on all six Blink platforms (Windows, Mac, 
Linux, ChromeOS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests 
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes

https://wpt.fyi/results/selection/onselectionchange-on-distinct-text-controls.html


Flag name on chrome://flagsNone

Finch feature nameDispatchSelectionchangeEventPerElement

Requires code in //chrome?False

Tracking bughttps://issues.chromium.org/issues/330766600

Estimated milestones
Shipping on desktop
127

Anticipated spec changes

Open questions about a feature may be a source of future web compat or 
interop issues. Please list open issues (e.g. links to known github issues 
in the project for the feature specification) whose resolution may 
introduce web compat/interop risk (e.g., changing to naming or structure of 
the API in a non-backward-compatible way).
None

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5255454895898624?gate=6043023317401600

This intent message was generated by Chrome Platform Status 
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/de18f3c4-df5a-4423-80ec-e505e0c9fb2bn%40chromium.org.

Reply via email to