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();
}
This has already been fixed in the nightlies (we don't try to detach an HTML string).