[whatwg] a rel=attachment

?ann f?s 15.j?l 2011 21:34, skrifa?i Darin Fisher:
> 2)  Unlike rel=something, @download provides a way to specify the name
> of the file to save.  This makes the feature useful with data: URLs and
> blob:
> URLs (that are not backed by a single file).  This is valuable to me because
> I can imagine wanting to save the contents of a<canvas>, and that probably
> involves saving the data URL that you get from toDataURL().
> 
> 3)  The target=_download idea is interesting, but I'm not sure we can safely
> introduce new target values, and this also suffers from not providing a way
> to
> specify the downloaded filename.
> 
Is there any other use case for providing the filename than using
canvas' toDataURL instead of blobs (a use case more simply served by
FileSaver)?

Received on Sunday, 17 July 2011 12:59:05 UTC