Sign In/My Account | View Cart  
advertisement

Article:
 The Vanishing Image: XHTML 2 Migration Issues
Subject: Use of Conditional Comments
Date: 2006-04-09 08:19:33
From: allthegoodnamesaretaken
Response to: Use of Conditional Comments

I can't comment on xhtml but I've tested all the examples above as plain HTML and they don't work! However there is a syntax for 'down-level' (Microsofts' obnoxious label for browsers that aren't IE) CC's that works AND validates:


<!--[if gte IE 6]><!-->
Seen by all real browsers and IE 6. Validates as HTML 4.01 Transitional and possibly other doctypes
<!--<![endif]-->


Tested and working on Firefox 1.5, Opera 7.5, IE6, Konqueror and Lynx.


The only problem I've found with this code is that it confuses the syntax highlighter built into the CFML module for Eclipse (causing it to render the remaining page in comment green).


Thanks to Stu at cssplay.co.uk for finding this. I don't know where he found it but I'm grateful anyway. As usual the MS documentation was completely useless and even google failed to turn up much of value.


Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: