Rule 11.4.1
Summary
This test consists in detecting each <label>
tag within <form>
tags that contain <input>
elements.
Business description
Criterion
Test
Description
Dans chaque formulaire, chaque étiquette de champ et son champ associé sont-ils accolés ?
Level
A
Technical description
Scope
page
Decision level
Semi-decidable
Algorithm
Set1
All the <form>
tags with <label>
children tags and that have at least one input element (form:has(textarea , select , input[type=password] , input[type=checkbox] , input[type=file] , input[type=text] , input[type=radio]) label)
Process
Test1
The selection handles the process.
For each occurence of the Set1, raise a MessageA
MessageA : Check Manually the elements
- code : ManualCheckOnElements
- status: Pre-Qualified
- parameter : text, tag name
- present in source : yes
Analysis
Not Applicable
The page has no <form>
tag with <label>
tag as child (Set1 is empty)
Pre-qualified
At least one <label>
tag within <form>
has been detected (Set1 is not empty)
Notes
- We only detect the elements of the scope of the test to determine whether the test is applicable
- We assume here that the raised messages focus on the
<form>
element and not on the<label>
elements