Skip to main content

Bug Tracker

Side navigation

#11309 closed bug (fixed)

Opened February 08, 2012 04:34PM UTC

Closed February 10, 2012 01:58AM UTC

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:
Blocked by: Blocking:
Description

Found while debating #11297.

http://jsfiddle.net/EwTqJ/

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

Attachments (0)
Change History (2)

Changed February 09, 2012 04:25PM UTC by sindresorhus comment:1

component: unfileddata
owner: → sindresorhus
priority: undecidedlow
status: newassigned

Changed February 10, 2012 01:58AM UTC by dmethvin comment:2

milestone: None1.7.2
resolution: → fixed
status: assignedclosed