-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE11 not working #7
Comments
My bad, I had missed this issue. |
Here is a simple demo I put together, you can try saving it into an html file and viewing it:
It would appear that the key difference is how the transpiled constructor is written. You have to use |
I was able to get my component running in IE11 and Chrome, the latter with shadow-dom, the former with shadow-dom polyfill. I had to change the code above to:
|
Thank you very much - I think this can be closed. |
When transpiled with babel, my component runs fine in IE11: https://github.com/dschulten/svelte-ce-sd |
I have tried to get a custom element with shadow dom running in IE11. When my bundle contains transpiled ES5 classes, IE11 complains about an "invalid calling object" on this line:
Here is how my webcomponent bundle calls attachShadow:
If the bundle does not contain ES5 transpiled classes, IE says of course that class XXX is a syntax error.
With which kind of webcomponent were you able to get it to work in IE11? You only mention that a Promise polyfill is required, is there anything else?
The text was updated successfully, but these errors were encountered: