-
Notifications
You must be signed in to change notification settings - Fork 126
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
Do HTML <form>
and <dialog>
elements require an accessible name?
#2296
Comments
no. What it means is if you use an explicit role. |
to further @stevefaulkner's answer, here's the issue i filed to help correct this common misunderstanding - #2180 |
closes #2180 related to recent question: #2296 This PR removes requiring names for alertdialog, dialog, form, grid, radiogroup and table roles and replaces the author MUST with an author SHOULD. (for grid/table there was no author MUST naming paragraph, so the author SHOULD paragraph was added to these roles).
…, table (#2297) closes #2180 related to recent question: #2296 related to #1764 This PR removes requiring names for alertdialog, dialog, form, grid, radiogroup and table roles and replaces the author MUST with an author SHOULD. (for grid/table there was no author MUST naming paragraph, so the author SHOULD paragraph was added to these roles). With this change there will likely be necessary updates to related APG/MDN docs. * [x] Related APG Issue/PR: w3c/aria-practices#3244 * [x] MDN Issue/PR: mdn/content#38262 * [ ] IBM Equal Access Toolkit issue
Describe your concern
In the WAI-ARIA spec, the
form
anddialog
roles are labeled "Accessible Name Required." Does this mean that HTML authors are required to specify an accessible name for<form>
and<dialog>
elements (e.g. with anaria-label
oraria-labelledby
attribute) in order to comply with the WAI-ARIA spec?The question could theoretically be asked about the
<img>
and<table>
elements as well, but it looks like they have other native mechanisms for specifying accessible names as described in HTML Accessibility API Mappings, section 4.1.10 and section 4.1.11 respectively.(EDIT: Just to clarify, I'm asking if the implicit ARIA semantics of the
<form>
and<dialog>
elements given in the ARIA in HTML specification require these elements to have accessible names as prescribed by the WAI-ARIA specification. I know that the names of the HTML elements and ARIA roles are not directly related.)Link to the version of the specification or documentation you were looking at at.
Link to documentation: https://w3c.github.io/aria/
Does the issue exists in the editors draft (the editors draft is the most recent draft of the specification)? Yes
The text was updated successfully, but these errors were encountered: