-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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-describedby not set when using data-parsley-error-message #1277
Comments
Additionally, if an input already has an aria-describedby attribute set, Parsley should append to it instead of replacing it. As per the docs, the aria-describedby attribute supports multiple space separated IDs, |
First of, thank you for the fiddle. It's much appreciated! Second, sorry for the issue you are having. It's a curious thing. It may have to do with calling I also agree about the issue of appending; the two are not related though. |
Also,
|
Fixed in my PR. |
Should be addressed correctly in 2.9.2. Thanks for the inputs and your patience! |
What kind of issue is this? (put 'x' between the square brackets)
Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use
http://stackoverflow.com/questions/ask .
Provide working code, starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101.
We monitor the tag
parsley.js
.Bug report. If you’ve found a bug, you must provide a minimal example in a CodePen,
starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101 .
Feature Request. Make sure there's no good way to do what you want first;
consider asking on http://stackoverflow.com/questions/ask first.
Example: http://jsfiddle.net/bn59odcu/
If you submit the form in the example above with two invalid email addresses the first input field will not have an aria-describedby attribute to reference the error message, but the second input will.
The issue seems to be related to using data-parsley-error-message specifically. Where we have used this attribute it is causing an accessibly issue on the project I'm working on and I assume it could be causing similar issues on other sites using Parsley. I can switch out the references to data-parsley-error-message for their error-specific alternatives for now, but it would be nice to have an official fix for this going forward.
The text was updated successfully, but these errors were encountered: