Re: [FileAPI] File.slice spec bug

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 UTC