rel-enclosure-brainstorming

From Microformats Wiki
Revision as of 20:30, 14 July 2011 by Tantek (talk | contribs) (drafted with download attribute suggestion)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<entry-title>rel-enclosure brainstorming</entry-title>

This article is a stub. You can help the microformats.org wiki by expanding it.

This page is for documenting suggestions for iterations, improvements etc. on the rel-enclosure microformat.

download attribute

As suggested on the WHATWG list, it would be nice if a "download" attribute were added to HTML5 and then a rel-enclosure implementation could use that attribute to name the resulting download.

E.g.

<a rel="enclosure" 
   href="f1d2d2f924e986ac86fdf7b36c94bcdf32beec15.jpg" 
   download="picture.jpg">Download image</a>

This would be equivalent to the HTTP header:

Content-Disposition: attachment; filename=picture.jpg

see also