a11y: Enforce lang attribute on html element #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ensure the lang attribute on the html element always matches Joomla site language config. Critical for screen readers to use correct pronunciation.
Audit index.php, error.php, offline.php, component.php for correct lang output.
WCAG 2.1 AA: 3.1.1 Language of Page
✅ Verified working on suite.dev (2026-07-16).
Tested: the
<html>element carries alangattribute on every page checked (home, profile edit) — valueen-us. WCAG 3.1.1 (Language of Page) satisfied.Minor non-blocking follow-up: the value is lowercase
en-us; the BCP-47 canonical form uppercases the region subtag (en-US). Browsers and assistive tech accept both, but consider normalizing toen-US.Closing as implemented.