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

'remove' method used in 'getSVGFromSource' is not supported by IE #23

Open
diegocasmo opened this issue Jul 18, 2017 · 1 comment
Open

Comments

@diegocasmo
Copy link

diegocasmo commented Jul 18, 2017

The remove method used by getSVGFromSource when using the raw prop option is not supported by IE (I have tested this with IE 11).

See remove browser compatibility table here: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove

A possible solution might be to check if remove is defined, otherwise use the more broadly supported removeChild as such:

svg.remove ? svg.remove() : svgContainer.removeChild(svg); // deref from parent element
@WesleyDRobinson
Copy link

@diegocasmo Consider using a polyfill on your end?
ChildNode.remove() method in Internet Explorer 9 and higher.

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