
static.js.vendor.modernizr.feature-detects.a.download.js Maven / Gradle / Ivy
The newest version!
/*!
{
"name": "a[download] Attribute",
"property": "adownload",
"caniuse" : "download",
"tags": ["media", "attribute"],
"builderAliases": ["a_download"],
"notes": [{
"name": "WhatWG Reference",
"href": "http://developers.whatwg.org/links.html#downloading-resources"
}]
}
!*/
/* DOC
When used on an ``, this attribute signifies that the resource it points to should be downloaded by the browser rather than navigating to it.
*/
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
Modernizr.addTest('adownload', !window.externalHost && 'download' in createElement('a'));
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy