Closed saravntbe closed 4 years ago
Getting DOMException: "Index or size is negative or greater than the allowed amount" in firefox
DOMException: "Index or size is negative or greater than the allowed amount"
2.6.0
similar Issue
Same error, same version and firefox 68
My issue was that the DOM node was not visible
So i add a check, with jQuery :
if($('#element').is(':visible')){ domtoimage.toPng( ... ) }
Use case: description, code
Getting DOMException: "Index or size is negative or greater than the allowed amount" in firefox
Actual behavior (stack traces, console logs etc)
DOMException: "Index or size is negative or greater than the allowed amount"
Library version
2.6.0
Browsers
similar Issue