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
>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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC