invalid-attribute-dir-value

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

invalid-attribute-dir-value

Print this article

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.

    Standard

    Accessibility, Best Practices

    Was this article helpful to you? No Yes

    How can we help?