Is it safe to do htmlElement.someProp = 'whatever including objects and other elements'
or could it lead to unexpected behaviour in different browsers?
Asked
Active
Viewed 26 times
0

ituy
- 181
- 3
- 10
-
1no, it's not safe, there's a voodoo curse on everyone who does that – Mister Jojo Jul 02 '19 at 17:26
-
You have to use data-attribute for such situationsTest– Janiis Jul 02 '19 at 17:32
-
how about the specification as an answer? – ituy Jul 02 '19 at 17:39