ZF-3921: conditional comments for HeadScript and HeadStyle
Description
Conditional comments are handy not only for links but also for scripts and stylesheets. As HeadScript and HeadStyle by default only allow W3C standard attributes, you could potentially use 'conditional' in the attribute array. Then simply add the following just before the return statement in itemToString():
if (isset($item->attributes['conditional'])
&& (false !== $item->attributes['conditional'])) {
$html = '';
}
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-12-10T17:13:52.000+0000
Assigning to Jon Whitcraft.
Posted by Jon Whitcraft (sidhighwind) on 2008-12-12T10:44:27.000+0000
Having Ralph from Zend Review Before I post
Posted by Jon Whitcraft (sidhighwind) on 2008-12-13T06:48:55.000+0000
This was checked in with r13199 and placed into the release branch with r13200