-
Notifications
You must be signed in to change notification settings - Fork 779
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
aria-allowed-role with custom autocomplete (combobox + listbox, aria 1.0 vs aria 1.1) (PR #1118) #1116
Comments
Thanks for reporting. This does seem to be incorrect. |
From https://www.w3.org/TR/wai-aria-1.1/#combobox
I understand it like combobox should be assigned to the parent (following aria 1.1). On the other hand aria 1.0 with its legacy custombox allowed it on the input itself. Column 'usage' says:
|
@georgiee - Thanks for the additional information. @WilcoFiers - I have narrowed down the issue. The specs around the 'combobox' role are quite different between ARIA1.0 and 1.1. I'm looking at the best way to fit in backwards compatibility here. Will link you both in the PR. |
PR - #1118 |
PR has been merged. Closing issue. |
An error newly introduced during our housekeeping.
axe-core
was upgraded from3.0.3
to3.1.1
.The following markup got identified as invalid (shorten)
Report from CLI looks like this (shorten):
The linked help resource by axe cli is the following:
https://dequeuniversity.com/rules/axe/3.1/aria-allowed-role?application=axeAPI
More helping is this URL:
https://www.w3.org/TR/wai-aria-1.1/#combobox
So the problem is the role
combobox
directly on the input. With aria 1.1 it must be on the parent while the text should get the role textbox or searchbox.The linked w3.org document also says the following.
Should Axe continue reporting it as
minor
, allow me to change the aria version with the configuration (couldn't find this option yet) or is it expected just to disable it like shown in the following workaround?Workaround:
Thanks for reading.
The text was updated successfully, but these errors were encountered: