Skip to main content

Bug Tracker

Side navigation

#6056 closed bug (fixed)

Opened February 09, 2010 02:25AM UTC

Closed February 10, 2010 05:38AM UTC

Last modified September 28, 2011 01:09AM UTC

jQuery 1.4 replaceWith() does not work with iFrame

Reported by: clam@ektron.com Owned by:
Priority: Milestone: 1.4.2
Component: manipulation Version: 1.4
Keywords: replaceWith Cc: doug.domeny@ektron.com
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();

}

Attachments (0)
Change History (3)

Changed February 10, 2010 05:38AM UTC by john comment:1

resolution: → fixed
status: newclosed

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

Changed February 10, 2010 05:38AM UTC by john comment:2

See #5986.

Changed September 28, 2011 01:09AM UTC by jinsteven@yahoo.com comment:3