[whatwg] a rel=attachment

Le 14 juil. 2011 ? 14:45, Ian Fette (????????) a ?crit :
> Many websites wish to offer a file for download, even though it could
> potentially be viewed inline (take images, PDFs, or word documents as an
> example).

Which current websites?

> it seems like adding a "rel" attribute to the <a>
> tag would be a straightforward, minimally invasive way to address this use
> case. <a rel=attachment href=blah.pdf> would indicate that the browser
> should treat this link as if the response came with a content-disposition:
> attachment header, and offer to download/save the file for the user.



Are you then proposing to reverse the contextual click on the link to give the option, "view in the browser". All browsers have currently implemented "save this link as"?

It may please some users. As a user, I will place this in the category of super annoying features. It then means I would need a preference in the browser to disable it. 

Then it is at least 3 modifications to implement it.

-- 
Karl Dubost - http://dev.opera.com/
Developer Relations & Tools, Opera Software

Received on Thursday, 14 July 2011 12:03:43 UTC