Skip to content

Commit

Permalink
"Element with lang attribute has valid language tag" [de46e4]: Update…
Browse files Browse the repository at this point in the history
…d 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 <[email protected]>

* Update _rules/element-lang-valid-de46e4.md

Co-authored-by: Dan Tripp <[email protected]>

---------

Co-authored-by: Jean-Yves Moyen <[email protected]>
Co-authored-by: Dan Tripp <[email protected]>
Co-authored-by: Carlos Duarte <[email protected]>
  • Loading branch information
4 people committed Oct 13, 2023
1 parent f7edbd8 commit b47f02a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _rules/element-lang-valid-de46e4.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ This `article` element has a `lang` [attribute value][] which consists of only [

#### Failed Example 4

The `lang` [attribute value][] does not have a valid language tag. The `lang` attribute must be valid because the content is [visible][].
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.

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

#### Failed Example 5

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][].
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.

```html
<html lang="fr">
Expand Down

0 comments on commit b47f02a

Please sign in to comment.