1. Home
  2. SiteLint
  3. Accessibility Rules
  4. invalid-attribute-dir-value


Print this article


This rule determines if a given attribute dir have the correct value: rtl, ltr or auto.


    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.


    Accessibility, Best Practices

    Was this article helpful to you? No Yes

    How can we help?