Closed Bug 807948 Opened 12 years ago Closed 11 years ago

Change/onchange event on select element was not triggered at correct timing

Categories

(Core :: DOM: Events, defect)

16 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 126379

People

(Reporter: 543080122, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Build ID: 20121002073616

Steps to reproduce:

Bind some noticeable function (e.g. alert(1)) to combobox

Click on the combobox(select element) once, then click anywhere else to give the focus to it, but not make any choice, then change the selected item with keyboard arrow keys (up and down), check if the function you just bind was triggered.

Click somewhere else again to release the focus, check what happened.



Actual results:

When change options with arrow keys, the change event is not triggered.

When release the focus, event was triggered, i.e. it was triggered at when the blur/onblur event was fired.


Expected results:

IE9 and Chrome 23 fired the change event at right time (when you change options with arrow keys). Firefox should, too.
Attachment #677728 - Attachment mime type: text/plain → text/html
I'm pretty sure this is a duplicate of an old issue. Something like bug 126379.
Component: Untriaged → DOM: Events
Product: Firefox → Core
Whiteboard: dupeme
(In reply to Virgil Dicu [:virgil] [QA] from comment #1)
> I'm pretty sure this is a duplicate of an old issue. Something like bug
> 126379.

Jesus! It's from '60s! Well, I mean this bug was there for 10 years, why firefox never fix it? The W3 clearly declared that onChange event should be triggered with keyboard: [1]Procedure: 1. Using the keyboard or an assistive technology that emulates the keyboard, move focus to the select control.  2.Using the keyboard or an assistive technology that emulates the keyboard, select a value from the menu to trigger the onChange event.


  [1]]http://www.w3.org/WAI/UA/TS/html401/cp0102/0102-ONCHANGE-SELECT.html
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Whiteboard: dupeme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: