Rule 8.10.2
Summary
This test consists in detecting all tags with a dir
attribute.
Business description
Criterion
Test
Description
Dans chaque page web, chaque changement du sens de lecture (attribut
dir
) vérifie-t-il ces conditions ?
- La valeur de l’attribut
dir
est conforme (rtl
oultr
).- La valeur de l’attribut
dir
est pertinente.
Level
A
Technical description
Scope
Page
Decision level
Semi-Decidable
Algorithm
Selection
Set1
All tags with a dir
attribute and a valid value for this attribute.
css selector :
[dir=ltr],
[dir=rtl]
Set2
All tags with a dir
attribute and a incorrect value for this attribute.
css selector :
[dir]:not([dir=ltr])
:not([dir=rtl])
Process
Tests
Test1
If Set1 and Set2 are empty, raise a MessageA.
Test2
If Set1 is not empty, raise a MessageB.
Test3
If Set2 is not empty, raise a MessageC.
Messages
MessageA : Not Applicable
- status: Not Applicable
MessageB : Dir Attribute with allowed value
- code: dirAttributeWithAllowedValue
- status: Pre-qualified
- parameter:
dir
attribute, textual content, snippet - present in source: yes
MessageC : Dir Attribute with not allowed value
- code: dirAttributeWithNotAllowedValue
- status: Failed
- parameter:
dir
attribute, textual content, snippet - present in source: yes
Analysis
Not Applicable
No element with a dir
attribute have been found. (Set1 AND Set2 are empty)
Failed
At least one element with a dir
attribute have an incorrect value (Set2 is not empty)
Pre-qualified
In all other cases