[whatwg] some comments on DOM collections

Ian Hickson ian at hixie.ch
Thu Oct 19 14:56:29 PDT 2006


On Thu, 19 Oct 2006, Anne van Kesteren wrote:
>
> * I think HTMLCollection should be able to return non-HTML elements as 
> well so I'd suggest returning Element instead of HTMLElement.

Hm, for, e.g. templateElements? Yeah, fair enough. Done.


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

Will do.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list