Skip to main content

Bug Tracker

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

http://jsfiddle.net/OhCaN/F3cRJ/1/

Attachments (0)
Change History (2)

Changed July 10, 2012 08:59PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Changed July 10, 2012 08:59PM UTC by dmethvin comment:2

Duplicate of #7579.