Bug Tracker

Modify

Ticket #968 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling

Reported by: rrudenko@… Owned by:
Priority: minor Milestone: 1.2
Component: core Version: 1.1.4
Keywords: frames cross Cc:
Blocking: Blocked by:

Description (last modified by john) (diff)

When a user creates a DOM element via $('<tag>'), the element would always reside in current document. This makes $() function unusable for DOM creation when nodes are supposed to be added to some other document (different frame or window). I suggest allowing an optional parameter to node constructor, e.g. $('<tag>', document) to allow cross-frame DOM creation.

Testcase that demonstrates the issue in browsers that enforce prohibition on cross-document node moving (IE, FF3 alpha):  http://pastebin.ca/357832

Change History

comment:1 Changed 6 years ago by john

  • need set to Test Case

comment:2 Changed 6 years ago by joern

  • need changed from Test Case to Patch

Added test in [1585].

comment:3 Changed 6 years ago by john

  • Status changed from new to closed
  • Version set to 1.1.4
  • Resolution set to fixed
  • Description modified (diff)
  • Milestone set to 1.2

Fixed in SVN.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.