Issues

ZF-6024: there is no xmlns declaration in XHTML and nothing may not be before DOCTYPE

Issue Type: Bug Created: 2009-03-13T08:19:39.000+0000 Last Updated: 2009-09-17T15:25:07.000+0000 Status: Resolved Fix version(s): Reporter: Cezary Tomczyk (ctomczyk_pl) Assignee: Pádraic Brady (padraic) Tags: - Zend_View

Related issues: Attachments:

Description

  1. The root element of the XHTML document must contain an xmlns declaration for the XHTML namespace. The namespace for XHTML is defined to be http://www.w3.org/1999/xhtml. The Zend Framework does not generate a root element correctly. An example root element might look like:

www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  1. In the case of XHTML is not generated the XML declaration (). Cite from W3C: "An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol. Here is an example of an XHTML document. In this example, the XML declaration is included."

Best regards.

Comments

Posted by Pádraic Brady (padraic) on 2009-09-17T15:25:06.000+0000

The html element is not generated by the framework but added to the view, either a template or layout, by the developer and/or web designer. You may verify the source of the element by examining these.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts