svg-inline-loader
svg-inline-loader copied to clipboard
Invalid close tag added for namespaced tags
An SVG produced by Inkscape contains
<svg something>
...
<sodipodi:namedview something />
<g actualsvg...></g>
</svg>
This is parsed as
<svg something>
<sodipodi:namedview something></sodipodi>
<g actualsvg...></g>
</svg>
The closing tag is wrong which can cause various problems down the line, like the <g>
tag will be added inside the <sodipodi:namedview>
tag and nothing will be rendered