rel-enclosure-brainstorming: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(drafted with download attribute suggestion)
m (Replace <entry-title> with {{DISPLAYTITLE:}})
Line 1: Line 1:
<entry-title>rel-enclosure brainstorming</entry-title>
{{DISPLAYTITLE:rel-enclosure brainstorming}}


Latest revision as of 16:31, 18 July 2020

This article is a stub. You can help the 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 Microformats in HTML5 and then a rel-enclosure implementation could use that attribute to name the resulting download.


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

This would be equivalent to the HTTP header:

Content-Disposition: attachment; filename=picture.jpg

see also