I’m justing sorting and optimizing my Magento 1.5.1.0 theme and I’m asking myself, for what purpose this code snippet is and whether I can safely remove it.
Talking about this one:
<!--[if lt IE 7]>
<script type="text/javascript">
//<![CDATA[
var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
//]]>
</script>
<![endif]-->
Any advice is appreciated.
Thanks!
BLANK_URLis part of a IE6 fix, to make the browser showiframebackgrounds transparently, when being hovered.BLANK_IMGis part of another IE6 fix, to make the browser show PNG images correctly, when used as background images.Whether you can remove them, solely depends on which browsers you want to support.
If you want to remove them, be aware though, that you also should remove the proper .js includes,
iehover-fix.jsforBLANK_URLand/ords-sleight.jsforBLANK_IMG, too.