UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

21 lines (20 loc) 622 B
/*! { "name": "a[ping] Attribute", "property": "aping", "caniuse": "ping", "tags": ["media", "attribute"], "builderAliases": ["a_ping"], "authors": ["Hélio Correia (@heliocorreia)"], "notes": [{ "name": "WHATWG Spec", "href": "https://html.spec.whatwg.org/dev/links.html#ping" }] } !*/ /* DOC The ping attribute, if present, gives the URLs of the resources that are interested in being notified if the user follows the hyperlink. */ define(['Modernizr', 'createElement'], function(Modernizr, createElement) { Modernizr.addTest('aping', !window.externalHost && 'ping' in createElement('a')); });