News for hackers. Stuff that matters.
Re:Don't use the jQuery .data() method. Use .attr() instead. by voidfiles on Sunday December 18, 2011 @05:46PM (#3367750)
So, first the article talks about strings, but then does all of it's examples using floats. We all make mistakes. Hopefully we can help with that.

The root issue here is that the developer assumed how somethig worked, and didnt bother to learn how it actually worked.

I actually do have issues with data attribute for this exact reason, but that is no excuse for not looking up how it actually works.

Re:Don't use the jQuery .data() method. Use .attr() instead. by stickfigure on Sunday December 18, 2011 @10:04PM (#3368293)
The problem is that the way it works is not actually useful. When I have user input data of 1.400, I need this string preserved as 1.400. I can't have jQuery mangling the data just because (to it) the string happens to look like a float.