Asqatasun v4 - Summary

Asqatasun v4 - AccessiWeb 2.2 - 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 label tag or when the form field is within the contents of a label element.

Business description

Criterion : 11.1

Test : 11.1.2

Test description :

Does each form field (input tag of type text, password, checkbox, radio, file, or textarea and select tags), that is associated with a label (label tag), pass the conditions below?

Level : Bronze

Technical description

Scope : page

Decision level : decidable



Set1 (fields with explicit label)
Set2 (fields with implicit label)



For each element of Set2 (fields with implicit labels), test if the node contains an "id" attribute

For each occurence of false-result of Test1, raise a MessageA

MessageA : Id attribute missing

SetA (fields with implicit labels and id) : All the occurences of Set2 (fields with implicit labels) with an "id" attribute.

For each element of Set1 (fields with explicit labels) and SetA (fields with implicit labels and id), test if the "id" attribute is unique on the page

For each occurence of false-result of Test2, raise a MessageB

MessageB : Id Not Unique


Not Applicable

Set1 and Set2 are empty (The page has no form fields associated with a label tag)


Test1 or Test 2 return false for at least one element.


Test1 and Test2 return true for all the elements


No notes yet for that rule