Bug Tracker

Ticket #11309 (closed bug: fixed)

Opened 4 years ago

Last modified 4 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 4 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 4 years ago by dmethvin

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone changed from None to 1.7.2
Note: See TracTickets for help on using tickets.