Bug Tracker

Modify

Ticket #6056 (closed bug: fixed)

Opened 3 years ago

Last modified 20 months ago

jQuery 1.4 replaceWith() does not work with iFrame

Reported by: clam@… Owned by:
Priority: Milestone: 1.4.2
Component: manipulation Version: 1.4
Keywords: replaceWith Cc: doug.domeny@…
Blocking: Blocked by:

Description

The new replaceWith() parses the string parameter in the default document and it will fail later at I proposed it to be changed from

if ( !jQuery.isFunction( value ) ) {

value = jQuery( value ).detach();

}

to the following

if ( !jQuery.isFunction( value ) ) {

value = jQuery( value, this[0].ownerDocument ).detach();

}

Change History

comment:1 Changed 3 years ago by john

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

This has already been fixed in the nightlies (we don't try to detach an HTML string).

comment:2 Changed 3 years ago by john

See #5986.

comment:3 Changed 20 months ago by jinsteven@…

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.