W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2007

Re: method cloneNode ... can i overide the attributes ? ... urgent

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Wed, 29 Aug 2007 20:19:02 -0700
Message-ID: <c9e12660708292019k599a88a4o9b93bc8fb97389bb@mail.gmail.com>
To: "Garrett Smith" <dhtmlkitchen@gmail.com>, Eddhie_Kurnianto@app.co.id, www-dom@w3.org
On 8/29/07, Cameron McCormack <cam@mcc.id.au> wrote:
> Garrett Smith:
> > the nodeName property cannot be changed.
>
> It can be changed if the DOM 3 implementation supports renameNode
> without having to create a new object for it.  (It can't be changed just
> by assigning to nodeName, however.)
>
> > An attribute (except IDREF) can be changed.
>
> There's no reason that attributes of type IDREF can't be changed (unless
> the attribute node itself is read only).
>
For some reason I thought that ID should not be changed. It seems that
it would require a reassignment in the Map that the implementation
uses to find the element not just the element.

But it appears I was wrong - thanks.


Garrett
> --
> Cameron McCormack, http://mcc.id.au/
>         xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
>


-- 
Programming is a collaborative art.
Received on Thursday, 30 August 2007 03:19:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:11:38 UTC