WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
198730
<area> is click and sequentially focusable, but not programatically focusable
https://bugs.webkit.org/show_bug.cgi?id=198730
Summary
<area> is click and sequentially focusable, but not programatically focusable
Domenic Denicola
Reported
2019-06-10 14:12:41 PDT
Discussed in the very long
https://github.com/whatwg/html/issues/4607
, but I will summarize here. rniwa@ indicated that filing an issue would be appreciated. If you visit
https://boom-bath.glitch.me/tabindex.html
in Safari: - You can tab to each <area> element in the last row, and it will become the document.activeElement. - You can click your mouse on each <area> element in the last row, and it will become the document.activeElement. - If you click the "click me" button in the last row, which will attempt to call .focus() on the first of the <area> elements, document.activeElement stays as the <body>. This is a strange exception. Besides <area>, all elements that are click/sequentially focusable, are also programmatically focusable. We're contemplating (in the above-linked HTML issue tracker) making it a spec requirement, or at least recommendation. So we thought maybe Safari would like to change <area> to behave like other elements in this regard.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-06-11 00:57:36 PDT
<
rdar://problem/51614064
>
Domenic Denicola
Comment 2
2019-06-11 09:15:38 PDT
In the counterpart Chromium bug
https://bugs.chromium.org/p/chromium/issues/detail?id=972764
we discovered that the test case was invalid. I was attempting to focus a href=""-less <area> programmatically, whereas I was clicking on a <area> that had a href="". Sorry for the noise!
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