Re: Note on DOM Level 3 Core

On Fri, 30 Sep 2005, Jorgen Horstink wrote:

>
> The NodeList interface does not describe any exception behaviour.
>
> "Node The node at the indexth position in the NodeList, or null if that is not a
> valid index."
> source:
> http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-536297177
>
> The DOMException part of the specification then states;
>
> "In general, DOM methods return specific error values in ordinary processing
> situations, such as out-of-bound errors when using NodeList."
> source:
> http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-17189187
>
> I guess this is a fault in the specification? If not, could anybody tell me why
> I am wrong? If this is wrong indeed, the example should be altered.

Thanks, we will look into it (and report back).  I would trust the documentation of 
the methods on NodeList interface, which were most-carefully documented, over the
examples written somewhere else, in other words, expect a null return, as you have
indicated.

Ray

Received on Friday, 30 September 2005 17:36:30 UTC