happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

Getting canvas.toDataURL is always undefined

Open XiaoDaiGua-Ray opened this issue 11 months ago • 0 comments

Describe the bug When I manually create a canvas element, trying to call the toDataURL method is always undefined.

To Reproduce

  1. create canvas element
  2. calling canvas.toDataURL method
  3. result is undefined

Expected behavior The method should be obtained correctly.

Screenshots image

Device:

  • OS: MacOS
  • Browser Chrome
  • Version 14.3.1
  • Vite Version: 5.1.6

XiaoDaiGua-Ray avatar Mar 22 '24 09:03 XiaoDaiGua-Ray