modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
20 lines (19 loc) • 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);
});