-
-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<summary> not activatable if it has descendant <input> #12008
Comments
The HTML spec currently states that phrasing content (including interactive content such as cc @JAWS-test |
You are right. It is a screen reader bug (NVDA and JAWS), but it results from a bug in the HTML specification. As long as the HTML bug exists, screen readers should correctly output and operate elements within summary, especially since Chrome correctly passes the role of the checkbox to the Accessibility API. Until the bug is fixed, all web developers are advised to use only plain text in the summary and no structured text or interactive elements. |
Test case: It seems in Firefox it works as expected with NVDA 2024.1 RC1, the control for expanding and colapsing the element is rendered on a separate line in browse mode and it is reachable by tab in focus mode. However, in Chrome the summary element is merged with the link and it cannot be navigated with the keyboard. I can however colaps and xpand the summary element without touching the link by using the mouse. Not sure whether Chromium exposes something wrong here or NVDA behaves unexpected. cc: @jcsteh do you have any details how this was solved in Firefox? cc: @aleventhal |
Steps to reproduce:
<summary>
elementActual behavior:
Details element is not opened, instead the
input
element is toggled.Expected behavior:
Details element should be opened.
System configuration
NVDA installed/portable/running from source:
Installed
NVDA version:
2020.3
Windows version:
10.0.19042 build 19042
Name and version of other software in use when reproducing the issue:
Chrome 88.0.4324.104
The text was updated successfully, but these errors were encountered: