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

Dennis Joachimsthaler dennis at efjot.de
Fri Jul 30 03:36:16 PDT 2010


Hello,

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.

This would avoid constructs such as <a href="hi">Download</a> (Right click  
and click save
target as... to download).

It would also eliminate the need to handle such requests with a server
side scripting engine to change the headers dynamically to enforce  
downloading
of the content.

HTML5 can already act on the http headers with the rel="noreferer"  
property.

Please give me your opinion about this

Thank you in advance!



More information about the whatwg mailing list