Accessibility - Labels

Accessibility - Labels

dsimmonsdsimmons Posts: 7Questions: 0Answers: 0
edited September 2013 in DataTables 1.9
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?

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    edited September 2013
    Hi,

    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
This discussion has been closed.