From 7522b063c8193d7fd978326041a4bf235a390adc Mon Sep 17 00:00:00 2001 From: Piotr Niziniecki Date: Mon, 24 Feb 2020 23:46:06 +0100 Subject: [PATCH] The type attribute is unnecessary for JavaScript resources. --- library/Zend/View/Helper/HeadScript.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Zend/View/Helper/HeadScript.php b/library/Zend/View/Helper/HeadScript.php index 062bed1b0c..801db64992 100644 --- a/library/Zend/View/Helper/HeadScript.php +++ b/library/Zend/View/Helper/HeadScript.php @@ -433,7 +433,12 @@ public function itemToString($item, $indent, $escapeStart, $escapeEnd) $addScriptEscape = !(isset($item->attributes['noescape']) && filter_var($item->attributes['noescape'], FILTER_VALIDATE_BOOLEAN)); $type = ($this->_autoEscape) ? $this->_escape($item->type) : $item->type; - $html = '