ZF-11453: HTML5 HeadLink and HeadMeta does not generate HTML5 standard code


Using HTML5 doctype does not ensure the and tags are closed, generating non-standard HTML5 code, according to W3C validation process.

At Zend_View_Helper_HeadMeta line 359: {{$tpl = ($this- >view->doctype()- >isXhtml())}} should be: {{$tpl = ($this- >view->doctype()- >isXhtml() || $this- >view->doctype()- >isHtml5())}} to ensure that HTML5 is closed.

At Zend_View_Helper_HeadMeta line 362: {{} elseif ($this- >view->doctype()- >isXhtml()) {}} should be: {{} elseif ($this- >view->doctype()- >isXhtml() || $this- >view- >doctype()- >isHtml5()) {}} to ensure that the other type of tag is closed.

At Zend_View_Helper_HeadLink line 289: {{$link .= ($this- >view- >doctype()- >isXhtml()) ? '/>' : '>';}} should be: {{$link .= ($this- >view- >doctype()- >isXhtml() || $this- >view- >doctype()- >isHtml5()) ? '/>' : '>';}} to ensure the tag is closed.


No comments to display