Modify ↓
Ticket #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@… |
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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