mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
23 lines
645 B
JavaScript
23 lines
645 B
JavaScript
/*!
|
|
{
|
|
"name": "[hidden] Attribute",
|
|
"property": "hidden",
|
|
"tags": ["dom"],
|
|
"notes": [{
|
|
"name": "WHATWG Spec",
|
|
"href": "https://html.spec.whatwg.org/dev/interaction.html#the-hidden-attribute"
|
|
}, {
|
|
"name": "original implementation of detect code",
|
|
"href": "https://github.com/aFarkas/html5shiv/blob/bf4fcc4/src/html5shiv.js#L38"
|
|
}],
|
|
"polyfills": ["html5shiv"],
|
|
"authors": ["Ron Waldon (@jokeyrhyme)"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Does the browser support the HTML5 [hidden] attribute?
|
|
*/
|
|
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
|
|
Modernizr.addTest('hidden', 'hidden' in createElement('a'));
|
|
});
|