Skip to main content

Bug Tracker

Side navigation

#10688 closed bug (invalid)

Opened November 05, 2011 09:14PM UTC

Closed November 20, 2011 08:15AM UTC

issue Of Define Jquery For Parent Window From An Iframe

Reported by: Owned by:
Priority: low Milestone: None
Component: selector Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Attachments (0)
Change History (3)

Changed November 05, 2011 09:15PM UTC by anonymous comment:1

<h1 id="x">This id is x! Can you find me? $("#x")</h1>

<iframe id="y"></iframe>


var $ = null;

var url = '';

var dY = document.getElementById("y");

var doc = dY.contentWindow.document;;

doc.write('<script'+' src="'+url+'"></script'+'>'+'<script'+'>parent.$ = $;alert(parent.$);</script'+'>');


alert('$("#x").size() = '+$('#x').size());



Changed November 05, 2011 09:21PM UTC by timmywil comment:2

component: unfiledselector
owner: →
priority: undecidedlow
status: newpending

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: Open the link and click to "Fork" (in the top menu) to get started.

Changed November 20, 2011 08:15AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!