Works in Safari, Firefox, IE.
Created attachment 13064 [details]
Created attachment 13065 [details]
Created attachment 13089 [details]
I'm not sure if I understood this code well enough, but this fixes the bug and passes existing tests.
When testing this, I noticed a separate regression with list boxes - an onchange event gets dispatched when clicking on an already selected element, if it was selected from JS. Going to file a new bug.
Filed bug 12725 for listbox issues.
Comment on attachment 13089 [details]
Regressions are P1.
Alexey, can this be tested in DRT? If not, please add a test to the manuel-tests directory instead.
Committed revision 19563.
(In reply to comment #7)
> Alexey, can this be tested in DRT? If not, please add a test to the
> manuel-tests directory instead.
It cannot be tested in DRT - but the test is already in manual-tests. Or did I misunderstand you?