Weird infinite loop - only in ie
<p>I need to root out iframes nested within iframes nested within iframes.</p>

<p>The structure for my code is shown below. It works fine in all browsers but in ie it results in an infinite loop. However, the cpu doesn't get raised at all while it is in the infinite loop.</p>

<pre><code>var getNested_iframes = function (document_element) {
        $.each(document_element.find("iframe"), function () {
            getNested_iframes($($(this)[0].document));
        });
        alert(".");
    }
    getNested_iframes($(myWindow._element));
    alert("done");
</code></pre>
