Asqatasun v4 - Summary

Asqatasun v4 - AccessiWeb 2.2 - Rule 11.1.1

Summary

This test consists in checking whether each form field contains either a title attribute or is associated with a label tag. We assume here that a form field is associated with 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 the label elements

Business description

Criterion : 11.1

Test : 11.1.1

Test description :

Does each form field (input tag of type text, password, checkbox, radio, file, or textarea and select tags), pass one of the conditions below?

Level : Bronze

Technical description

Scope : page

Decision level : decidable

Algorithm

Selection

Set1 (fields without implicit labels)
Set2 (fields with implicit labels)

Process

Test1

SetA ("for values") : All the "for" attributes values of each label tag of the page.

For each element of Set1 (fields without implicit labels), test wether:

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

Test2

IF Set1 is empty (no field with explicit label)

THEN test whether Set2 is not empty

ELSE return result of Test1

MessageA : Invalid Form Field

Analysis

Not Applicable

Selection is empty (The page has no form fields, that means that Set1 and Set2 are empty)

Failed

Test2 returns false

Passed

Test2 returns true

Notes

No notes yet for that rule