diff options
author | Christian Schneider | 2014-04-13 18:49:44 +0200 |
---|---|---|
committer | Christian Schneider | 2014-04-13 18:49:44 +0200 |
commit | 2d676a6767ad2bc64b2e18c77c76fef9e6748ba9 (patch) | |
tree | d508c0b803629bbbcb43f695e695796761cf3edb /it_html.class | |
parent | dbb9d70846ca5bc5a704851a77e12929fac175c5 (diff) | |
download | itools-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.class | 4 |
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); } |