Bug Tracker

Modify

Ticket #11379 (closed bug: worksforme)

Opened 16 months ago

Last modified 16 months ago

bug: jQuery.find() returns unexpected result in Chrome

Reported by: shinigam8@… Owned by: shinigam8@…
Priority: low Milestone: None
Component: dimensions Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

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

comment:1 Changed 16 months ago by sindresorhus

  • Owner set to shinigam8@…
  • Status changed from new to pending

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.

comment:2 Changed 16 months ago by addyosmani

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from pending to closed
  • Component changed from unfiled to dimensions

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.

Last edited 16 months ago by addyosmani (previous) (diff)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.