News for hackers. Stuff that matters.
Re:Don't use the jQuery .data() method. Use .attr() instead. by lang on Sunday December 18, 2011 @05:34PM (#3367714)
I wasn't aware of this. This looks like a bad design choice indeed. I hate when libraries convert stuff implicitly for you. html5's localStorage has a similar problem. Only, it converts whatever you are trying to store into a string. Would be better if it accepted only strings and threw an error if you tried to store something else, imho.
Re:Don't use the jQuery .data() method. Use .attr() instead. by stefankendall on Sunday December 18, 2011 @05:52PM (#3367765)
Agreed that localStorage should throw errors. This is particularly fun:

localStorage['a'] = {a:1}; localStorage['a'] -> "[object Object]"

Crap.