IE10 no longer supports conditional comments

This may be old news, but I just found out now.

Internet Explorer 10 does not support conditional comments in Standards mode!

For those who don’t know, conditional comments were introduced in IE5. Web developers often used this to provide an IE-only stylesheet (probably to fix the box model bug) like this:

<!--[if IE 6]>
<link href="ie6only.css" rel="stylesheet" />
<![endif]-->

Since it’s a valid HTML comment, standards-compliant browsers (i.e. anything other than IE) just ignored it.

While that’s good for Web developers and the progress of the Web as a platform, it means I can’t “torment” IE users anymore using them. Oh well, at least JScript conditional comments are still supported in Standards mode.

Advertisements

`$name' says...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: