For consistency with the Element with lang attribute has valid language tag ACT rule, axe-core should make sure that the valid-lang rule does not fail elements that are empty, or that only contain whitespace characters.
Here are some of the ACT example we're failing, when we shouldn't be:
<article lang="invalid">
<div lang="en">
They wandered into a strange Tiki bar on the edge of the small beach town.
</div>
</article>
<p lang="hidden">
<span style="display: none;">
They wandered into a strange Tiki bar on the edge of the small beach town.
</span>
</p>
<div lang="invalid">
<img src="/WAI/content-assets/wcag-act-rules/test-assets/shared/fireworks.jpg" alt="" />
</div>
For consistency with the Element with
langattribute has valid language tag ACT rule, axe-core should make sure that thevalid-langrule does not fail elements that are empty, or that only contain whitespace characters.Here are some of the ACT example we're failing, when we shouldn't be:
Passed example 4
Inapplicable example 3
Inapplicable example 4