On Mar 14, 2020, at 8:45 PM, Christopher Finazzo <[email protected]> wrote: > > When checking the syntax of my document, I am getting validator warnings that > the syntax of my download links is incorrect. BBEdit tells me that the > download attribute requires a value inside the anchor, but the W3C's Nu > checker has no such complaints.
This is from he HTML spec at whatwg.org <http://whatwg.org/>: > The download attribute, if present, indicates that the author intends the > hyperlink to be used for downloading a resource > <https://html.spec.whatwg.org/multipage/links.html#downloading-hyperlinks>. > The attribute may have a value; the value, if any, specifies the default file > name 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 > In some cases, resources are intended for later use rather than immediate > viewing. To indicate that a resource is intended to be downloaded for use > later, rather than immediately used, the download > <https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-download> > attribute can be specified on the a > <https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element> > or area > <https://html.spec.whatwg.org/multipage/image-maps.html#the-area-element> > element that creates the hyperlink > <https://html.spec.whatwg.org/multipage/links.html#hyperlink> to that > resource. > > The attribute can furthermore be given a value, to specify the file name that > user agents are to use when storing the resource in a file system. This value > can be overridden by the `Content-Disposition > <https://tools.ietf.org/html/rfc6266>` HTTP header's filename parameters. > [RFC6266] <https://html.spec.whatwg.org/multipage/references.html#refsRFC6266> -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/BA5D8AA3-6C5E-4458-A5AD-821DB6F5C80D%40faiman.org.
