-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Standalone SVG: Uncaught TypeError: node.getAttribute is not a function #720
Comments
Is the assumption that draw.image(...) should be fully supported in a pure/standalone SVG right? or are there any known issues? This is critical for my current project, so any hint is highly appreciated |
I tried this and in my case the image is loading. It throws an error anyway. However - this only happens when using a standalone svg and when the image is not used in a pattern. How it comes, that the image does not load in your case? The error does not impact the image loading itself |
thanks for the feedback. |
Its a bug which will be fixed in the next release. However it wont anything bad in your case |
ok. so you are saying a try...catch and good to go? I will do that. Any update when we can roughly expect the next release? |
I cannot even catch that error:
BTW: Is branch 3.0.0 already useful? I'm not implementing production code yet, so "beta" version would be fine... |
The error is asyncronous and cant be catched by a syncronous try catch. The fix is released with 2.6.3. In 3.0 i didnt see that error popping up. Its under development and will change rapidly in the next weaks (I already have some commits prepared which change a lot. However I need to test everything properly) |
Oh just saw your fix/commit. Just replaced 2.6.2 with your 2.6.3. Works like a charm so far. |
I have a very basic standalone SVG that look like this:
This approach works. And I can draw all kinds of native SVG elements (rect, circle etc.)
EXCEPT images are throwing the following error (they will be rendered properly though...)
Any ideas what is going wrong here?
The text was updated successfully, but these errors were encountered: