Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2150 closed feature (fixed)

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:

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.

  1. Is it possible to add a scope to this and make the syntax like this:
  1. $("<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

Change History (1)

comment:1 Changed 12 years ago by flesler

Resolution: fixed
Status: newclosed

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.