WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
236598
AX: manually blurring a focused element resets tab navigation to the start of the document
https://bugs.webkit.org/show_bug.cgi?id=236598
Summary
AX: manually blurring a focused element resets tab navigation to the start of...
Aleksandr Hovhannisyan
Reported
2022-02-14 10:30:10 PST
Summary: In Chrome 98 and Firefox 97, both on Windows 10 and macOS Catalina, .blurring() a focused element with JavaScript maintains a "ghost" focus state at that location in the document, such that when a user presses the tab key to navigate forward in the document, they move to the next focusable element on the page. In Safari, manually firing the .blur() event destroys keyboard focus, such that the next tab event proceeds from the start of the document rather than where it left off when .blur() was called. Reproducible examples: - CodePen demo of managing focus with load-more buttons and dynamically loaded content:
https://codepen.io/AleksandrHovhannisyan/pen/rNGOBKv
. - Minimal toy example:
https://jsfiddle.net/mujdq29k/
. Expectation: Safari should behave the same as Chrome and Firefox. Blurring a focused element should not reset focus to the start of the document.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-02-14 10:30:23 PST
<
rdar://problem/88913538
>
Aleksandr Hovhannisyan
Comment 2
2022-02-18 05:43:23 PST
A colleague of mine checked in an accessibility Slack channel, and it turns out that the behavior we see in Chrome/Firefox is actually not a standard behavior and is some sort of self-correcting behavior. It's also not accessible because for some screen readers, the focus actually still jumps to the start of the document when blurring manually. I think we can close this ticket since Safari appears to be working correctly in that respect. blur() SHOULD return focus to the start of the document.
Smoley
Comment 3
2022-02-21 15:27:05 PST
Thanks!
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