W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: removeAttribute

From: <keshlam@us.ibm.com>
Date: Fri, 17 Mar 2000 15:12:13 -0500
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <852568A5.006EF637.00@D51MTA03.pok.ibm.com>
Dieter wrote:
>So what's the reason, why removeAttribute does not return the
>attribute's reference?

Compatability with "DOM Level 0".

>BTW: If the applications mixes namespace and non-namespace methods for
>adding nodes in the following code
>MyAttr:= MyElement.getAttributeNode('xyz');
>MyElement.removeAttribute('xyz');
>the first line might return another node than the second removes.

I believe our intent was that the behavior would be consistant;
removeAttribute will remove the same attribute that getAttributeNode would
return. We should probably add that to the last paragraph of section 1.1.8.

______________________________________
Joe Kesselman  / IBM Research
Received on Friday, 17 March 2000 15:13:12 GMT

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