Skip to content

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

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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