Open
Bug 886268
Opened 12 years ago
Updated 3 years ago
Focus is pushed to link on click
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: jase.williams, Unassigned)
References
()
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1541.0 Safari/537.36
Steps to reproduce:
Visited: http://jsfiddle.net/uEDpg/1/
Clicked on the 'click me' button.
Actual results:
The document.activeElement is 'A'.
Expected results:
In other browsers such as Chrome, focus remains on the Body.
Checking the specification, there is no mention of focus being pushed to the link on click. Have FF made this assumption?
http://www.w3.org/html/wg/drafts/html/master/editing.html#focus
This is causing some browser inconsistency.
| Reporter | ||
Updated•12 years ago
|
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
FYI IE11 also fired a focus event followed by a click event.
Comment 4•12 years ago
|
||
OSX has rather odd focus handling compared to the other platforms.
Comment 5•12 years ago
|
||
The Firefox Mac behaviour could be considered wrong, but we've always focused html elements on click on all platforms so I don't see why we would change this now. I would however say that the Chrome behaviour on Windows is wrong.
| Reporter | ||
Comment 6•12 years ago
|
||
I have also posted a ticket on Chromium so i will link it here:
https://code.google.com/p/chromium/issues/detail?id=312478&thanks=312478&ts=1383003937
Comment 7•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
| Reporter | ||
Comment 8•7 years ago
|
||
This can be closed
| Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•