classes suck.
class
You can Reflect a function into the HTMLElement Constructor, but in the past you lose a bunch of performance off the top.
Reflect
HTMLElement
Is that still true?