Asqatasun v4 - RGAA 3.0 - Rule 11.1.2
This test consists in checking the presence and the unicity of the
"id" attribute of each form field associated with a
<label> tag. We assume here that a form field is associated with a
<label> tag when its
"id" attribute corresponds to the
"for" attribute of any
Does each form field that is associated with a label (
label tag), meet the following conditions?
- The form field has an
- The value of the
idattribute is unique
labeltag has a for attribute
- The value of the for
attribute matches the value of the corresponding
Set1 (input form fields)
<input> tags within a
<form> tag with a
"type" attribute equals to: - "text" - or "password" - or "checkbox" - or "radio" - or "file" - or "search" - or "tel" - or "email" - or "number" - or "url" - or "date" - or "range" - or "color" - or "time"
AND all the
<keygen> tags AND for all of them no
<label> tags within a
All the element of Set1 with no
<label> tag as parent.
All the element of Set2 with an
<input> child with an
For each element of Set1, test if the node contains a not empty
For each occurence of false-result of Test1, raise a MessageA.
For each element of Set1 with an
"id" attribute, test that this id is unique on the page.
For each occurence of false-result of Test2, raise a MessageB.
For each element of Set2, test if this element has a not empty
For each occurence of false-result of Test3, raise a MessageC.
For each element in Set3, test if the
"id" attribute is equals to the
"for" attribute of a
<label> in the same