Modify ↓
Ticket #8042 (closed bug: duplicate)
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: | ||
| Blocking: | Blocked by: |
Description
When calling jQuery.data() on DOM attrs containing large integers, the result could be:
- a string (seems most convenient)
- 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/
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
