[whatwg] some comments on DOM collections

* I think HTMLCollection should be able to return non-HTML elements as
well so I'd suggest returning Element instead of HTMLElement.

* Error handling needs to be defined for HTMLCollection.item() and
HTMLCollection.namedItem(). What happens if there's no such indexth node
or node with that id? This also applies to HTMLFormControlsCollection and
HTMLOptionsCollection.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Thursday, 19 October 2006 05:51:09 UTC