I have a page with script a tag in the HEAD section (just before
conditional comments):
In IE8 Standards Mode everything is OK:
a) ie loads css file just for ie8
but in IE8 Compat View (i've change mode using icon on the right of
the address bar):
a) ie loads BOTH css for ie7 and ie8 (but not for IE6!!)
When I delete script tag (after head section) everything is OK in IE8
standards Mode and CompatMode!! (IE loads appropriete css file)
I'm using Fiddler 2 to see which css file IE loads up.
Please tell me WHY this is happening?
My example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript">
// if you delete this script tag everything is OK
</script>
<title>TEST</title>
<![if !IE]>
<link type="text/css" rel="stylesheet" href="/0,style.css"/>
<![endif]>
<!--[if IE 6]>
<link type="text/css" rel="stylesheet" href="/ie6,style.css"/
>
<![endif]-->
<!--[if IE 7 ]>
<link type="text/css" rel="stylesheet" href="/ie7,style.css"/
>
<![endif]-->
<!--[if IE 8]>
<link type="text/css" rel="stylesheet" href="/ie8,style.css"/
>
<![endif]-->
</head>
<body>
</body>
</html>