From: Nicolas CARPi Date: Tue, 20 Aug 2024 13:12:23 +0000 (+0200) Subject: CLEANUP: stats: use modern DOCTYPE tag X-Git-Tag: v3.1-dev6~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9318a624a14bab5fa373d22d8c9e8621282e8b43;p=thirdparty%2Fhaproxy.git CLEANUP: stats: use modern DOCTYPE tag Switching the stats page doctype to the modern standard is shorter and less complex, and is the recommended doctype by current HTML standard. It makes it clear that we do not want to run in quirks mode. More information below. Quirks mode: https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode HTML Standard: https://html.spec.whatwg.org/multipage/syntax.html#the-doctype --- diff --git a/src/stats-html.c b/src/stats-html.c index a8e63a2e24..c69fb9d2a7 100644 --- a/src/stats-html.c +++ b/src/stats-html.c @@ -59,8 +59,7 @@ void stats_dump_html_head(struct appctx *appctx) /* WARNING! This must fit in the first buffer !!! */ chunk_appendf(chk, - "\n" + "\n" "Statistics Report for " PRODUCT_NAME "%s%s\n" "\n" "\n"