Opened 14 years ago
Closed 14 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?
- 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.
- Is it possible to add a scope to this and make the syntax like this:
- $("<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
Note: See
TracTickets for help on using
tickets.
This is doable, the context is passed to jQuery.clean and it searches for the corresponding document.