htmlimports.js 658 B

123456789101112131415161718192021
  1. /*!
  2. {
  3. "name": "HTML Imports",
  4. "property": "htmlimports",
  5. "tags": ["html", "import"],
  6. "polyfills": ["polymer-htmlimports"],
  7. "notes": [{
  8. "name": "W3C Spec",
  9. "href": "https://w3c.github.io/webcomponents/spec/imports/"
  10. }, {
  11. "name": "HTML Imports - #include for the web",
  12. "href": "https://www.html5rocks.com/en/tutorials/webcomponents/imports/"
  13. }]
  14. }
  15. !*/
  16. /* DOC
  17. Detects support for HTML import, a feature that is used for loading in Web Components.
  18. */
  19. define(['Modernizr', 'addTest', 'createElement'], function(Modernizr, addTest, createElement) {
  20. Modernizr.addTest('htmlimports', 'import' in createElement('link'));
  21. });