From: Nicolas CARPi Date: Tue, 20 Aug 2024 13:20:10 +0000 (+0200) Subject: BUG/MINOR: stats: add lang attribute to html tag X-Git-Tag: v3.1-dev6~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba679026c820c555747a503d8104a386bc91dd9;p=thirdparty%2Fhaproxy.git 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 --- diff --git a/src/stats-html.c b/src/stats-html.c index c69fb9d2a7..23cfb91a0d 100644 --- a/src/stats-html.c +++ b/src/stats-html.c @@ -60,7 +60,7 @@ void stats_dump_html_head(struct appctx *appctx) /* WARNING! This must fit in the first buffer !!! */ chunk_appendf(chk, "\n" - "Statistics Report for " PRODUCT_NAME "%s%s\n" + "Statistics Report for " PRODUCT_NAME "%s%s\n" "\n" "\n" "