From 1f3f3e8fec82e7c4656d9d945211f5461212d3f9 Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Wed, 1 May 2019 14:45:59 +0100 Subject: [PATCH] MDLSITE-5739 mustache_lint: Add lang attribute to wrapper. Validator v18.11.5 complains about it (info notice), and in fact, having lang attribute seems a good practice these days: https://www.w3.org/International/questions/qa-html-language-declarations#quickanswer --- mustache_lint/mustache_lint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache_lint/mustache_lint.php b/mustache_lint/mustache_lint.php index a1ac17c1..8a93afc7 100644 --- a/mustache_lint/mustache_lint.php +++ b/mustache_lint/mustache_lint.php @@ -198,7 +198,7 @@ function check_html_validation($content) { if (strpos($content, '') === false) { // Primative detection if we have full html body, if not, wrap it. // (This isn't bulletproof, obviously). - $wrappedcontent = "Validate\n{$content}\n"; + $wrappedcontent = "Validate\n{$content}\n"; } else { $wrappedcontent = $content; }