Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-07-07 Thread Jonas Sicking
On Tue, Jun 21, 2011 at 10:17 AM, Arun Ranganathan a...@mozilla.com wrote: Sorry if these have all been discussed before. I just read the File API for the first time and 2 random questions popped in my head. 1) If I'm using readAsText with a particular encoding and the data in the file is not

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-07-06 Thread Arun Ranganathan
On 6/30/11 6:01 PM, Gregg Tavares (wrk) wrote: On Tue, Jun 21, 2011 at 10:17 AM, Arun Ranganathan a...@mozilla.com mailto:a...@mozilla.com wrote: Sorry if these have all been discussed before. I just read the File API for the first time and 2 random questions popped in my head.

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-30 Thread Gregg Tavares (wrk)
On Tue, Jun 21, 2011 at 10:17 AM, Arun Ranganathan a...@mozilla.com wrote: ** Sorry if these have all been discussed before. I just read the File API for the first time and 2 random questions popped in my head. 1) If I'm using readAsText with a particular encoding and the data in the file

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-21 Thread Arun Ranganathan
On 6/7/11 5:04 PM, Jonas Sicking wrote: On Tue, Jun 7, 2011 at 11:51 AM, Jian Lijia...@chromium.org wrote: On Tue, Jun 7, 2011 at 11:23 AM, Jonas Sickingjo...@sicking.cc wrote: On Tue, Jun 7, 2011 at 10:43 AM, Jian Lijia...@chromium.org wrote: I have a couple questions regarding abort

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-21 Thread Arun Ranganathan
On 6/7/11 1:43 PM, Jian Li wrote: I have a couple questions regarding abort behavior. * If the reading is completed and the loadend event has been fired, do we want to fire loadend event again when abort() method is called? Right now, if reading is completed (with loadend

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-14 Thread Gregg Tavares (wrk)
Sorry if these have all been discussed before. I just read the File API for the first time and 2 random questions popped in my head. 1) If I'm using readAsText with a particular encoding and the data in the file is not actually in that encoding such that code points in the file can not be mapped

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-08 Thread Robin Berjon
On May 12, 2011, at 00:49 , Arun Ranganathan wrote: 2. The read methods on FileReader raise a new exception -- OperationNotAllowedException -- if multiple concurrent reads are invoked. I talked this over with Jonas; we think that rather than reuse DOMException error codes (like

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-08 Thread Jonas Sicking
On Wed, Jun 8, 2011 at 8:16 AM, Robin Berjon ro...@berjon.com wrote: On May 12, 2011, at 00:49 , Arun Ranganathan wrote: 2. The read methods on FileReader raise a new exception -- OperationNotAllowedException -- if multiple concurrent reads are invoked.  I talked this over with Jonas; we

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-07 Thread Jian Li
I have a couple questions regarding abort behavior. - If the reading is completed and the loadend event has been fired, do we want to fire loadend event again when abort() method is called? - Do we want to reset error to null or leave it intact when abort() method is called? Thanks,

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-07 Thread Jonas Sicking
On Tue, Jun 7, 2011 at 10:43 AM, Jian Li jia...@chromium.org wrote: I have a couple questions regarding abort behavior. If the reading is completed and the loadend event has been fired, do we want to fire loadend event again when abort() method is called? No Do we want to reset error to

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-07 Thread Jian Li
On Tue, Jun 7, 2011 at 11:23 AM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Jun 7, 2011 at 10:43 AM, Jian Li jia...@chromium.org wrote: I have a couple questions regarding abort behavior. If the reading is completed and the loadend event has been fired, do we want to fire loadend

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-07 Thread Jonas Sicking
On Tue, Jun 7, 2011 at 11:51 AM, Jian Li jia...@chromium.org wrote: On Tue, Jun 7, 2011 at 11:23 AM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Jun 7, 2011 at 10:43 AM, Jian Li jia...@chromium.org wrote: I have a couple questions regarding abort behavior. If the reading is completed

[FileAPI] Updates to FileAPI Editor's Draft

2011-05-11 Thread Arun Ranganathan
The Editor's Draft of the FileAPI -- http://dev.w3.org/2006/webapi/FileAPI/ -- has had some updates. These are the notable changes: 1. Blob.slice behavior has changed to more closely match String.prototype.slice from ECMAScript (and Array.prototype.slice semantically). I think we're the