The Problem/evidence
Heritrix is not detecting the presence of files in conditional comments that open & close in one string, such as this:
<!--[if (gt IE 8)|!(IE)]><!-->
<link rel="stylesheet" href="/css/mod.css" />
<!--<![endif]-->
However standard conditional blocks like this work fine:
<!--[if lte IE 9]>
<script src="/js/ltei9.js"></script>
<![endif]-->
I've identified the problem as being with this part of the comment:
<!-->
Removal of that block in a test case then allows Heritrix to discover the css file.
The Question
How should I overcome this? Is it a Heritrix bug, or is it something we can get around with a crawler-beans declaration? I'm aware that the comment block is there to "trick" certain browser versions, and changing the website code is not an option. Can Heritrix be adapted to negate comments?