This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In Section 4 DOMRectList interface, the getter method item() description says that "when invoked, must throw an IndexSizeError exception when index is greater than the number of DOMRect objects associated with the object. Otherwise, the DOMRect object at index must be returned." Perhaps it should also define if it is zero or one based? (e.g. item(0) returns the first element if the list is non empty).
I made DOMRectList an ArrayClass. Need to check with heycam if it is still required to explicitly specify if it is zero-based index
Dirk If you are talking about a javascript Array class (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), it is explicitly defined as "JavaScript arrays are zero-indexed".
(In reply to Adenilson Cavalcanti from comment #2) > Dirk > > If you are talking about a javascript Array class > (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ > Global_Objects/Array), it is explicitly defined as "JavaScript arrays are > zero-indexed". I will state "Indices are zero-based."