Incorrect usage of aria-describedby
-
Hi there, I’ve noticed that your plugin uses the
aria-describedby
attribute incorrectly.In the HTML generated by your plugin the
aria-describedby
attribute is placed on the description element, and contains the ID of the element it is describing.This is the reverse of the way the attribute should be used!
The
aria-describedby
attribute should be placed on the element being described, and its value should be the ID of the element providing the description.For example, this is incorrect:
<div> <label for="forminator-field-name-1">Name</label> <input type="text" id="forminator-field-name-1"> <span aria-describedby="forminator-field-name-1">This is the description</span> </div>
It should be corrected to something like this:
<div> <label for="forminator-field-name-1">Name</label> <input type="text" id="forminator-field-name-1" aria-describedby="forminator-field-name-1-description"> <span id="forminator-field-name-1-description">This is the description</span> </div>
I hope you will be able to correct this soon as currently the description fields are not accessible.
- The topic ‘Incorrect usage of aria-describedby’ is closed to new replies.