WebComponent that extends HTMLButtonElement is not calling constructor() and connectedCallBack()

I’m trying to create a web component button but when I add it in HTML the constructor() function is never being called. class MyButton extends HTMLButtonElement { title = “”; constructor({ …

Difference between HTML template content and innerHTML

Say I have an HTML