Open nicoburns opened 1 week ago
Are you sure this is the correct behaviour? Browsers would not open such files. Meanwhile Inkscape, librsvg and QtSvg are fine. And I'm not sure how easy it would be to implement this. Adding an option is definitely not the way. It should be handled automatically.
Overall, it's a super rare edge case we can simply ignore.
usvg
will currently fail to parse otherwise valid SVGs is thexmlns
attribute is missing. This is the correct behaviour for standalone SVG files, but not correct for "inline SVGs" embedded within HTML documents.As such, I would like to propose that an option is added to usvg::Options that determines whether the namespace should check is enabled.
I would be able to create a PR for this.