-
Notifications
You must be signed in to change notification settings - Fork 470
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
*ByRole form seems not to find <form /> elements #1293
Comments
It looks like it's been changed in w3c/html-aria#402 |
Should the fix be made in https://github.com/A11yance/aria-query/blob/main/src/etc/roles/literal/formRole.js ? |
Looking at:
I’m inclined to agree, all the specs point to the form element having the form role regardless of accessible name. As you describe the only condition is regarding whether it’s also considered a landmark. |
In addition to the update to aria-query, perhaps worth removing the comment in https://github.com/eps1lon/dom-accessibility-api/blob/main/sources/getRole.ts#L30 as well (although no code change needed as seems already assumed a |
This has been changed in the ARIA spec in w3c/html-aria#402. See also testing-library/dom-testing-library#1293
This has been changed in the ARIA spec in w3c/html-aria#402. See also testing-library/dom-testing-library#1293
Some more context:
The last one means that WAI-ARIA is somewhat in conflict with the AAM specs currently as it still states that an accessible name is required on a form (something that is a bug in in If we assume that WAI-ARIA is updated (e.g. in 1.3) then we could ignore that |
This has been changed in the ARIA spec in w3c/html-aria#402. See also testing-library/dom-testing-library#1293
Prior issue #1021
Testcase:
Result:
@testing-library/dom
version: 9.3.4In the previously mentioned bug, @eps1lon explained that this was following the roles from html-aam. However it looks like they've been updated, see https://www.w3.org/TR/core-aam-1.2/#role-map-form-nameless. It looks like that a
form
element without an accessible name gets a computed roleform
too.However they mention that it shouldn't be exposed as a landmark. Is that where my interpretation is wrong?
Thanks for your feedback!
The text was updated successfully, but these errors were encountered: