W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2005

Re: Note on DOM Level 3 Core

From: Ray Whitmer <ray@xmission.com>
Date: Fri, 30 Sep 2005 11:36:12 -0600 (MDT)
To: Jorgen Horstink <dom@jorgenhorstink.nl>
cc: www-dom@w3.org
Message-ID: <Pine.LNX.4.63.0509301131020.32708@xmission.xmission.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT