-
Notifications
You must be signed in to change notification settings - Fork 780
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
Update allowance of aria-checked on HTML checkbox and radios #3307
Comments
Interesting, yeah that makes sense. We'll see what we can do with that. |
Can we expand the rule to check that the aria semantics match the checkbox semantics and only complain when they don't match until the Chromium bug is fixed and then we switch it to always complain? |
So, what I think I'm going to do here is to prohibit when aria-checked contradicts the true state, which because mixed isn't possible on checkboxes prohibits mixed on checkboxes. Failing then when they are consistent seems a little too strict. |
Agree with not failing when the aria-checked attribute and whatever checked state the input is actually set to don't contradict. Not sure I understand why you'd just prohibit the true state though? Or that mixed isn't possible on checkboxes? No attribute for the latter, but it's definitely possible per the One could very well have aria-checked=false on an actually checked checkbox. or aria-checked=mixed on an unchecked checkbox. maybe i misunderstood what you were saying though? |
Well, looks like I have a gap in my HTML knowledge! I had never heard of indeterminate checkboxes. Alright, I can handle that. But then, you say
It would seem to me that because of that Chrome issue, having |
a e.g., Again, completely agree with the idea of not failing something if the native states vs the ARIA states actually align. but, regardless of what the value is, a misaligned aria-checked attribute will always have the potential to fail, regardless of it's value. |
Thanks for clarifying. That's what I thought too. It's about |
Validated with the latest axe-core develop branch code base, Now seeing Sample code snippets to pass
Fail for aria-required-attr
|
the validation test doesn't confirm what this issue was calling out though? would have expected a validation test for something like these:
|
ARIA in HTML (w3c/html-aria#372) is tightening the allowance of
aria-checked
on native checkboxes and radios, particularly due to w3c/aria#1622 and the fact thataria-checked=mixed
should never be able to be exposed by browsers that correctly follow the ARIA spec.we would request that this at the very least this be called out as an author error if using
aria-checked=mixed
on a checkbox, and either an author error or a warning to indicate that authors should not use this attribute on native checkboxes and radios.For instance, there is a presently bug in chromium where
aria-checked
incorrectly takes precedent over the native checked / dirty checked state of an radio or checkbox element, which can cause inaccurate information to be exposed if the actual checked state and the aria-checked attribute are out of alignment: https://bugs.chromium.org/p/chromium/issues/detail?id=1260371The text was updated successfully, but these errors were encountered: