-
Notifications
You must be signed in to change notification settings - Fork 55
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 render svg with image on 2.4.1
#257
Comments
This looks like the same issue as #254. |
@yisibl Actually, it rendered correctly before i upgrade to |
I have a similar issue. This is the svg code <?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
>
<image x="0" y="0" width="140" height="48" xlink:href="https://touchplan.io/wp-content/uploads/2021/07/Demo-Company-Logo.jpeg" />
</svg>
This is the logging info
|
@dkyeremeh can you try if #258 fixes your problem? |
@dkyeremeh I confirm that your case can be rendered. Load the http image you need to refer to example/image-url.js |
The reason why we cannot simply remove one of href, please check this case |
@Jackie1210 |
I believe you can use |
Can you show me the spec's link cuz i haven't found any proof. |
@Jackie1210 https://www.w3.org/TR/SVG/embedded.html#ImageElementHrefAttribute
|
I will try it out. On the other hand I would like to find out if there's a reason why images are not auto-loaded? |
It works. Thanks |
Thanks for your feedback, but use case I gave does work in most browser, so it just confuse me. 😢 |
@dkyeremeh because fetching network resource is always not safe, so we leave it as a user-motivated action instead of hiding this inside the library |
@Jackie1210 again, I think you can use |
Follow up the background with #256
This is second issue:
The text was updated successfully, but these errors were encountered: