niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.09k stars 4.75k forks source link

Maybe document-cloner does not work properly? #3171

Open salvatorericcardi opened 2 months ago

salvatorericcardi commented 2 months ago

Bug reports:

General report I have a div with inner images and I want to download it as a unique image after button click. It works but it seems like return me the last-n generated image and not the last one. You can test here and open the dev console to understand how I use html2canvas.

Testing code Click on random button then download the image. It will return you an image but not the latest generated. I'm not sure but maybe do the same thing if you change background or other properties manually without random generation and click. You will receive not the last image generated but the last-n.

In my opinion, there is something wrong with document-cloner that seems not going deeper more than one node (is it possible?). If you all need of other informations ask me, I'll be happy to respond.

Specifications: