[whatwg] some comments on DOM collections

Anne van Kesteren fora at annevankesteren.nl
Thu Oct 19 05:51:09 PDT 2006


* 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/>




More information about the whatwg mailing list