Is it possible to extend the prototype of a specific tag in JavaScript?

145 Views Asked by At

Putting aside debates over extending prototypes, I would like to know if it's possible to extend the prototype of a specific tag. Preferably cross-browser.

For example: I know you can extend all tags by using "HTMLElement.prototype" or just the <video> tags by using "HTMLVideoElement.prototype", but what about unknown tags like <track>?

0

There are 0 best solutions below