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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 30 Aug 2007 12:56:55 +1000
To: Garrett Smith <dhtmlkitchen@gmail.com>
Cc: Eddhie_Kurnianto@app.co.id, www-dom@w3.org
Message-ID: <20070830025655.GB22333@arc.mcc.id.au>

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).

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Thursday, 30 August 2007 02:57:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT