<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26346</bug_id>
          
          <creation_ts>2014-07-15 23:18:12 +0000</creation_ts>
          <short_desc>DOMRectList::item(): is it zero-based index?</short_desc>
          <delta_ts>2014-07-18 20:28:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>FXTF</product>
          <component>Geometry</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adenilson Cavalcanti">a.cavalcanti</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>dschulze</cc>
    
    <cc>mike</cc>
          
          <qa_contact>sideshowbarker+geometry</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108976</commentid>
    <comment_count>0</comment_count>
    <who name="Adenilson Cavalcanti">a.cavalcanti</who>
    <bug_when>2014-07-15 23:18:12 +0000</bug_when>
    <thetext>In Section 4 DOMRectList interface, the getter method item() description says that &quot;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.&quot;

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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109040</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2014-07-17 07:49:15 +0000</bug_when>
    <thetext>I made DOMRectList an ArrayClass. Need to check with heycam if it is still required to explicitly specify if it is zero-based index</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109062</commentid>
    <comment_count>2</comment_count>
    <who name="Adenilson Cavalcanti">a.cavalcanti</who>
    <bug_when>2014-07-17 17:44:46 +0000</bug_when>
    <thetext>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 &quot;JavaScript arrays are zero-indexed&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109095</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2014-07-18 20:00:55 +0000</bug_when>
    <thetext>(In reply to Adenilson Cavalcanti from comment #2)
&gt; Dirk
&gt; 
&gt; If you are talking about a javascript Array class
&gt; (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/
&gt; Global_Objects/Array), it is explicitly defined as &quot;JavaScript arrays are
&gt; zero-indexed&quot;.

I will state &quot;Indices are zero-based.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>