Hi all,

We're currently migrating some legacy HTML pages into a sexy Wicket app.
Unfortunately, the pages use a few <!--[if IE 7]><![endif]--> sections for
browser compatibility. Sometimes this caused mismatched tags, as in the
following example:

<!--[if IE 7]><!--></a><!--<![endif]-->
...blahblah...
<!--[if lte IE 6]></a><![endif]-->

Ie we close a tag for IE 6 in one place, and other browsers in a different
place. We're not sure whether this is the best way to accomplish the goal,
but the site is tested and working, so we'd rather just make the final HTML
output the same rather than test a new version in different browsers.

This causes wicket errors because of unmatched tags (for some reason the
</a> seems to be interpreted despite the fact that it's inside an HTML
comment, which I don't really understand). Has anybody found a good approach
to outputting if ie comments?

Thanks,
Neil

Reply via email to