Accessibility - Labels
Accessibility - Labels
dsimmons
Posts: 7Questions: 0Answers: 0
Allan,
Our accessibility testers failed a DataTable because the labels did not have the "for" attribute which matched the ID of the input field. Could you add that into your next version please?
Our accessibility testers failed a DataTable because the labels did not have the "for" attribute which matched the ID of the input field. Could you add that into your next version please?
This discussion has been closed.
Replies
The filter input is inside the label which creates an implicit connection between the input and the label - there is no need for a `for` attribute (which creates an explicit connection). This is defined in the HTML specification: http://www.w3.org/TR/html401/interact/forms.html#adef-for and is perfectly accessible.
Allan