Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#6056 closed bug (fixed)

jQuery 1.4 replaceWith() does not work with iFrame

Reported by: [email protected] Owned by:
Priority: Milestone: 1.4.2
Component: manipulation Version: 1.4
Keywords: replaceWith Cc: [email protected]
Blocked by: Blocking:


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 13 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 13 years ago by john

See #5986.

Note: See TracTickets for help on using tickets.