W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2010

[whatwg] "Content-Disposition" property for <a> tags

From: Roger Hågensen <rescator@emsai.net>
Date: Sat, 31 Jul 2010 04:20:06 +0200
Message-ID: <4C538856.4090105@emsai.net>
On 2010-07-31 03:57, Roger H?gensen wrote:

Another example:

<a href="cool.png" download><image src="cool_sm.jpg"></a>

How many here have had that wishful thinking work exactly like you wanted?
That is the minimal use case, old browsers would behave as currently,
those supporting this on the other hand would always present an expected 
Save As.
I'm sure half the websites out there that display a thumbnail image but 
links to a larger or original image would jump at this.

Another minimal example would be:

<image src="cool_sm.jpg"> <a href="cool.png" download>Download the full 
image!</a>

Oh yeah, I almost forgot. Screenreaders (you know, usually for those 
blind folks) would also benefit for this as ther would be no ambiguity 
as to what action should be taken.
Obviously the two examples about do not make that much sense, but 
imagine if it was the audio example from my other post instead, instead 
of potentially having the browser try and play the audio
it would instead download it to where the user would prefer (if it all), 
that way one could have a low quality <audio> and a <a href download> 
next to it that let you download the higher quality audio.

-- 
Roger "Rescator" H?gensen.
Freelancer - http://EmSai.net/
Received on Friday, 30 July 2010 19:20:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC