Bug Tracker

Modify

Ticket #3217 (closed bug: duplicate)

Opened 5 years ago

Last modified 4 years ago

wrong document context in .clone (in IE)

Reported by: fabiangebert Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: clone,ie,context Cc:
Blocking: Blocked by:

Description

Instead of

container = this.ownerDocument.createElement("div");
container.appendChild(clone);
return jQuery.clean([container.innerHTML],this.ownerDocument)[0];

It should be

container = this.ownerDocument.createElement("div");
container.appendChild(clone);
return jQuery.clean([container.innerHTML],this.ownerDocument)[0];

in the .clone() function.
If not, the code does not work with frames (invalid argument error).

Change History

comment:1 Changed 5 years ago by shazam

Already spotted see ticket #2997

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #2997

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.