W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1998

Re: Why AttributeList?

From: Gavin Nicol <gtn@eps.inso.com>
Date: Tue, 2 Jun 1998 09:08:49 -0400
Message-Id: <199806021308.JAA24962@nathaniel.eps.inso.com>
To: claude@utlco.com
CC: www-dom@w3.org
>I noticed that AttributeList is only referenced in the Document
>interface as a return value for the factory method
>Document.createAttributeList().
>Nowhere else in the DOM is it used or referenced.
>
>Since Element.getAttributes() returns a NodeIterator
>can't AttributeList and Document.createAttributeList()
>be deprecated?

It is often useful to access attributes by name, so the AttributeList
acts as an associative array. This may not be strictly necessary
with direct access on the Element object.
Received on Tuesday, 2 June 1998 09:08:27 GMT

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