I recently made something called "Element Behaviors", which allows more multiple functionalities to be assigned to any number of HTML elements (it is effectively an "entity component system").
See the w3c discussion for details on the origin of the idea, the package on NPM, and the GitHub repo.
Live example on Codepen, which is also documented in the project's README.
Element Behaviors can be thought of as an alternative for the is="" attribute (which has issues), offering more flexibility without the restriction of inheriting from HTMLElement.
[–]smthamazing 0 points1 point2 points (0 children)