From bba679026c820c555747a503d8104a386bc91dd9 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Tue, 20 Aug 2024 15:20:10 +0200 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats-html.c b/src/stats-html.c index c69fb9d2a..23cfb91a0 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" "