-
Notifications
You must be signed in to change notification settings - Fork 358
Error when foreignObject contains HTML <img> tag #150
Comments
At the bottom of that error message should be a link that will let you open the URI in a new browser tab. In cases like this, the browser often supplies some helpful information not available in the error. |
Thanks for the advice, the link show this error: This page contains the following errors: "error on line 57 at column 79535: Opening and ending tag mismatch: img line 0 and a But the render below message show correctly the image. The column 79535 don't exist in line 57. Some other advice to debug this problem? |
See how different browsers handle that data URI; they might give different information. Possibly you have The library is only handling an error that the browser is generating, so I don't think there's anything I can do about it in the library's code. If you find the reason and it's a bug in the library, feel free to re-open this issue. |
My |
Thanks. I do see that a self-closing |
I don't think add xmlns attribute was the cause of the bug, but clone or appendChild function (or something else on the browser) delete the |
Looks like this is caused by how the browser returns So far I haven't thought of a simple fix for this behavior. It seems like it could require parsing the HTML and regenerating it such that self-closing tags are handled properly. I'm open to suggestions. |
I solve this problem by add
|
fixed: exupero#150
Dear all, Hope some body to fix it. |
In my project I load images to svg graph (like static google map, profile photos, etc...).
When this images are presents into the svg, saveSvgAsPng launch a error in the console:
There is a workaround to solve this? The images are insert into svg tag foreignObject.
The text was updated successfully, but these errors were encountered: