Closed chrisregnier closed 2 years ago
The final svg+xml data uri looks something like this "'data:image/svg+xml;charset=utf8,<svg ...> ... '" which causes Edge to throw an error during image loading due to some of the characters like '<' and '>'.
Simple fix is to wrap the uri with encodeURI.
More detail can be found here https://codepen.io/tigt/post/optimizing-svgs-in-data-uris however this fix doesn't do any of the extra work to convert other characters, which I don't think is really necessary here.
Hi, unfortunately this one causes a whole lot of tests to fail
The final svg+xml data uri looks something like this "'data:image/svg+xml;charset=utf8,<svg ...> ... '" which causes Edge to throw an error during image loading due to some of the characters like '<' and '>'.
Simple fix is to wrap the uri with encodeURI.
More detail can be found here https://codepen.io/tigt/post/optimizing-svgs-in-data-uris however this fix doesn't do any of the extra work to convert other characters, which I don't think is really necessary here.