ZF-11835: Conditional comments functionality missing from Zend_View_Helper_HeadMeta
Description
http://framework.zend.com/manual/en/… describes passing a $conditionalHttpEquiv parameter as a modifier to methods such as appendHttpEquiv. Although there are no code examples for what to pass for headMeta, there are examples in headScript which pass an array of the form ('conditional' => 'lt IE 7'), for example.
Zend_View_Helper_HeadMeta::itemToString() does nothing with a conditional key, whereas Zend_View_Helper_HeadScript::itemToString() treats 'conditional' as a special case and wraps the value in a javascript comment.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-28T14:56:10.000+0000
Attached patch which implements behavior matching that of {{Zend_View_Helper_HeadScript}}
Posted by Rob Allen (rob) on 2011-11-21T21:00:34.000+0000
I don't think we need the
as the isset() will take care of that as well?
Posted by Rob Allen (rob) on 2011-11-21T21:27:42.000+0000
Just tested and you're right - we do need the !empty().
Patch looks good to me.
Posted by Adam Lundrigan (adamlundrigan) on 2011-11-21T22:50:02.000+0000
Thanks!
Fixed in trunk r24561 Merged to release-1.11 in r24562
Posted by Adam Lundrigan (adamlundrigan) on 2011-11-21T23:03:11.000+0000
ZF2 Pull Request: https://github.com/zendframework/zf2/pull/624