Bug Tracker


Ticket #11309 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

hexadecimal-formatted data-* attributes parsed incorrectly

Reported by: gibson042 Owned by: sindresorhus
Priority: low Milestone: 1.7.2
Component: data Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:


Found while debating #11297.


Values matching /^0x[0-9a-f]+$/i pass jQuery.isNumeric, but are returned from parseFloat as 0, resulting in incorrect element data.

Change History

comment:1 Changed 2 years ago by sindresorhus

  • Owner set to sindresorhus
  • Priority changed from undecided to low
  • Status changed from new to assigned
  • Component changed from unfiled to data

comment:2 Changed 2 years ago by dmethvin

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone changed from None to 1.7.2

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.