Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate HTML page lang and xml:lang attributes have matching values #2086

Merged
merged 3 commits into from
Aug 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 pages is served with. This rule is not maintained anymore and should not be used.
WilcoFiers marked this conversation as resolved.
Show resolved Hide resolved
acknowledgments:
authors:
- Jey Nandakumar
Expand Down