Note on DOM Level 3 Core

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.

-jorgen

Received on Friday, 30 September 2005 05:46:39 UTC