[Webkit-unassigned] [Bug 87611] New: [FileAPI] FileList.item should return null when the index is negative.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 27 19:29:03 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=87611

           Summary: [FileAPI] FileList.item should return null when the
                    index is negative.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: li.yin at intel.com


>From Spec: http://www.w3.org/TR/FileAPI/#dfn-item
If there is no indexth File object in the FileList, then this method must return null.

Currently, if index is largger than length, webkit returns null, it makes sense.
But it throws expection "INDEX_SIZE_ERR" when the index is negative.
Maybe it isn't friendly.

And both of Firefox and IE will return null, if index is negative or largger that length.
Although the spec have no obvious language to support negative index, I think if we support largger index, 
then we should support negative index as well.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list