internet-explorerinternet-explorer-9conditional-comments

If IE comments showing up in IE9


This is what is happening when you visit my site in IE9 - IE9 Error

This is the code that is causing this:

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<link rel="stylesheet" href="stylesheets/ie.css" media="screen" />
<![endif]-->
<!--[if !IE]-->
<link rel="stylesheet" href="stylesheets/sizeable.css" media="screen" />
<!--[endif]-->

<!--[if !IE]-->
<link rel="stylesheet" href="stylesheets/sizeable.css" media="screen" />
<!--[endif]-->

Thoughts?


Solution

  • EDIT: fixed according to the commenters, thanks. See also the other answers.


    Corrected code (second part):

    <!--[if !IE]> -->
    <link rel="stylesheet" href="stylesheets/sizeable.css" media="screen" />
    <!-- <![endif]-->
    
    <!--[if !IE]> -->
    <link rel="stylesheet" href="stylesheets/sizeable.css" media="screen" />
    <!-- <![endif]-->