[whatwg] "Content-Disposition" property for <a> tags
rescator at emsai.net
Fri Jul 30 19:20:06 PDT 2010
On 2010-07-31 03:57, Roger Hågensen wrote:
<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
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
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/
More information about the whatwg