Bug Tracker

Modify

Ticket #8042 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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:

  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/

Change History

comment:1 Changed 2 years ago by jitter

  • Priority changed from undecided to high
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to data
  • Milestone changed from 1.next to 1.5

comment:2 Changed 2 years ago by jitter

Duplicate of #7579.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.