Open kmcheung12 opened 1 year ago
👋 @kmcheung12
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.
Expected Behavior
Used in a web browser extension, can obtain rendered image of an html element
Current Behavior
For version 1.11.6 (inclusive) onward, it gives error
TypeError: e.toDataURL is not a function
on APIstoPng
,toSvg
andtoCanvas
. (Unverified on the rest of public APIs). Version 1.11.5 is working as intendedPossible Solution
The introduction of
isInstanceOfElement
in 1.11.6'scloneChildren
might be the cause. The comparison logic inisInstanceOfElement
might be not completely equivalent to older versionSteps To Reproduce
document.body
on example.comError Message & Stack Trace
```txt TypeError: e.toDataURL is not a function ```
Additional Context
Your Environment