happy-dom
happy-dom copied to clipboard
Getting canvas.toDataURL is always undefined
Describe the bug When I manually create a canvas element, trying to call the toDataURL method is always undefined.
To Reproduce
- create
canvas
element - calling
canvas.toDataURL
method - result is
undefined
Expected behavior The method should be obtained correctly.
Screenshots
Device:
- OS: MacOS
- Browser Chrome
- Version 14.3.1
- Vite Version: 5.1.6