title: insert IE conditional statement (comment) with jQuery?
body: <p>I tried to add a conditional statement for IE7 with jQuery, but it doesn't work dynamically (if it was hardcoded it worked, so I know this is related to the way jQuery is appending the actual "comment" of the conditional statement).</p>
  
  <p>The code I'm using is this:</p>
  
  <pre><code>$("head").append("&lt;!--[if IE 7]&gt;");
  $("head").append("&lt;link&gt;");
  css = $("head").children(":last");
      css.attr({
      rel:  "stylesheet",
      type: "text/css",
      href: "css/IE7.css"
  });
  $("head").append("&lt;![endif]--&gt;");
  </code></pre>
  
  <p>My thought is that this is related to the <code>&lt;</code> and <code>&gt;</code>, maybe these need to be urlencoded?, how?</p>
  
  <p>Anyone have a solution for this that doesn't involve targeting each CSS property with jQuery (there are tens of CSS fixes, so that won't be a solution).</p>