]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: add lang attribute to html tag
authorNicolas CARPi <nico-git@deltablot.email>
Tue, 20 Aug 2024 13:20:10 +0000 (15:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Aug 2024 13:55:45 +0000 (15:55 +0200)
commitbba679026c820c555747a503d8104a386bc91dd9
treeeb7a53e46a96d40f8fceda1ccefeee0a66040e24
parent9318a624a14bab5fa373d22d8c9e8621282e8b43
BUG/MINOR: stats: add lang attribute to html tag

The "html" element of the stats page was missing a "lang" attribute.
This change specifies the "en" value, which corresponds to english
language.

It is also a required element for WCAG Success Criterion 3.1.1, which
renders the web more accessible through a set of requirements. In this
case it allows assistive technologies such as screen readers to
determine the language of the page.

MDN page: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
HTML standard: https://html.spec.whatwg.org/multipage/dom.html#attr-lang
WCAG criterion: https://www.w3.org/WAI/WCAG22/Understanding/language-of-page.html
src/stats-html.c