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

Custom elements ( web components ) get rendered again when passed as content to html2canvas #1726

Closed
2 tasks done
rcsatheeshkumar opened this issue Dec 18, 2018 · 3 comments · Fixed by #2785
Closed
2 tasks done

Comments

@rcsatheeshkumar
Copy link

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

Bug reports:

When the content passed to html2canvas contains a custom element it is getting rendered again in the actual DOM itself. It could be visually seen getting re-rendered. Please find the sample in the below jsfiddle. How could I stop it from being re-rendered?

jsfiddle.

Specifications:

  • html2canvas version tested with: 1.0.0-alpha 12
  • Browser & version: Chrome 71.0.3578.98
  • Operating system: Mac OS Mojave
@rcsatheeshkumar
Copy link
Author

@niklasvh Please give your opinion on this issue. Your help is highly appreciated.

@iyangsheng
Copy link

Has it been solved? I have the same problem.

@rajsite
Copy link

rajsite commented Dec 15, 2021

I'm also seeing similar types of issues with custom elements. The same problems don't seem to happen with html-to-image but unfortunately html-to-image does not support Safari because it relies on foreignObject.

edit: using html2canvas 1.3.3

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

Successfully merging a pull request may close this issue.

3 participants