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
Posted by Frank Brückner (frosch) on 2012-03-02T15:43:31.000+0000
Patch includes changes in "ja", "en" and "fr".
Posted by Adam Lundrigan (adamlundrigan) on 2012-06-02T01:56:38.000+0000
Fixed in trunk (1.12.0): r24868