You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to generate an image from html containing an SVG with a use tag that references an external file, it doesn't work. And if the url contains a query-string for cache busting or other characters that is invalid in a querySelector it will cause a javascript crash.
Uncaught (in promise) DOMException: Document.querySelector: 'svg external-symbol.svg?cacheBust=123#icon' is not a valid selector
At https://unpkg.com/modern-screenshot:7
S https://unpkg.com/modern-screenshot:1
S https://unpkg.com/modern-screenshot:1
At https://unpkg.com/modern-screenshot:7
...etc
Your Environment
modern-screenshot: [e.g. 4.4.9]
Browser: [e.g. chrome 111.0.5563.64]
The text was updated successfully, but these errors were encountered:
Steps To Reproduce
When trying to generate an image from html containing an SVG with a use tag that references an external file, it doesn't work. And if the url contains a query-string for cache busting or other characters that is invalid in a querySelector it will cause a javascript crash.
Example:
Playground for https://codesandbox.io
Error Message & Stack Trace
...etc
Your Environment
The text was updated successfully, but these errors were encountered: