WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 6181
Change and focus events happen in different order if using tab vs. clicking
https://bugs.webkit.org/show_bug.cgi?id=6181
Summary
Change and focus events happen in different order if using tab vs. clicking
Jonathan Hurshman
Reported
2005-12-21 07:16:51 PST
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
Attachments
Layout tests
(11.06 KB, patch)
2010-11-29 19:11 PST
,
Daniel Bates
ap
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joost de Valk (AlthA)
Comment 1
2006-02-15 16:19:44 PST
Confirmed. nice testcase.
Jesse Pelton
Comment 2
2006-08-01 08:29:49 PDT
Works for me with Safari 2.0.4 (419.3) and a 2006-08-01 WebKit nightly. I always get change, blur, focus, (click, if appropriate), as described for Firefox and IE.
Jonathan Hurshman
Comment 3
2006-08-01 08:55:09 PDT
Yes, it works for me also in 419.3.
Daniel Bates
Comment 4
2010-11-29 19:11:49 PST
Created
attachment 75100
[details]
Layout tests I am unable to reproduce this issue with Mac Safari version 5.0.3 (6533.19.4). And this observation is consistent with the observation of both Jesse Pelton <
https://bugs.webkit.org/show_bug.cgi?id=6181#c2
> and Jonathan Hurshman <
https://bugs.webkit.org/show_bug.cgi?id=6181#c3
>. We should add DRT test cases so as to ensure that we don't regress this bug.
Alexey Proskuryakov
Comment 5
2010-11-30 11:05:14 PST
Comment on
attachment 75100
[details]
Layout tests Nice!
Daniel Bates
Comment 6
2010-11-30 12:36:10 PST
Committed
r72953
: <
http://trac.webkit.org/changeset/72953
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug