summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2014-04-13 18:49:44 +0200
committerChristian Schneider2014-04-13 18:49:44 +0200
commit2d676a6767ad2bc64b2e18c77c76fef9e6748ba9 (patch)
treed508c0b803629bbbcb43f695e695796761cf3edb /it_html.class
parentdbb9d70846ca5bc5a704851a77e12929fac175c5 (diff)
downloaditools-2d676a6767ad2bc64b2e18c77c76fef9e6748ba9.tar.gz
itools-2d676a6767ad2bc64b2e18c77c76fef9e6748ba9.tar.bz2
itools-2d676a6767ad2bc64b2e18c77c76fef9e6748ba9.zip
Omit redundant type="text/javascript" for <script> in html5
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 1852733..6cd255f 100644
--- a/it_html.class
+++ b/it_html.class
@@ -569,7 +569,9 @@ function js($args)
$args[] = "\n//--><!]]>";
}
- array_unshift($args, array('type' => 'text/javascript'));
+ if ($this->p['htmltype'] != "html5")
+ array_unshift($args, array('type' => 'text/javascript'));
+
return $this->_tag('script', $args);
}