summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/a-download.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/a-download.js')
-rw-r--r--source/bower_components/modernizr/feature-detects/a-download.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/a-download.js b/source/bower_components/modernizr/feature-detects/a-download.js
new file mode 100644
index 0000000..559fadd
--- /dev/null
+++ b/source/bower_components/modernizr/feature-detects/a-download.js
@@ -0,0 +1,8 @@
+
+// a[download] attribute
+// 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.
+// http://developers.whatwg.org/links.html#downloading-resources
+// By Addy Osmani
+
+Modernizr.addTest('adownload', 'download' in document.createElement('a'));