Skip to content

Commit 7f9f986

Browse files
Deprecate HTML page lang and xml:lang attributes have matching values (act-rules#2086)
* Deprecate HTML page lang and xml:lang attributes have matching values * Apply suggestions from code review Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt> --------- Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
1 parent ea79b7b commit 7f9f986

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_rules/html-page-lang-xml-lang-match-5b7ae0.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: 5b7ae0
3-
name: HTML page lang and xml:lang attributes have matching values
3+
name: DEPRECATED — HTML page lang and xml:lang attributes have matching values
44
rule_type: atomic
55
description: |
66
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:
1212
inapplicable: further testing needed
1313
input_aspects:
1414
- DOM Tree # The tree that HTML is parsed into.
15+
deprecated: |
16+
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.
1517
acknowledgments:
1618
authors:
1719
- Jey Nandakumar

0 commit comments

Comments
 (0)