What’s wrong with adding properties to DOM Element objects?
Is there a problem adding properties (or methods) directly to DOM Element Objects? Potentially. There is no web standard that says you can add arbitrary properties to DOM nodes. They are ‘host objects’ with browser-specific implementations, not ‘native JavaScript objects’ which according to ECMA-262 you can do what you like with. Other host objects will … Read more