Re: Some way to change an element's name would be useful

On Mon, Aug 29, 2011 at 4:29 PM, Aryeh Gregor <ayg@aryeh.name> wrote:

> On Mon, Aug 29, 2011 at 3:40 PM, Boris Zbarsky <bzbarsky@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

Received on Monday, 29 August 2011 20:38:30 UTC