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)

21 Branch
x86
macOS
defect

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.
Component: Untriaged → DOM
Product: Firefox → Core
FYI IE11 also fired a focus event followed by a click event.
OSX has rather odd focus handling compared to the other platforms.
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.
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
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
This can be closed
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: