As usual, I am lazy to try it on all available platforms, so please help me in your comments!
If a select element has no option selected (selectedIndex == -1), an outside-select click behavior deceives the browser to fire the onchange event for the select.
How to reproduce bug:
- Click to open a select element
- Move your mouse over any option (make sure the option is highlighted, but don't click on anything)
- Click outside the select twice
- As a result of the bug, the onchange event is fired with the option under mouse as the select value
To see an example, the bug is illustrated here
I tried it on Ubuntu (Gnome and KDE) and it happens too.
I tried also on Firefox for Windows (through wine) and it happens too!