Skip to content
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

Template's script doesn't execute when imported from another document (polyfill) #1197

Closed
ebidel opened this issue Feb 17, 2015 · 1 comment
Assignees

Comments

@ebidel
Copy link
Contributor

ebidel commented Feb 17, 2015

Test: http://jsbin.com/qegitukowe/1/edit?html,output

The import used in the demo contains a <template> with a <script> in it.

Expected: In Chrome, when you click that page it updates the <template ref>
with "content2" and alerts 10.
Actual: In FF (polyfill), the template content is updated but the alert never happens (e.g. the script doesn't execute).

This may have something to do with template being in another document and the polyfill using .innerHTML.

@ebidel ebidel changed the title Script within template in an import document does not execute under polyfill Template script doesn't execute when coming from an import document (polyfill) Feb 17, 2015
@ebidel ebidel changed the title Template script doesn't execute when coming from an import document (polyfill) Template's script doesn't execute when imported from another document (polyfill) Feb 17, 2015
@garlicnation garlicnation self-assigned this Feb 20, 2015
@garlicnation
Copy link
Contributor

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

No branches or pull requests

2 participants