[whatwg] a rel=attachment

Tab Atkins Jr. jackalmage at gmail.com
Thu Jul 14 14:35:40 PDT 2011

On Thu, Jul 14, 2011 at 1:52 PM, Tantek Çelik <tantek at cs.stanford.edu> wrote:
> Also the empty download attribute doesn't work as it is supposed to be
> equivalent to download="download" which would simply name the file
> "download" which is unlikely what author or user want.

This is incorrect.  If you omit an attribute's value it becomes the
empty string.  See this testcase:

<!DOCTYPE html>
<body foo>

(In SGML languages, omitting an attribute's value was *actually*
omitting the attribute name, and the name was inferred from looking in
the DTD for what attribute had that as a possible enumerated value.
This is why XHTML1 requires boolean attributes to be written as
foo='foo'.  XHTML5, though, prefers the form foo='', as that makes the
value identical to what it would be as an HTML boolean attribute.)


More information about the whatwg mailing list