I'm really not too sure what pre-existing problem this actually solves. <div>Given that a server sets the correct mime-types for a given resource, we know what "type" it is already. </div><div><br></div><div>
Setting the Content-disposition on the client side creates an annoying user experience.</div><div><br></div><div>If I want to open a link in a new tab, window or download, I'll do it like I have done for the last ten years—via a keyboard modifier or a contextual menu. </div>
<div><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 8:31 PM, Jeremy Keith <span dir="ltr"><<a href="mailto:jeremy@adactio.com">jeremy@adactio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dennis wrote:<br>
> I have an idea which would be very cool for HTML5.<br>
><br>
> Having a Content-Disposition property on <a> tags which does the same as<br>
> the HTTP Header.<br>
> For example changing the file name of the file to be downloaded or rather<br>
> have a image<br>
> file download rather than it being shown in the browser directly.<br>
<br>
Hang on... isn't the mechanism for this already available via the "type" attribute?<br>
<br>
For example:<br>
<br>
<a href="/path/to/image.jpg" type="image/jpeg">Full size image</a><br>
<br>
A browser could offer a preference setting, for example:<br>
<br>
"Always download the following types of files, rather than opening in the browser:<br>
<br>
* images        [x]<br>
* movies                [  ]<br>
...etc."<br>
<font color="#888888"><br>
--<br>
Jeremy Keith<br>
<br>
a d a c t i o<br>
<br>
<a href="http://adactio.com/" target="_blank">http://adactio.com/</a><br>
<br>
<br>
</font></blockquote></div><br></div>