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

Dennis Joachimsthaler dennis at efjot.de
Mon Aug 2 09:05:53 PDT 2010


Jeremy Keith <jeremy at adactio.com> wrote:

> Dennis wrote:
>> ...
> Hang on... isn't the mechanism for this already available via the "type"  
> attribute?
>
> For example:
>
> <a href="/path/to/image.jpg" type="image/jpeg">Full size image</a>

That wouldn't help in this case...

> A browser could offer a preference setting, for example:
>
> "Always download the following types of files, rather than opening in  
> the browser:
>
> * images	[x]
> * movies		[  ]
> ...etc."

Yes, but that wouldn't help since I want to force downloads regardless
of the browser settings. Maybe it would do if the type was set to
application/octet-stream, since those, by default, always get downloaded.



More information about the whatwg mailing list