title: jQuery contents() causing problems in IE
body: <p>I'm using the contents() function in jQuery in order to obtain some text within a LI which I can't target directly with a span or other selector.</p>
  
  <p>The code I've written is as follows:</p>
  
  <pre><code>$('#tierArray_' + tierId).contents().each(function(i, node) {
    if (node.nodeName == "#text") {
      node.textContent = name;
    }
  });
  </code></pre>
  
  <p>This works fine in Firefox and changes the target text to what is set in 'name'. In IE however I get the following errors:</p>
  
  <p>"Object doesn't support this property or method"</p>
  
  <p>This seems to relate to the line "node.textContent = name" as when I comment this out the error disappears.</p>
  
  <p>In a nutshell I'm simply trying to replace some text with newly created text, the HTML markup is as follows:</p>
  
  <pre><code>&lt;li class="ui-state-default" id="tierArray_105"&gt;
    &lt;span style="display: block;" id="revoke_105"&gt;
      &lt;a class="tierStatus" title="Revoke" href="#"&gt;Revoke&lt;/a&gt; | 
      &lt;a class="tierEdit" id="edit_tier_105" title="Bla 3aaa11" href="#"&gt;Edit&lt;/a&gt;
    &lt;/span&gt;
    &lt;span style="display: none;" id="active_105"&gt;
      &lt;a class="tierStatus" title="Activate" href="#"&gt;Activate&lt;/a&gt; | 
      &lt;a class="tierEdit" id="edit_tier_105" title="Bla 3aaa11" href="#"&gt;Edit&lt;/a&gt;
    &lt;/span&gt;
    Bla 3aaa11
  &lt;/li&gt;
  </code></pre>
  
  <p>So the text after the last span (Bla 4aaa11) will need to be replaced with some newly generated text.</p>