[Webkit-unassigned] [Bug 6181] New: Change and focus events happen in different order if using tab vs. clicking

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Dec 21 07:16:52 PST 2005


http://bugzilla.opendarwin.org/show_bug.cgi?id=6181

           Summary: Change and focus events happen in different order if
                    using tab vs. clicking
           Product: WebKit
           Version: 412+
          Platform: Macintosh
               URL: http://www.pilgrimwebdesign.com/events.php
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: jhurshman at gmail.com


The order of events when leaving a changed field and focusing on a new one is different depending if 
the focus change occurred by pressing tab or by clicking.

If the user leaves a changed field and sets focus into a new one by pressing tab, the order is as follows:
1. blur old
2. change old
3. focus new

However, if the focus is changed by clicking, the order is:
1. blur old
2. focus new
3. change old
4. click new

So in the tab case, onchange fires before onfocus, and in the click case, onfocus fires before onchange.

For reference, the event order in both Firefox and IE 6 for these two scenarios is:
Tab:
1. change old
2. blur old
3. focus new

Click:
1. change old
2. blur old
3. focus new
4. click new

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list