This repository was archived by the owner on Sep 18, 2023. It is now read-only.
This repository was archived by the owner on Sep 18, 2023. It is now read-only.
custom-elements/extends-correct-class
should check if the parent class extends HTMLElement
#32
Closed
Description
Currently, custom-elements/extends-correct-class
checks if the custom element extends HTMLElement. However, it triggers an error if the class I want to extend extends HTMLElement
.
Example:
class A extends HTMLElement {}
class B extends A {}
if (!window.customElements.get('custom-el')) {
window.customElements.define('custom-el', B);
}
Metadata
Metadata
Assignees
Labels
No labels