w3c / uievents

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

Different mousedown behavior between Firefox and Chrome/Safari #201

Open nuragic opened 6 years ago

nuragic commented 6 years ago

Hi,

After reading this issue and realizing that Chrome and Firefox handle the change event in different ways, I cannot find an answer to this one... I made a simple pen to illustrate the example (no React, just plain HTML): https://codepen.io/nuragic/pen/xWMaGN?editors=1011

Steps to reproduce

Just click on the select and pick any value.

Results

Chrome / Safari:

"onmousedown"
"onchange"

Firefox:

"onmousedown"
"onmousedown"
"onchange"

😕

The spec https://w3c.github.io/uievents/#event-type-mousedown says:

A user agent MUST dispatch this event when a pointing device button is pressed over an element.

Could anyone clarify which one is correct (or if both are ok)?

Thanks!

nuragic commented 5 years ago

Hello... just wanted to ping spec editors in the hope they could clarify 🙏 Thanks!

@garykac @travisleithead