Bug Tracker

Opened 16 years ago

Closed 16 years ago

#968 closed enhancement (fixed)

$('<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:
Blocked by: Blocking:

Description (last modified by john)

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 (3)

comment:1 Changed 16 years ago by john

need: Test Case

comment:2 Changed 16 years ago by joern

need: Test CasePatch

Added test in [1585].

comment:3 Changed 16 years ago by john

Description: modified (diff)
Milestone: 1.2
Resolution: fixed
Status: newclosed
Version: 1.1.4

Fixed in SVN.

Note: See TracTickets for help on using tickets.