[whatwg] "Content-Disposition" property for <a> tags
jeremy at adactio.com
Mon Aug 2 03:31:31 PDT 2010
> I have an idea which would be very cool for HTML5.
> Having a Content-Disposition property on <a> tags which does the same as
> the HTTP Header.
> For example changing the file name of the file to be downloaded or rather
> have a image
> file download rather than it being shown in the browser directly.
Hang on... isn't the mechanism for this already available via the "type" attribute?
<a href="/path/to/image.jpg" type="image/jpeg">Full size image</a>
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 [ ]
a d a c t i o
More information about the whatwg