Skip to content

Unable to Remove Custom Element - NotFoundError on removeChild #219

Open
@jdevil0313

Description

@jdevil0313

registered a custom element using customElements.define('web-test'). However, when I try to delete the <web-test></web-test> element from the HTML, I always get the following error:

Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

Is there an alternative method to remove a custom element that has been registered in HTML without encountering this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions