Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe document-cloner does not work properly? #3171

Open
2 tasks done
salvatorericcardi opened this issue May 3, 2024 · 0 comments
Open
2 tasks done

Maybe document-cloner does not work properly? #3171

salvatorericcardi opened this issue May 3, 2024 · 0 comments

Comments

@salvatorericcardi
Copy link

salvatorericcardi commented May 3, 2024

  • You are using the latest version
  • You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

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:

  • html2canvas version tested with: 1.4.1 minified and hosted by cdnjs
  • Browser & version: chrome 124.0.6367.119 (official release) (64 bit)
  • Operating system: windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant