a11y: Enforce lang attribute on html element #84

Closed
opened 2026-05-26 16:49:41 +00:00 by jmiller · 1 comment
Owner

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

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
Author
Owner

Verified working on suite.dev (2026-07-16).

Tested: the <html> element carries a lang attribute on every page checked (home, profile edit) — value en-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 to en-US.

Closing as implemented.

✅ Verified working on suite.dev (2026-07-16). Tested: the `<html>` element carries a `lang` attribute on every page checked (home, profile edit) — value `en-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 to `en-US`. Closing as implemented.
Sign in to join this conversation.
No labels
Priority Medium
Type Bug
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoOnyx#84