ZF-7724: Add a XHTML5 doctype key to allow HTML 5 users show a preference for closing tags and other XHTML serialisation related differences from HTML 4

Issue Type: Improvement Created: 2009-08-29T11:58:33.000+0000 Last Updated: 2009-12-18T14:04:54.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Pádraic Brady (padraic) Assignee: Andy Fowler (andyfowler) Tags: - Zend_View

Related issues: - ZF-7722

Attachments: - 0001-for-zf-7724-adds-XHTML5-as-doctype-includes-docs-tes.patch


At present, the HTML5 doctype from Zend_View_Helper_Doctype renders non-closed tags in some circumstances which prevents the use of (X/)HTML5 rendering. By adding an XHTML5 doctype option, one could retain any HTML5 specific support but enforce closing all tags correctly as with any XHTML serialisation. This would allow HTML5 pass the isXhtml() test used by many components including View Helpers.


Posted by Sean (lavis88) on 2009-09-12T19:14:34.000+0000

This patch adds a 'XHTML5' option to the Doctype view helper.

Posted by Andy Fowler (andyfowler) on 2009-12-17T09:23:39.000+0000

pretty much what sean added, but updates docs + tests

Posted by Andy Fowler (andyfowler) on 2009-12-17T09:42:49.000+0000

-translations -git stuff

Posted by Matthew Weier O'Phinney (matthew) on 2009-12-18T14:04:54.000+0000

Applied with patch to ZF-7722 -- thanks!

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.