Opened 11 years ago
Closed 11 years ago
#11379 closed bug (worksforme)
bug: jQuery.find() returns unexpected result in Chrome
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | dimensions | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I cant't get acess content of iframe in the same domain, using Google Chrome. It isn't works:
$('iframe').contents().find('body').height();
I want resize the iframe using the content of iframe height.
Change History (2)
comment:1 Changed 11 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Component: | unfiled → dimensions |
---|---|
Priority: | undecided → low |
Resolution: | → worksforme |
Status: | pending → closed |
Tested with Chrome stable, beta and canary: http://jsfiddle.net/Tr2f5/. Each return 108 as the width with '/' being used as the iframe URL (same domain). Please double check your code or ask in the jQuery forums if you require further assistance.
Note: See
TracTickets for help on using
tickets.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.