svg-inline-loader icon indicating copy to clipboard operation
svg-inline-loader copied to clipboard

Invalid close tag added for namespaced tags

Open Artur- opened this issue 5 years ago • 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

Artur- avatar Aug 28 '19 12:08 Artur-