Skip to content

Change prototype of element to the custom element when upgraded #2331

Description

@capricorn86

When a custom element is not yet defined, it becomes an HTMLElement. When the custom element gets defined, the custom element is upgraded.

The current solution is to replace the element with the custom element and copy all of its properties, but according to spec the reference needs to be kept. We therefore need to change the prototype of the original HTMLElement to become the custom element.

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

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions