mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
22 lines
648 B
JavaScript
22 lines
648 B
JavaScript
/*!
|
|
{
|
|
"name": "HTML Imports",
|
|
"property": "htmlimports",
|
|
"tags": ["html", "import"],
|
|
"polyfills": ["polymer-htmlimports"],
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://w3c.github.io/webcomponents/spec/imports/"
|
|
}, {
|
|
"name": "HTML Imports - #include for the web",
|
|
"href": "https://www.html5rocks.com/en/tutorials/webcomponents/imports/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for HTML import, a feature that is used for loading in Web Components.
|
|
*/
|
|
define(['Modernizr', 'addTest', 'createElement'], function(Modernizr, addTest, createElement) {
|
|
Modernizr.addTest('htmlimports', 'import' in createElement('link'));
|
|
});
|