M
Michael Winter
A rather odd situation has come to my attention, and I'm curious to know
if I'm affected by it alone or if others do, too.
With IE5, Microsoft hijacked markup comments to allow content to be
presented to only IE, and even specific IE versions. The syntax[1] being:
<!--[if <comparison> IE <version>]>
...
<![endif]-->
where <comparison> and <version> are optional.
A simple example[2] of this feature would be:
<!--[if lt IE 6]>
<p>You are running IE 5.x.</p>
<![endif]-->
<!--[if gte IE 6]>
<p>You are running IE 6 or later.</p>
<![endif]-->
However, with IE 6 on this machine, I see the first, not the second,
paragraph.
Remarks, anyone?
Mike
[1] I noticed that the documented explanation of this feature
doesn't do a particularly good job of demonstrating version
comparisons. Indeed, the only brief example as a note near
the end:
[if IE lte 5.0000]
presents the comparison operator (lte) in the wrong location.
Perhaps this can be rectified, and a complete example
included?
<http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp>
[2] <http://mwinter.webhop.info/conditional-comments.html>
if I'm affected by it alone or if others do, too.
With IE5, Microsoft hijacked markup comments to allow content to be
presented to only IE, and even specific IE versions. The syntax[1] being:
<!--[if <comparison> IE <version>]>
...
<![endif]-->
where <comparison> and <version> are optional.
A simple example[2] of this feature would be:
<!--[if lt IE 6]>
<p>You are running IE 5.x.</p>
<![endif]-->
<!--[if gte IE 6]>
<p>You are running IE 6 or later.</p>
<![endif]-->
However, with IE 6 on this machine, I see the first, not the second,
paragraph.
Remarks, anyone?
Mike
[1] I noticed that the documented explanation of this feature
doesn't do a particularly good job of demonstrating version
comparisons. Indeed, the only brief example as a note near
the end:
[if IE lte 5.0000]
presents the comparison operator (lte) in the wrong location.
Perhaps this can be rectified, and a complete example
included?
<http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp>
[2] <http://mwinter.webhop.info/conditional-comments.html>