webpack-contrib / svg-inline-loader

Inline SVG loader with cleaning-up functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid close tag added for namespaced tags

Artur- opened this issue · comments

commented

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