[whatwg] some comments on DOM collections
ian at hixie.ch
Thu Oct 19 15:00:20 PDT 2006
On Thu, 19 Oct 2006, Joao Eiras wrote:
> This method retrieves a node specified by ordinal index. Nodes are numbered
> in tree order (depth-first traversal order).
> index of type unsigned long - The index of the node to be fetched. The index
> origin is 0.
> Return Value
> Node - The Node at the corresponding position upon success. A value of null
> is returned if the index is out of range.
> This is the best thing to do, from my multiple experiences with ecmascript.
Yeah, this is (mostly) what browsers do, and is what I've made the DOM5
HTML spec require now.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg