autofocus and elem.focus() don't work for image map 'area' elements
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | verified |
People
(Reporter: dholbert, Assigned: sefeng)
References
Details
Attachments
(3 files)
STR:
- Load attached testcase.
- (optional) Press Enter.
EXPECTED RESULTS:
- You should see a circular focus-ring drawn over the yellow image.
- When you press enter, that should activate the focused area's link, which you can confirm by seeing a
#
get added to the URL shown in your URLbar.
ACTUAL RESULTS:
- No focus area is drawn.
- If you press enter, nothing happens.
ADDITIONAL NOTE:
The image/area seems to get sort-of autofocused, because if you press Tab
after loading the testcase, you can see that focus moves to "after-textfield" (which implies that the thing just before that textfield was previously focused). And then if you press Shift-Tab
to move back, you can see that the image correctly gains focus (at which point pressing enter works correctly).
Reporter | ||
Comment 1•1 year ago
|
||
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 2•1 year ago
|
||
Chromium and WebKit give EXPECTED RESULTS.
Firefox Nightly 124.0a1 (2024-02-02) (64-bit) gives ACTUAL RESULTS.
Reporter | ||
Updated•1 year ago
|
Sean, have you looked at this stuff recently?
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 7•1 year ago
•
|
||
.
Comment 8•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Reproduced the issue with Firefox 124.0a1 (2024-02-05) on Windows 10x64. After following the steps from comment 0 the focus is not displayed and nothing happens after pressing the Enter key.
The issue is verified fixed with Firefox 124.0b2 on Windows 10x64, macOS 13 and Ubuntu 23.1. The focus is displayed after loading the test case and a #
is added to the link after pressing the Enter key.
Description
•