Closed crowmagnumb closed 3 years ago
Hi @crowmagnumb
I never used the svg files with the DOCTYPE
header so didn't meet this issue before. I need to check how it is handled by the native iOS code. After that, I can tell how can I fix this or improve this logic.
In anycase, thank you for the issue. Issues help the plugins to become better.
Oh interesting, I found 2 links right off that indicate that it is generally accepted best practice to leave the DOCTYPE element off completely because it causes too many problems. :)
https://jwatt.org/svg/authoring/#doctype-declaration https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started
So I'm going to do just that for these SVGs as well. Good to know.
Added the references to the readme Thank you for your effort, @crowmagnumb!
I was developing an app in my primary dev environment android and had some SVGs that this tool smashingly delivered on! When I went to finally test this app out on iOS as well, the SVGs would not show. So I went to the task of eliminating parts of the SVG till I found the culprit and I hit upon it on my first try! I got the SVGs from a graphic designer and the DOCTYPE tag was as follows ...
I removed all the "extraneous" stuff so that it looked like this ...
... and it worked! I have been using these SVGs on the web for years and have never found anything that wouldn't display them till now. So not sure what you want to do with this info, maybe its easily fixed?, maybe it can be passed on?, maybe this is just here (to be closed) for someone else to stumble upon if they get the same problem.
Cheers, thanks so much for this plugin!!