Right now I'm doing various invalid things like:
<span time="50" distance="60"></span>
And then grabbing that info with:
var time = $('span').attr('time');
var distance = $('span').attr('distance');
And then doing various things with the time and distance in jS/jQuery.
To me, this feels wrong. It's insemantic, but I really can't care less about that (actual data is not time and distance but something quite worthless and page specific, nothing that SEs are interested in). But is there some other reason why this is a bad idea?
I know there's a metadata plugin which does something similar in a more 'official' way, and I thought about using it. But this .attr stuff is suitable for my needs and I don't see any compelling reason to use the plugin.
So basically, is this a decent pattern to use, and if not, why not, and should I be interested in the metadata plugin.
Thanks.