W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 29 Aug 2011 16:38:03 -0400
Message-ID: <CABirCh_ar+ZKCnGYY5BBX8eumT0ZaNDbbUB4pdsH-De8cx2TBg@mail.gmail.com>
To: Aryeh Gregor <ayg@aryeh.name>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Robin Berjon <robin@berjon.com>, W3C WebApps WG <public-webapps@w3.org>, Ryosuke Niwa <rniwa@webkit.org>, Ehsan Akhgari <ehsan@mozilla.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT