I need to root out iframes nested within iframes nested within iframes.
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.
var getNested_iframes = function (document_element) {
$.each(document_element.find("iframe"), function () {
getNested_iframes($($(this)[0].document));
});
alert(".");
}
getNested_iframes($(myWindow._element));
alert("done");