Skip to content

TypeError: 'set alt' called on an object that does not implement interface HTMLImageElement. #103

@nicksayre

Description

@nicksayre

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions