tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

It not support xlink:href for svg? #465

Open ghost opened 8 months ago

ghost commented 8 months ago

Expected behavior

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

and svg will render

<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

Mashiirox commented 6 months ago

i have the some problem