changeset 1456:d674fb9499c4

Include type attribute in script tag for generating valid XHTML.
author Karn Kallio <kkallio@eka>
date Fri, 06 May 2011 20:51:40 -0430
parents 913d9c2f55c9
children aa2398e58306
files src/cjr_print.sml
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cjr_print.sml	Fri May 06 16:24:45 2011 -0430
+++ b/src/cjr_print.sml	Fri May 06 20:51:40 2011 -0430
@@ -2661,14 +2661,14 @@
                                               | _ =>
                                                 let
                                                     val scripts =
-                                                        "<script src=\\\""
+                                                        "<script type=\\\"text/javascript\\\" src=\\\""
                                                         ^ OS.Path.joinDirFile {dir = Settings.getUrlPrefix (),
                                                                                file = "app.js"}
                                                         ^ "\\\"></script>\\n"
                                                 in
                                                     foldl (fn (x, scripts) =>
                                                               scripts
-                                                              ^ "<script src=\\\"" ^ x ^ "\\\"></script>\\n")
+                                                              ^ "<script type=\\\"text/javascript\\\" src=\\\"" ^ x ^ "\\\"></script>\\n")
                                                           scripts (Settings.getScripts ())
                                                 end
                                     in