diff options
Diffstat (limited to 'program/lib/Roundcube/html.php')
-rw-r--r-- | program/lib/Roundcube/html.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php index 4f282df4b..af61c68e3 100644 --- a/program/lib/Roundcube/html.php +++ b/program/lib/Roundcube/html.php @@ -263,8 +263,11 @@ class html $cont = "\n" . $cont . "\n"; } - return self::tag('script', $attr + array('type' => 'text/javascript', 'nl' => true), - $cont, array_merge(self::$common_attrib, array('src','type','charset'))); + if (self::$doctype == 'xhtml') + $attr += array('type' => 'text/javascript'); + + return self::tag('script', $attr + array('nl' => true), $cont, + array_merge(self::$common_attrib, array('src','type','charset'))); } /** |