Issues

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

Assigning to Jon Whitcraft.

Having Ralph from Zend Review Before I post

This was checked in with r13199 and placed into the release branch with r13200