On Mon, Aug 29, 2011 at 4:29 PM, Aryeh Gregor <a...@aryeh.name> wrote:
> On Mon, Aug 29, 2011 at 3:40 PM, Boris Zbarsky <bzbar...@mit.edu> wrote: > > Shades of > > http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-renameNode > > That has some good catches I hadn't thought of -- it preserves event > handlers and custom JS attributes too. > The behavior of sometimes working in-place and sometimes replacing the element is very evil, though. It should always replace the element. -- Glenn Maynard