From 7ced712014b64b59d39e07c82a1633109c05f730 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 6 Dec 2025 11:51:09 +0100 Subject: HTML5 template: conditionally include lang attribute. Previously we included it unconditionally, even if this meant giving it an empty value. This seems at best redundant, since the empty value is the default. At worst, it adds clutter and according to some sources may prevent the use of browser defaults. I believe that the justification for including these attributes even with empty values is not a good one; see commit 07d51d9 for the original change. On my reading, the HTML spec does not require the presence of the attribute on the html element; it only says that if the attribute is present, it must have an empty string or valid BCP 47 language tag as its value. See also #11324. --- data/templates/default.html5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/templates/default.html5 b/data/templates/default.html5 index 26740d1b0..7dfa95e87 100644 --- a/data/templates/default.html5 +++ b/data/templates/default.html5 @@ -1,5 +1,5 @@ - + -- cgit v1.2.3