From 2352817bea420b2609497f1448f3405aae5533dd Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Thu, 13 Jul 2023 15:54:11 +0200 Subject: [PATCH 1/2] Deprecate HTML page lang and xml:lang attributes have matching values --- _rules/html-page-lang-xml-lang-match-5b7ae0.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_rules/html-page-lang-xml-lang-match-5b7ae0.md b/_rules/html-page-lang-xml-lang-match-5b7ae0.md index 639af6868b6..aba708d5a22 100755 --- a/_rules/html-page-lang-xml-lang-match-5b7ae0.md +++ b/_rules/html-page-lang-xml-lang-match-5b7ae0.md @@ -1,6 +1,6 @@ --- id: 5b7ae0 -name: HTML page lang and xml:lang attributes have matching values +name: DEPRECATED — HTML page lang and xml:lang attributes have matching values rule_type: atomic description: | This rule checks that both `lang` and `xml:lang` attributes on the root element of a non-embedded HTML page, have the same primary language subtag. @@ -12,6 +12,8 @@ accessibility_requirements: inapplicable: further testing needed input_aspects: - DOM Tree # The tree that HTML is parsed into. +deprecated: | + This rule has been deprecated, as modern screen readers no longer use xml:lang when the lang attribute is given, regardless of which MIME type the pages is served with. This rule is not maintained anymore and should not be used. acknowledgments: authors: - Jey Nandakumar From dfb67991ad503f460d885676381c727dfc0c5277 Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Fri, 14 Jul 2023 13:02:31 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Carlos Duarte --- _rules/html-page-lang-xml-lang-match-5b7ae0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/html-page-lang-xml-lang-match-5b7ae0.md b/_rules/html-page-lang-xml-lang-match-5b7ae0.md index aba708d5a22..0ef40da42af 100755 --- a/_rules/html-page-lang-xml-lang-match-5b7ae0.md +++ b/_rules/html-page-lang-xml-lang-match-5b7ae0.md @@ -13,7 +13,7 @@ accessibility_requirements: input_aspects: - DOM Tree # The tree that HTML is parsed into. deprecated: | - This rule has been deprecated, as modern screen readers no longer use xml:lang when the lang attribute is given, regardless of which MIME type the pages is served with. This rule is not maintained anymore and should not be used. + This rule has been deprecated, as modern screen readers no longer use xml:lang when the lang attribute is given, regardless of which MIME type the page is served with. This rule is not maintained anymore and should not be used. acknowledgments: authors: - Jey Nandakumar