ie9 did not like javascript multi line comment in combination with html comment:

/*<!-- NEU -- >*/

this is ok: 😀

/*<!-- NEU -->*/

gives me “syntax error” in ie (hit f12) dev mode.

and completely messes up the html layout afterwards.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
TITLE
<meta name="description" content="some company" />
<meta name="keywords" content="this, that" />
    <link href="some.css" rel="stylesheet" type="text/css" /> <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="/more/ie.css" />
        <![endif]-->

<script type="text/javascript">
/*<!-- NEU -- >*/

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin