Re: Why AttributeList?

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