Then the answer is you can't do it by just subclas...
# javascript
k
Then the answer is you can't do it by just subclassing HTMLElement, like in ES6. You should call customElements.define method for this purpose