This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15769 - Section should clarify whether |download| attribute is boolean or not (i.e., is the minimum form |<a download>| or |<a download="">|?)
Summary: Section should clarify whether |download| attribute is boolean or not (i.e., ...
Status: RESOLVED INVALID
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 10:19 UTC by contributor
Modified: 2012-07-18 18:47 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2012-01-29 10:19:07 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html
Multipage: http://www.whatwg.org/C#attr-hyperlink-download
Complete: http://www.whatwg.org/c#attr-hyperlink-download

Comment:
Section should clarify whether |download| attribute is boolean or not (i.e.,
is the minimum form |<a download>| or |<a download="">|?)

Posted from: 108.89.52.130
User agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.229 Version/11.61
Comment 1 Ms2ger 2012-01-29 10:31:07 UTC
Those are equivalent.
Comment 2 Kang-Hao (Kenny) Lu 2012-01-30 06:14:17 UTC
Regardless of the sentence in the parenthesis, the request seems to be quite clear. Having said that, the spec says

  # The attribute may have a value; the value, if any, specifies the default filename that the author
  # recommends for use in labeling the resource in a local file system. There are no restrictions on allowed
  # values, but authors are cautioned that most file systems have limitations with regard to what
  # punctuation is supported in file names, and user agents are likely to adjust file names accordingly.

and it's quite apparent to me that this attribute is currently not a boolean attribute and this doesn't need to be clarified.
Comment 3 Patrick Dark 2012-01-31 08:06:06 UTC
Hello, I submitted this bug.

On a re-reading of both the text cited by Kenny Lu and the definition for Boolean attributes, the Boolean status of the attribute seems clear.

I was apparently confused by the simple use case--invoking a download with the existing file name--having the same syntax (i.e., |<a download="">|) as the Boolean attribute syntax. I see now that |<a download>| can't work here because it would have to be equivalent to |<a download="download">|.

I'll change the bug status to "INVALID."

(IMO, it would be less confusing and more powerful to have |download| be a Boolean with the filename info in a separate attribute (e.g., |save-as|).)