Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Add Accessibility section to Readme#2149
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Add Accessibility section to Readme#2149
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@@ -73,6 +73,27 @@ $("#myForm").validate({ | |||
}); | |||
``` | |||
## Accessibility | |||
For an invalid field, the default output for the jQuery Validation Plugin is an error message in a `<label>` element. This results in two `<label>` elements pointing to a single input field using the `for` attribute. While this is valid HTML, it has inconsistent support across screen readers. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
maybe we should mention a example on how this "bad html" looks like
KatieMFritz commentedAug 17, 2020
This is great! |
Sorry for having this not merged earlier. We can improve it further but lets have it in the readme for now. Thx for the contribution and sorry for the overlong wait periode |
Adding Accessibility section to the readme that speaks to using
errorElement
in thevalidate()
method.Thank you!