Hey guys,

here's a feature request I just added as a ticket (
http://dev.jquery.com/ticket/5617). I was thinking about this for a long
time
and came to the conclusion that this really fits into Core, not into a
plugin IMHO. Useful and small enough for a broad audience.

Ticket content:

Currently, the syntax to query iframes looks like this:

$('#someIframe').contents().find('p').addClass('error')

which isn't too bad. However, I think another abstraction could really fit
into our core philosophy, which is transforming the above into this:

$('#someIframe p').addClass('error');

I think it wouldn't add much overhead to Sizzle / jQuery, a simple check if
nodeName equals iframe, and then changing the actual DOM element
representation for further queuries down the selector to the
contentDocument.

Additionally, make browsing up possible:

$(document).parent()
Yay / Nay?

-- 
Paul Bakaus
UI Architect @ smart.fm
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to