Re: removeAttribute

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 UTC