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

Re: [FileAPI] File.slice spec bug

From: Arun Ranganathan <arun@mozilla.com>
Date: Tue, 12 Apr 2011 17:35:33 -0400
Message-ID: <4DA4C5A5.9090101@mozilla.com>
To: Glenn Maynard <glenn@zewt.org>
CC: Jonas Sicking <jonas@sicking.cc>, Webapps WG <public-webapps@w3.org>
On 4/12/11 5:27 PM, Glenn Maynard wrote:
> On Tue, Apr 12, 2011 at 2:24 PM, Jonas Sicking <jonas@sicking.cc> wrote:
>
>     File.slice is currently shipped by Chrome and Firefox 4. I would be
>     fine with fixing this in Firefox 4.0.1, however that only makes sense
>     if the chrome folks are fine with fixing it in their implementation.
>
>
> "bb = new BlobBuilder(); bb.append("abcd"); bb.getBlob().slice(2, 
> 2).size == 0" is a straightforward feature test, except that Firefox 4 
> doesn't support BlobBuilder.  Is there another way to synchronously 
> retrieve a non-empty Blob to test with?

Get a file.

<input name="foo" type="file" 
onchange="alert(this.files[0]);alert(this.files[0].slice);">


>
> -- 
> Glenn Maynard
>
Received on Tuesday, 12 April 2011 21:36:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:44 GMT