HTMLSelectElement::optionSelectedByUser confuses listIndex and optionIndex. This breaks the ObjC binding to select element which call that method directly: -[DOMHTMLSelectElement _activateItemAtIndex:allowMultipleSelection:].
<rdar://problem/12363971>
Created attachment 169054 [details] [PATCH] Proposed Fix Without the patch, the test fails with the following output: Select multiple indexes, with multi-select on, in a <select multiple> with <optgroup>s. ** change event fired ** ** change event fired ** FAIL - option 0 was not what we expected. FAIL - option 2 was not what we expected.
Great fix!
Comment on attachment 169054 [details] [PATCH] Proposed Fix Clearing flags on attachment: 169054 Committed r131534: <http://trac.webkit.org/changeset/131534>
All reviewed patches have been landed. Closing bug.
We should give different types to optionIndex and listIndex. At least typedefs, ideally their own classes...