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: Dimitri Glazkov <dglazkov@chromium.org>
Date: Mon, 29 Aug 2011 14:29:22 -0700
Message-ID: <CADh5Ky3YcBumU6zSf-72Y5P--jcARNepg+cq73YdWEzJQZRF=w@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Robin Berjon <robin@berjon.com>, Aryeh Gregor <ayg@aryeh.name>, W3C WebApps WG <public-webapps@w3.org>, Ryosuke Niwa <rniwa@webkit.org>, Ehsan Akhgari <ehsan@mozilla.com>
Document.renameNode seems cool. Aside from the awkward user data
event, it matches perfectly the needs of the Component Model (updated
to reference it here:

I am curious why no one had implemented this. We should dust it off,
add a normal event to it, and set it sail.


On Mon, Aug 29, 2011 at 2:07 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 8/29/11 4:53 PM, Robin Berjon wrote:
>> On Aug 29, 2011, at 21:40 , Boris Zbarsky wrote:
>>> On 8/29/11 3:33 PM, Robin Berjon wrote:
>>>> For completeness, I'm guessing that namespaces would be supported as
>>>> well?
>>>> Element renameElement(DOMString newName);
>>>> Element renameElement(DOMString newNS, DOMString newName);
>>> Shades of
>>> http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-renameNode
>> Yeah, but my recollection is that renameNode() is in the list of DOM
>> things that are so hopelessly fuzzy that you probably don't want to touch
>> them if you plan on being interoperable. Rereading the description after not
>> having touched it in years certainly reinforces that feeling.
> Sure.  I wasn't exactly endorsing it; just pointing to previous attempts to
> spec such a thing in case they would be useful.
> -Boris
Received on Monday, 29 August 2011 21:29:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC