TypeError: 'set alt' called on an object that does not implement interface HTMLImageElement.
nicksayre opened this issue · comments
The project says "deeply clone arbitrary objects", so clone()
not working on HTML element objects seems like a bug.
To reproduce the TypeError:
let someImage = new Image();
let copiedImage = clone(someImage);
I expected a cloned HTMLImageElement, but console outputs:
TypeError: 'set alt' called on an object that does not implement interface HTMLImageElement.