If IE comments

View: New views
2 Messages — Rating Filter:   Alert me  

If IE comments

by Neil Curzon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: If IE comments

by MartinM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

You can output them from code... at least. For example as a label ors omething.

**
Martin

2009/11/4 Neil Curzon <neil.curzon@...>:

> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...