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

Issue Type: Improvement Created: 2011-06-08T04:15:10.000+0000 Last Updated: 2011-06-08T04:15:10.000+0000 Status: Open Fix version(s): Reporter: Jesús David Zapata Betancourth (davidzapata) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

  • HTML5
  • Zend_View_Helper_HeadLink
  • Zend_View_Helper_HeadMeta
  • w3c

Related issues: Attachments:


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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.