Skip to content

Commit db69b36

Browse files
giacomo-petriJym77dan-tripp-siteimprovecarlosapaduarte
authored
"Element with lang attribute has valid language tag" [de46e4]: Updated Failed Examples 4 and 5 to reflect Applicability (#2094)
* Update element-lang-valid-de46e4.md Updated Failed examples 4 and 5 to reflect applicability * Apply suggestions from code review Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com> * Update _rules/element-lang-valid-de46e4.md Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com> --------- Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com> Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com> Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
1 parent e0366dd commit db69b36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_rules/element-lang-valid-de46e4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ This `article` element has a `lang` [attribute value][] which consists of only [
184184

185185
#### Failed Example 4
186186

187-
The `lang` [attribute value][] does not have a valid language tag. The `lang` attribute must be valid because the content is [visible][].
187+
The `lang` [attribute value][] does not have a valid language tag. Even though the `p` element is not [included in the accessibility tree][] due to the presence of the `aria-hidden="true"` attribute, it is [visible][]; therefore its content is [text inheriting its programmatic language][] from the `article` element. Hence, the lang attribute must be valid.
188188

189189
```html
190190
<html lang="es">
@@ -200,7 +200,7 @@ The `lang` [attribute value][] does not have a valid language tag. The `lang` at
200200

201201
#### Failed Example 5
202202

203-
The `lang` [attribute value][] does not have a valid language tag, and its [descendant][] is not [visible][] though it is still [included in the accessibility tree][].
203+
The `lang` [attribute value][] does not have a valid language tag. Even though the `p` element is not [visible][] due to it being moved off-screen, it is [included in the accessibility tree][]; therefore its content is [text inheriting its programmatic language][] from the `article` element. Hence, the lang attribute must be valid.
204204

205205
```html
206206
<html lang="fr">

0 commit comments

Comments
 (0)