W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [FileAPI] createObjectURL isReusable proposal

From: Glenn Maynard <glenn@zewt.org>
Date: Fri, 3 Feb 2012 22:55:38 -0600
Message-ID: <CABirCh8q8kbE+9wT3aMWD3h2zV0x_Z9TOKjDWDoCAkFSsv1-pg@mail.gmail.com>
To: Bronislav Klučka <Bronislav.Klucka@bauglir.com>
Cc: public-webapps@w3.org
2012/2/3 Bronislav Klučka <Bronislav.Klucka@bauglir.com>

> How would you create copies programmaticaly? How would you reassign src
> attribute of one image to another? The idea, that sometimes the attribute
> would return string (regular URL, FileSystem APi URL) sometimes Blob...
>  What would you do in case like this
>
> img.src = blob;
> div.appendChild(img);
> var s = div.innerHTML;
> div.innerHTML = '';
> div.innerHTML = s;
>
> which would work with regular URL, would fail in your suggestion...
>

This would fail just as badly with auto-releasing URLs.  No approach so far
makes this work (other than the explicit releasing that we're trying to
give alternatives to).

-- 
Glenn Maynard
Received on Saturday, 4 February 2012 04:56:17 GMT

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