From b47f02a305f19f14b6b6a827b3f316e36daf3036 Mon Sep 17 00:00:00 2001 From: Giacomo Petri <106394951+giacomo-petri@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:51:22 +0200 Subject: [PATCH] "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 * 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 Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com> Co-authored-by: Carlos Duarte --- _rules/element-lang-valid-de46e4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_rules/element-lang-valid-de46e4.md b/_rules/element-lang-valid-de46e4.md index e406edb6d1..58932e2054 100755 --- a/_rules/element-lang-valid-de46e4.md +++ b/_rules/element-lang-valid-de46e4.md @@ -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 @@ -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