Skip to content

Commit

Permalink
Deprecate HTML page lang and xml:lang attributes have matching values (
Browse files Browse the repository at this point in the history
…#2086)

* Deprecate HTML page lang and xml:lang attributes have matching values

* Apply suggestions from code review

Co-authored-by: Carlos Duarte <[email protected]>

---------

Co-authored-by: Carlos Duarte <[email protected]>
  • Loading branch information
2 people authored and Jym77 committed Oct 13, 2023
1 parent a1186a8 commit 48eb5de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _rules/html-page-lang-xml-lang-match-5b7ae0.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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 page is served with. This rule is not maintained anymore and should not be used.
acknowledgments:
authors:
- Jey Nandakumar
Expand Down

0 comments on commit 48eb5de

Please sign in to comment.