Proposal: Selecting beyond iframes

Proposal: Selecting beyond iframes

Hey guys,
I propose to add navigating through iframes for the immediate next version of jQuery.
That would basically allow you to do stuff like $("iframe div") and fail gracefully on iframes you're not allowed to access.
Although I never worked on the selector engine, implementation seems quite easy -
a initial test showed that adding something like
if(ret[i].nodeName.toLowerCase() == "iframe") ret[i] = ret[i].contentDocument || ret[i].document;
at line 232 in selector.js would do the job (probably not in all cases though). I personally think
it would be a very valuable addition, and I can see quite a few usecases in jQuery UI.
I also duplicated that email and submitted it as a ticket here: <a href="http://dev.jquery.com/ticket/3509">http://dev.jquery.com/ticket/3509</a>
Yay nay?
<br clear="all">Paul Bakaus
UI Architect
--
<a href="http://paulbakaus.com">http://paulbakaus.com</a>
<a href="http://www.linkedin.com/in/paulbakaus">http://www.linkedin.com/in/paulbakaus</a>