Why doesn't JQuery's removeAttr always work?
<p>When trying to see why removeAttr doesn't always seem to work I tried.  </p>

<pre><code>$("div#mydiv").css('height','200px');  
$("table").removeAttr("border");  
$("#mydiv").removeAttr("height");  
</code></pre>

<p>The table borders attribute is removed OK but not the div height attribute. I need to use other suggested methods such as  </p>

<pre><code>$("#mydiv").css('height','auto')  
</code></pre>

<p>to alter it but not actually remove it.  </p>

<p>I would be interested to know what makes removeAttr not work in this scenario? There is no other css anywhere.  </p>
