Is it good practice to set non-standard html attributes?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-01-22T14:39:02Z Indexed on 2010/03/17 9:41 UTC
Read the original article Hit count: 259

Filed under:
|

I find it very convenient to set arbitary attributes like:

<a stackoverflowId="123">..

And in JavaScript:

var soId = $selectofA.attr('stackoverflowId'); //jQuery

Is it a good practice at all? I've never had a problem with this yet.

© Stack Overflow or respective owner

Related posts about html

Related posts about JavaScript