Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#6056 closed bug (fixed)

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@…
Blocked by: Blocking:

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

comment:1 Changed 10 years ago by john

Resolution: fixed
Status: newclosed

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

comment:2 Changed 10 years ago by john

See #5986.

comment:3 Changed 8 years ago by jinsteven@…

Note: See TracTickets for help on using tickets.