webpack-contrib/svg-inline-loader

Invalid close tag added for namespaced tags

Artur- opened this issue · 0 comments

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