Attribute dir needs correct value
Description
Rule ID: invalid-attribute-dir-value
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
.
Standard
Accessibility, Best Practices