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

Ambiguity in INDEX_SIZE_ERROR exception explanations?

From: W. Scott Means <smeans@moonlightideas.com>
Date: Sat, 7 Aug 1999 18:41:01 -0400 (EDT)
Message-ID: <46641999867224516174@moonlightideas.com>
To: www-dom@w3.org
Hello!  My name is Scott Means, and I'm working on an XML book for
O'Reilly.  As a result, I've been going over the spec at a pretty minute
level, and I have a question.  In the CharacterData interface, several
methods accept an offset into the data attribute, and the documentation
indicates:

INDEX_SIZE_ERR: Raised if the specified offset is negative or
	greater than the number of characters in <code>data</code>.

Since all offsets in the CharacterData interface are intended to be zero
based, shouldn't this read "Raised if the specified offset is negative, or
greater than or equal to the number of characters in <code>data</code>." 
In zero-based operations, the valid range is 0 <= index < length, right?

Just checking.

    Scott Means
    smeans@moonlightideas.com
Received on Monday, 9 August 1999 03:12:20 GMT

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