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: