Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Platinum-sw HTMLImport not defined #117

Open
1 of 8 tasks
GaetanoHerman opened this issue May 22, 2017 · 3 comments
Open
1 of 8 tasks

Platinum-sw HTMLImport not defined #117

GaetanoHerman opened this issue May 22, 2017 · 3 comments

Comments

@GaetanoHerman
Copy link

GaetanoHerman commented May 22, 2017

Description

Uncaught ReferenceError: HTMLImports is not defined
at platinum-sw-register.html:111
This happens when importing platinum-sw-elements

Expected outcome

Steps to reproduce

Import platinum-sw-elements in element.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@GaetanoHerman
Copy link
Author

I fixed it using webcomponents-lite.js. Not sure if this is the way to do it?

@mkazlauskas
Copy link

It relies on the polyfill being loaded, while webcomponents-loader.js decides not to load it on your browser. This should be fixed so people can use webcomponents-loader or no polyfill at all.

@dam0vm3nt
Copy link

a temporary WA is to add this script right after webcomponents-loader.js:

<script>
    if (!window.HTMLImports) {
        HTMLImports={};
    }
</script>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants