Skip to main content

Bug Tracker

Side navigation

#2150 closed feature (fixed)

Opened January 11, 2008 05:59PM UTC

Closed May 12, 2008 12:41AM UTC

Add scope to dynamically created element

Reported by: davidserduke Owned by:
Priority: minor Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

Originally reported by, Aug 20, 2007 on the Google Issues forum

What steps will reproduce the problem?

1. For multi-frame website, dynamically created element via $("<div

class='test'></div>") only works in that document. If I create it from a different frame, IE won't allow this newly created element being moved to another frame.

2. Is it possible to add a scope to this and make the syntax like this:

3. $("<div>test</div>", window.document).appendTo(...

What version of the product are you using? On what operating system? on IE7, WINXP

Attachments (0)
Change History (1)

Changed May 12, 2008 12:41AM UTC by flesler comment:1

resolution: → fixed
status: newclosed

This is doable, the context is passed to jQuery.clean and it searches for the corresponding document.