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

Re: removeAttribute

From: <keshlam@us.ibm.com>
Date: Wed, 15 Mar 2000 15:23:03 -0500
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <852568A3.006FF704.00@D51MTA03.pok.ibm.com>
>Conclusion: removeAttribute seems to be for almost every case
>replaceable by removeAttributeNode.

That's true. e.removeAttribute(x) is just a shorthand for
e.removeAttributeNode(e.getAttributeNode(x)).

However, the single removeAttribute call may be more efficient than the
two-call version (in some implementations). And it is often more
convenient.

______________________________________
Joe Kesselman  / IBM Research
Received on Wednesday, 15 March 2000 15:23:33 GMT

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