ZF-11835: Conditional comments functionality missing from Zend_View_Helper_HeadMeta

Description… 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.


Attached patch which implements behavior matching that of {{Zend_View_Helper_HeadScript}}

I don't think we need the

&& !empty($item->modifiers['conditional'])

as the isset() will take care of that as well?

Just tested and you're right - we do need the !empty().

Patch looks good to me.


Fixed in trunk r24561 Merged to release-1.11 in r24562