Good catch. Filed and fixed.
http://dev.jquery.com/ticket/5785
Also, in the future, you may want to use the new .unwrap() method
which is designed for this exact purpose:
c.children.unwrap();
(Although unwrap uses replaceWith so you would've hit the same bug, it
seems. Glad it's fixed!)
--John
Hi,
I would like to know if I have found a bug or the new version of
jQuery works different. The problem is with this code:
var c = inner.wrapInner("").children
();
//some stuff
c.replaceWith(c.children());
When using jQuery 1.3.2 then everything works fine but when I use
1.4a2 then children of "