-
Notifications
You must be signed in to change notification settings - Fork 85
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
IE WrongDocumentError #45
Comments
Thanks for the feedback. Maybe you can provide some more details so we can try to reproduce this issue.
Thanks. Edit: Removed one question that is answered in the original issue |
The documentation for Can you try if using Here is the documentation for both functions: |
Hey! So the problem is happening on IE 11. I don't have a way to test it in older IE versions, sorry about that. The only thing I think I'm doing differently is that the SVG injection happens inside an iframe. I also confirm that // Fix for browser (IE, maybe other too) which are throwing 'WrongDocumentError'
// if you replace an element which is not in the document
if (document.adoptNode) {
injectElem = document.adoptNode(injectElem);
} Thanks for your time! |
Hi!
Firstly, thank you for your work!
I have a problem in IE where it throws
WrongDocumentError
while trying to replace the img element with the svg.After looking into it, I found that other similar packages solved this same problem with a simple solution:
I tried it myself by adding it right before:
And it fixed the issue 👍
Any thoughts on this?
Thanks!
The text was updated successfully, but these errors were encountered: