Modify ↓
Ticket #11309 (closed bug: fixed)
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: |
Description
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 16 months 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
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.

Pull request