Target iframe body and remove nodeType 3 (=text)
<p>I'm trying to access an iframe's content but for some reason it doesn't work. I can do this which will work:</p>

<pre><code>$('iframe').load(function (){

$('#iframeID').contents().find('SOMETHING').remove();

});
</code></pre>

<p>Anything else does work except for this code:</p>

<pre><code>$('iframe').load(function (){

$('#iframeID').contents().find('body *:not(.ThisClass *)').contents().filter(function() {
  return this.nodeType == 3;
}).remove();

});
</code></pre>

<p>It should work but it doesn't. What could be the problem? There are no errors in my console.</p>
