← Back to release summary

Coalesce selectionchange events

Category
Miscellaneous
Type
Chromium catches up
Status
In developer trial (Behind a flag) (Chrome 128)
Intent stage
None

Summary

This feature is not to fire selectionchange event when there is already one pending. For web developers, selectionchange event listeners will be called less often with this feature. Before this feature, every time the mutation of the selection on one target(input/textarea/document) would make the listener to be called once. Now with this feature, before the selectionchange event listner is finally called, multiple mutations of the selection on one target would make the listener to be called only once.

Motivation

The specification of scheduling selectionchange events has been updated. We need to implement this to catch up the latest specification.

Standards & signals

View on chromestatus.com