1 | /*!
|
2 | {
|
3 | "name": "a[download] Attribute",
|
4 | "property": "adownload",
|
5 | "caniuse": "download",
|
6 | "tags": ["media", "attribute"],
|
7 | "builderAliases": ["a_download"],
|
8 | "notes": [{
|
9 | "name": "WHATWG Spec",
|
10 | "href": "https://developers.whatwg.org/links.html#downloading-resources"
|
11 | }]
|
12 | }
|
13 | !*/
|
14 | /* DOC
|
15 | When used on an `<a>`, this attribute signifies that the resource it points to should be downloaded by the browser rather than navigating to it.
|
16 | */
|
17 | define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
|
18 | Modernizr.addTest('adownload', !window.externalHost && 'download' in createElement('a'));
|
19 | });
|