Bug Tracker

Ticket #2150 (closed feature: fixed)

Opened 11 months ago

Last modified 7 months ago

Add scope to dynamically created element

Reported by: davidserduke Assigned to: anonymous
Type: feature Priority: minor
Milestone: 1.2.2 Component: core
Version: 1.2.1 Keywords:
Cc: Needs: Review

Description

Originally reported by yun.wang, 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? 1.1.3.1 on IE7, WINXP

Attachments

Change History

Changed 7 months ago by flesler

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.