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

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

From: Dennis Joachimsthaler <dennis@efjot.de>
Date: Mon, 02 Aug 2010 18:09:40 +0200
Message-ID: <op.vgti6etk48yz2f@dennis>
Ben Schwarz <ben.schwarz at gmail.com> wrote:

> I'm really not too sure what pre-existing problem this actually solves.
> Given that a server sets the correct mime-types for a given resource, we
> know what "type" it is already.

Yes, since we don't want to set MIME-Types. I want to be able to set
what a file actually is. Is it a file which is supposed to be shown in
the browser? Or is it an "attachment" (refering to the content-disposition

> Setting the Content-disposition on the client side creates an annoying  
> user
> experience.

I don't think so. What would you rather have?

(Please right click and save target as)



> 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.

No problem with what you want to have, but can't webmasters ALREADY set the
content-disposition? I just want to copy this functionality over to the  
to prevent that you always have to use a scripting language server-side.

> On Mon, Aug 2, 2010 at 8:31 PM, Jeremy Keith <jeremy at adactio.com> wrote:
>> ...
Received on Monday, 2 August 2010 09:09:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC