tigt / mini-svg-data-uri

Small, efficient encoding of SVG data URIs for CSS, HTML, etc.
https://npm.runkit.com/mini-svg-data-uri
MIT License
309 stars 16 forks source link

Why single quotes? #13

Closed shellscape closed 4 years ago

shellscape commented 4 years ago

I was hoping to see the "why" documented in the readme - Why are double quotes replaced by single quotes? It's causing some headache in our implementation and I'd like to be able to speak on why that choice was made.

sylvaindumont commented 4 years ago

https://codepen.io/tigt/post/optimizing-svgs-in-data-uris#its-all-in-the-quotes-1

shellscape commented 4 years ago

thanks!

Yaffle commented 4 years ago

IE 11 does not support unencoded double quotes. It is possible to use single quotes for CSS strings, so you may use double quotes.