1. Home
  2. Docs
  3. SiteLint
  4. Accessibility Rules
  5. 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? Yes No
SiteLint Audits: Monitoring in real-time Accessibility, Performance, Privacy, Security, SEO, Runtime Errors and Console Logs