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

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

From: Jeremy Keith <jeremy@adactio.com>
Date: Mon, 2 Aug 2010 11:31:31 +0100
Message-ID: <60A2EADF-E42B-4154-B3E2-E9BC8D60684E@adactio.com>
Dennis wrote:
> 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?

For example:

<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		[  ]
...etc."

-- 
Jeremy Keith

a d a c t i o

http://adactio.com/
Received on Monday, 2 August 2010 03:31:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:59 UTC