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

domtoImage converts only first child element when cloneNode(true) is used #169

Open
surbhi-software opened this issue Apr 15, 2024 · 0 comments

Comments

@surbhi-software
Copy link

Hello,

I am trying to convert the complex html page to PNG and SVG. I want to modify few elements or may be add few more to the cloned element and then convert the whole complex element. Now the problem is coming when I use cloneNode(true) and try to pass the variable to domtoimage.toPNG(container). The cloneNode is only sending the first child and not the whole container. Is this a bug or am I missing anything here?

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