Index: library/Zend/View/Helper/HeadStyle.php =================================================================== --- library/Zend/View/Helper/HeadStyle.php (revision 13182) +++ library/Zend/View/Helper/HeadStyle.php (working copy) @@ -339,6 +339,13 @@ . $indent . '' . PHP_EOL . ''; + if (isset($item->attributes['conditional']) + && !empty($item->attributes['conditional']) + && is_string($item->attributes['conditional'])) + { + $html = ''; + } + return $html; } Index: library/Zend/View/Helper/HeadScript.php =================================================================== --- library/Zend/View/Helper/HeadScript.php (revision 13181) +++ library/Zend/View/Helper/HeadScript.php (working copy) @@ -415,6 +415,13 @@ } $html .= ''; + if (isset($item->attributes['conditional']) + && !empty($item->attributes['conditional']) + && is_string($item->attributes['conditional'])) + { + $html = ''; + } + return $html; } Index: tests/Zend/View/Helper/HeadStyleTest.php =================================================================== --- tests/Zend/View/Helper/HeadStyleTest.php (revision 13182) +++ tests/Zend/View/Helper/HeadStyleTest.php (working copy) @@ -375,6 +375,16 @@ $this->assertContains(' media="screen,projection"', $string); } + + public function testConditionalScript() + { + $this->helper->appendStyle(' +a { + display: none; +}', array('media' => 'screen,projection', 'conditional' => 'lt IE 7')); + $test = $this->helper->toString(); + $this->assertContains('