Issues

ZF-11325: "HeadMeta Usage with XHTML1_RDFA doctype" example uses the wrong doctype constant

Description

Example #21 at http://framework.zend.com/manual/en/… uses the incorrect doctype constant. It should be XHTML1_RDFA rather than XHTML_RDFA. Using the example results in the following error:



Patch:

Eclipse Workspace Patch 1.0

P ZendFramework-trunk

Index: documentation/manual/ja/module_specs/Zend_View-Helpers-HeadMeta.xml

--- documentation/manual/ja/module_specs/Zend_View-Helpers-HeadMeta.xml (revision 23872) +++ documentation/manual/ja/module_specs/Zend_View-Helpers-HeadMeta.xml (working copy) @@ -230,7 +230,7 @@

     <programlisting language="php"><![CDATA[

-$this->doctype(Zend_View_Helper_Doctype::XHTML_RDFA); +$this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); $this->headMeta()->setProperty('og:title', 'my article title'); $this->headMeta()->setProperty('og:type', 'article'); echo $this->headMeta();

Index: documentation/manual/en/module_specs/Zend_View-Helpers-HeadMeta.xml

--- documentation/manual/en/module_specs/Zend_View-Helpers-HeadMeta.xml (revision 23872) +++ documentation/manual/en/module_specs/Zend_View-Helpers-HeadMeta.xml (working copy) @@ -226,7 +226,7 @@

     <programlisting language="php"><![CDATA[

-$this->doctype(Zend_View_Helper_Doctype::XHTML_RDFA); +$this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); $this->headMeta()->setProperty('og:title', 'my article title'); $this->headMeta()->setProperty('og:type', 'article'); echo $this->headMeta(); ```

Comments

Patch includes changes in "ja", "en" and "fr".

Fixed in trunk (1.12.0): r24868