while loop not iterating properly to remove table rows
<p>Just trying to remove a table but loop is not removing all rows. 
I have used alert to be sure it's the right element by id.
It does remove some rows but not all, just chunks.
console reports: DOM Exception 1,DOM Exception 8</p>

<pre><code>function removeThis(unsetElement)
{ unsetElement.parentNode.removeChild(unsetElement); }
</code></pre>
