-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a|area[ping] detect * add aping|areaping to integration tests * Add author tag
- Loading branch information
1 parent
eaca6c9
commit 605196f
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*! | ||
{ | ||
"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')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*! | ||
{ | ||
"name": "area[ping] Attribute", | ||
"property": "areaping", | ||
"caniuse": "ping", | ||
"tags": ["media", "attribute"], | ||
"builderAliases": ["area_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('areaping', !window.externalHost && 'ping' in createElement('area')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters