Closed rniwa closed 7 months ago
So currently we don't do this for the only focused element, right? For example, for several input elements on the same page, every input has its own has_scheduled_selectionchange_event, and we will do same things for every input or text area .
So currently we don't do this for the only focused element, right? For example, for several input elements on the same page, every input has its own _has_scheduled_selectionchangeevent, and we will do same things for every input or text area .
Right. Boolean is per element.
WebKit has implemented this new behavior as of https://commits.webkit.org/276388@main.
Curious, is this (possibly breaking) change already in the shipping version of Safari? (I don't have a Mac around atm). I'm changing the behavior in Gecko. Test runs are still pending.
No, it hasn't shipped yet.
Add a boolean flag "has scheduled selectionchange event" to selection, and check it before queuing a task to fire a
selectionchange
event.Preview | Diff