Accesskey doesn't work when put on both label and its checkbox or radio button
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: 326374, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: regression)
Attachments
(1 file)
|
188 bytes,
text/html
|
Details |
Comment 1•18 years ago
|
||
Comment 3•18 years ago
|
||
Updated•18 years ago
|
Updated•18 years ago
|
Updated•18 years ago
|
Updated•17 years ago
|
| Assignee | ||
Updated•7 years ago
|
Hi Dan
Would you be so kind to let us know if this problem keeps happening? I was trying to access the link in the description but it was removed.
Thanks!
I've attached an HTML file to reproduce the issue.
The Firefox bug is still there. It's not an issue on Wikipedia, since they removed the duplicate accesskey many years ago.
Comment 8•4 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Comment 9•4 years ago
|
||
This is still an issue. It works as expected in comment 0 in both Chrome and Safari.
Comment 10•4 years ago
|
||
The test case works as expected if either element have accesskey, but not if both do.
Updated•4 years ago
|
Comment 11•4 years ago
|
||
The relevant code are in https://searchfox.org/mozilla-central/rev/2809416b216b498ec3d8b0e65c25a135f4f5f37d/dom/events/EventStateManager.cpp#1152. If there are multiple elements have same accesskey, we allow user to cycle between them, instead of activation one of them. Chrome and Safari activate the last or first, AFAIK, https://github.com/whatwg/html/issues/4385. Maybe we could do some optimization for the case that the label and its labeled control has the same accesskey.
Description
•