On Wed, Jan 20, 2010 at 8:43 AM, teknoFX <shmuel...@gmail.com> wrote: > There appears to be a bug in the jQuery 1.4 implementation of > replaceWith. If you try to replace an element with just plain text, > jQuery removes the element altogether and does not swap in the text.
>From the replaceWith documentation, emphasis mine: "Replaces all matched elements with the specified HTML or DOM elements. This returns the JQuery element that was just replaced, *which has been removed from the DOM*." Nathan