diff --git a/packages/zend-view/library/Zend/View/Helper/HeadScript.php b/packages/zend-view/library/Zend/View/Helper/HeadScript.php index 35250f6e5..c764e4dea 100644 --- a/packages/zend-view/library/Zend/View/Helper/HeadScript.php +++ b/packages/zend-view/library/Zend/View/Helper/HeadScript.php @@ -439,7 +439,7 @@ 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; - if ($this->view->doctype()->isHtml5() && $type === 'text/javascript') { + if ($isHTML5 && $type === 'text/javascript') { $html = ''; } else { $html = '