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

loadTemplate not working for ie11 #22

Closed
salminio opened this issue Aug 26, 2015 · 1 comment
Closed

loadTemplate not working for ie11 #22

salminio opened this issue Aug 26, 2015 · 1 comment

Comments

@salminio
Copy link

I'm trying to use

DefaultLoader.loadTemplate("mypath/myfile.html");

and grabbing the result.template.innerHTML for use later. It works in Chrome and Firefox but in IE11 it returns an empty string.

@EisenbergEffect
Copy link
Contributor

HTMLTemplateElement has a content property that you should access. It may be that innerHTML works on some platforms as well. IE needs a polyfill to work, so perhaps it doesn't entirely fill the API but I haven't seen innerHTML used on the template element in the past. You should be safe in using the content property though.

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