Side navigation
#12052 closed bug (duplicate)
Opened July 10, 2012 08:43PM UTC
Closed July 10, 2012 08:59PM UTC
Last modified July 10, 2012 08:59PM UTC
.data() fails when retrieving large numbers
Reported by: | iorlandoni@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Having a "data-something" attribute on an element containing a large number, trying to fetch it with .data() gives the original number +- 1. Same procedure using .attr('data-something') fetches the correct number.
Tested in :
Chrome 22 (Canary)
Chrome 20
Firefox 13