PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/AppLanding/js/vendor/modernizr/feature-detects/a-download.js

https://gitlab.com/webocalypse/themes
JavaScript | 8 lines | 1 code | 2 blank | 5 comment | 0 complexity | 575b1d9d0fc8d61304c821254847c790 MD5 | raw file
1
2// a[download] attribute
3// When used on an <a>, this attribute signifies that the resource it
4// points to should be downloaded by the browser rather than navigating to it.
5// http://developers.whatwg.org/links.html#downloading-resources
6// By Addy Osmani
7
8Modernizr.addTest('adownload', 'download' in document.createElement('a'));