mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
20 lines
497 B
JavaScript
20 lines
497 B
JavaScript
/*!
|
|
{
|
|
"name": "Custom Elements API",
|
|
"property": "customelements",
|
|
"caniuse": "custom-elementsv1",
|
|
"tags": ["customelements"],
|
|
"polyfills": ["customelements"],
|
|
"notes": [{
|
|
"name": "Specs for Custom Elements",
|
|
"href": "https://www.w3.org/TR/custom-elements/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for the Custom Elements API, to create custom html elements via js
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('customelements', 'customElements' in window);
|
|
});
|