title: jQuery text property and IE
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2692770/style-style-textcss-appendtohead-does-not-work-in-ie">$(‘&lt;style&gt;&lt;/style&gt;’).text(‘css’).appendTo(‘head’) does not work in IE?</a>  </p>
  </blockquote>
  
  
  
  <p>I have this code:</p>
  
  <pre><code>$("head").append($("&lt;style&gt;&lt;/style&gt;")
    .attr("type", "text/css")
    .text("some text")
  );
  </code></pre>
  
  <p>It works well with Firefox.</p>
  
  <p>But with IE8, there is an error in the jQuery library:</p>
  
  <blockquote>
    <p>access to the method or properties unexpected</p>
  </blockquote>
  
  <p>The problem happens when I add the text function (whatever the text is).</p>