News for hackers. Stuff that matters.
Re:Show HN: progre(c)ss by saraid216 on Friday February 07, 2014 @12:30PM (#7197468)
Guessing, but it's probably because $.fn.data is meant as a storage mechanism, not a DOM manipulation mechanism. Changing the DOM attribute would make it just that tiny bit more expensive and you can already use $.fn.attr to do the same thing.
Re:Show HN: progre(c)ss by crescentfresh on Friday February 07, 2014 @01:45PM (#7197936)
$.data is tightly bound to the DOM however - much of jQuery is, in order to reduce developer friction - so this is just more jQuery api asymmetry IMO.

To your point, performance is noble goal. Having some asymmetry is no big deal.

Re:Show HN: progre(c)ss by codez on Friday February 07, 2014 @12:44PM (#7197560)
Thanks for this saraid216 :)

It's always good to know things like this.

Thanks again!