The dir attribute for writing direction must be set either ltr (left to right) or rtl (right to left) as appropriate for the language
Description
This rule determines if a given attribute dir
have the correct value: rtl
, ltr
or auto
.
Context
The dir global attribute is an enumerated attribute that indicates the directionality of the element’s text. To avoid unexpected behaviour the value of dir
should be correct and should contain one of the following strings: rtl
, ltr
or auto
.
The rule passes when there is no dir
attribute with value other than rtl
, ltr
or auto
.
Rule
- Audit: Accessibility.
- Standard: SiteLint.
- Level: Best Practices.
- Success Criteria: Not applicable
- ID:
invalid-attribute-dir-value