Open snelsi opened 1 year ago
👋 @snelsi
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
When processing svg elements with
<use href="..." />
, they will be ommited in the resulted image.This library only handles
xlink:href
param, which is considered deprecated:Expected Behavior
Parse both
href
andxlink:href
params.Current Behavior
<use href="..." />
is ignoredPossible Solution
Update this selector to handle both cases: https://github.com/bubkoo/html-to-image/blob/b751cbf212ccc7909077bc105b0630f9c845389a/src/clone-node.ts#L196