So suppose I have this tag
<a href=""></a>
and then I make up some non-standard attribute
<a lol="haha" href=""></a>
If you ask why, well so that I can conveniently use that made up attribute in my javascript…
My question is…is there any possible negative repercussion of doing this….is there any good reason why I shouldn’t be doing this?
Browsers will almost universally handle custom attributes. And when I say universally, I mean even IE6.
Of course the standard way to do that is with:
Which, since you’ve tagged with jQuery, I’ll mention can be read (even in IE6) with