This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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 directly. Currently, webkit based browser and firefox have the different behavior.
According to the idl. interface FileList { getter File? item(unsigned long index); readonly attribute unsigned long length; }; unsigned long index represents the negative number is not expected. So, webkit based browser raises exception when the index is negative.
First, you want http://dev.w3.org/2006/webapi/FileAPI/#dfn-filelist. You almost never want "TR" links; if you find yourself on one, click the "latest editor's draft" link at the top. The behavior of unsigned long is defined by WebIDL. http://dev.w3.org/2006/webapi/WebIDL/#es-unsigned-long
WebKit bug. Converting to an 'unsigned long' should wrap modulo 2**32.