/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. // a[download] attribute
  2. // When used on an <a>, this attribute signifies that the resource it
  3. // points to should be downloaded by the browser rather than navigating to it.
  4. // http://developers.whatwg.org/links.html#downloading-resources
  5. // By Addy Osmani
  6. Modernizr.addTest('adownload', 'download' in document.createElement('a'));