It not support xlink:href for svg?

Author: ghostCreated Oct 16, 2023Updated Sep 16, 2025

Expected behavior

in Vite project, i use plugin vite-plugin-svg-icons to handle svg and render,

and svg will render

xml
<svg >
  <use xlink:href="#icon-3d"></use>
</svg>

#icon-3d has mounted in body with Symbol

dom-to-image didn't handle this situation

Actual behavior (stack traces, console logs etc)

Library version

"dom-to-image": "^2.6.0", "vite-plugin-svg-icons": "^2.0.1"

Browsers

  • [ ] Chrome 117.0.5938.134