lang attributes within the
<body> element have a valid value
This rule tests conformance of the following accessibility requirements:
This rule applies to every element in the HTML namespace that:
- is an inclusive descendant in the flat tree of a
- has a
langattribute that is neither empty nor only ASCII whitespace; and
- there is some non-whitespace only text inheriting its programmatic language from this element.
- The value of the attribute is a valid language tag.
This rule makes the following assumption:
langattribute is being used to conform to WCAG. As such, this rule doesn't test if the attribute is needed to conform to WCAG.
This rule has no known accessibility support concerns.
<html lang="en"> <body></body> </html>
<article lang=" "></article>
This document includes material copied from or derived from https://act-rules.github.io/rules/de46e4/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).