-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rule H44 not implmented properly: #4
Comments
Correct, looks like the fallback needs to be handled. I can add this in if you did not already start on the fix. Thanks |
Thanks for your fast response I am still not feeling confident in my rust abilities although I like this project very much. If you don't mind to add it I would be gratefull. In the mean time I am preparing a PR for an error on missing alt on and tangs, just to get a feel of the project. |
Sounds good. I should be able to get to it shortly. |
@emonidi validation to check for aria-label -> text -> check for incorrect labels now applied. This made sense to me since browsers are now becoming more resilient to handle the errors. |
The WCAG rule H44 says:
Label found without a "for" attribute, and therefore not explicitly associated with a form control.
In the
wcag_rule_map.rs
on line 418 in the implementation of the rule the code is as follows:The way I read it is the it finds a
for
element it will do a validation. If a for element is missing it will just continue with no error.I believe that the behavior shuold be that if there is no for attribute it should check for aria-label or if there is text in this label in order to properly cary out the validation.
The text was updated successfully, but these errors were encountered: