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

Cannot read property 'removeAttribute' of undefined #21

Open
Jahrenski opened this issue Jul 9, 2020 · 1 comment
Open

Cannot read property 'removeAttribute' of undefined #21

Jahrenski opened this issue Jul 9, 2020 · 1 comment

Comments

@Jahrenski
Copy link

I'm having some errors while using this library. It seems to be working anyways so far.

Cannot read property 'removeAttribute' of undefined
Line 121

inlinedSVG = result.getElementsByTagName('svg')[0];

// Remove some of the attributes that aren't needed
inlinedSVG.removeAttribute('xmlns:a');

There should be a check if( inlinedSVG ) actually exists.

@sedax90
Copy link

sedax90 commented Nov 18, 2020

I've the same problem...

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