Skip to content
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-conditional-attr correct for checkbox, but silent on radios #4416

Open
scottaohara opened this issue Apr 18, 2024 · 1 comment
Open
Labels
false negative rules Issue or false result from an axe-core rule
Milestone

Comments

@scottaohara
Copy link
Contributor

The aria-conditional-attr correctly identifies when the aria-checked attribute is used on a native checkbox - and while that's the primary example that had been discussed per the creation of this rule, the same failure should be called out if someone does <input type=radio aria-checked=...> since it results in the same situation of the ARIA attribute not necessarily matching the state of the html input.

The bit we added to ARIA in HTML about this was worded to be for both input types:

Authors MUST NOT use the aria-checked attribute on any element where the checkedness, or the indeterminate checked value of the element can be in opposition to the current value of the aria-checked attribute.

@straker
Copy link
Contributor

straker commented Apr 18, 2024

Thanks for letting us know

@straker straker added the rules Issue or false result from an axe-core rule label Apr 18, 2024
@straker straker added this to the Axe-core 4.10 milestone Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false negative rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

2 participants