Ids and labels for inputs
Ids and labels for inputs
rrlorentzen
Posts: 1Questions: 0Answers: 0
Currently in version 1.8.2 there are no ids on the input boxes. There are also no for attributes in the labels for these inputs. The applications I am using datatables for are required to be accesible according to the standards at http://www.w3.org/WAI/. I can easily modify the source to accommodate for this but when a new release comes out I have to do it again. In a future release it would be nice not to have to do this. Also, having more than one datatable on a page means the ids are not unique so being able to set those ids in the initialization would be helpful.
This discussion has been closed.
Replies
From the HTML spec ( http://www.w3.org/TR/html4/interact/forms.html#h-17.9 ):
> To associate a label with another control implicitly, the control element must be within the contents of the LABEL element. In this case, the LABEL may only contain one control element. The label itself may be positioned before or after the associated control.
So in that regard, these elements are already meeting the accessibility guidelines and there should be no need to make any modifications.
Allan