changeset 239:2749d9637a44

No need to use type="text/javascript" for javascript resources, according to W3 validator.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 27 Mar 2018 15:19:30 +0300
parents 80cbbdc3f14d
children dee1a11e71e9
files mgallery.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Tue Mar 27 15:19:00 2018 +0300
+++ b/mgallery.php	Tue Mar 27 15:19:30 2018 +0300
@@ -152,7 +152,7 @@
     // Setting the viewport makes things break especially with the
     // text-size-adjust CSS settings... so we don't use it.
     "  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n".
-    "  <script type=\"text/javascript\" src=\"".mgMangleURI($pageJSFile)."\"></script>\n".
+    "  <script src=\"".mgMangleURI($pageJSFile)."\"></script>\n".
     "  <title>".strip_tags($pageTitle)."</title>\n".
     mgGetCSSLine($pageCSS, FALSE).
     $pageExtra.