W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

[Bug 17277] New: [FileAPI] It have no clear behavior about negative index of FileList.item

From: <bugzilla@jessica.w3.org>
Date: Fri, 01 Jun 2012 00:47:28 +0000
To: public-webapps@w3.org
Message-ID: <bug-17277-2927@http.www.w3.org/Bugs/Public/>

           Summary: [FileAPI] It have no clear behavior about negative
                    index of FileList.item
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: File API
        AssignedTo: arun@mozilla.com
        ReportedBy: li.yin@intel.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: public-webapps@w3.org

>From current spec, http://www.w3.org/TR/FileAPI/#dfn-filelist
MUST return the indexth File object in the FileList. If there is no indexth
File object in the FileList, then this method must return null.
But when the index is negative number, string, null, or undefined and so on,
what should be returned, whether it should raise exception or return null

Currently, webkit based browser and firefox have the different behavior.

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 1 June 2012 00:47:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:50 UTC