From ec0c91bca6b8ed0b8222e589f2cda1dc68f252fb Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Sat, 21 Dec 2024 19:13:00 +0800 Subject: [PATCH] Further fix html lang attribute (#8835) --- core/modules/startup/startup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/startup/startup.js b/core/modules/startup/startup.js index dcfcac48a..b971e473b 100755 --- a/core/modules/startup/startup.js +++ b/core/modules/startup/startup.js @@ -91,6 +91,7 @@ exports.startup = function() { document.documentElement.setAttribute("lang",pluginTiddler.getFieldString("name")); document.documentElement.setAttribute("dir",pluginTiddler.getFieldString("text-direction") || "auto"); } else { + document.documentElement.setAttribute("lang","en-GB"); document.documentElement.removeAttribute("dir"); } }