Skip to main content

Bug Tracker

Side navigation

#8042 closed bug (duplicate)

Opened January 24, 2011 11:11PM UTC

Closed January 24, 2011 11:30PM UTC

Last modified January 24, 2011 11:30PM UTC

jQuery.data() should have better behavior when int overflows

Reported by: embrangler Owned by:
Priority: high Milestone: 1.5
Component: data Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

When calling jQuery.data() on DOM attrs containing large integers, the result could be:

1. a string (seems most convenient)

2. undefined, NaN, etc.

At the very least, it shouldn't return something different from the string attr itself and pretend that it's returning what you expect.

Example:

http://jsfiddle.net/GnJJS/1/

Attachments (0)
Change History (2)

Changed January 24, 2011 11:30PM UTC by jitter comment:1

component: unfileddata
milestone: 1.next1.5
priority: undecidedhigh
resolution: → duplicate
status: newclosed

Changed January 24, 2011 11:30PM UTC by jitter comment:2

Duplicate of #7579.