w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
147 stars 52 forks source link

Browsers do not fire select event with UIEvent #284

Open saschanaz opened 3 years ago

saschanaz commented 3 years ago

None of Gecko, Blink nor WebKit uses UIEvent for select events at HTML input/textarea elements, even when it's from user input devices, when the spec says:

UIEvent if generated from a user interface, Event otherwise.

Should the spec be changed, or is there a good reason to force UIEvent?

zcorpan commented 8 months ago

Demo: https://software.hixie.ch/utilities/js/live-dom-viewer/saved/12265

As far as I can tell, Chrome, Safari and Firefox only fire select event for input and textarea elements, which is required in HTML:

https://html.spec.whatwg.org/#set-the-selection-range https://html.spec.whatwg.org/#the-input-element-as-a-text-entry-widget https://html.spec.whatwg.org/#the-textarea-element-2

Thus I think the select event can be removed completely from the UI Events spec.