Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8435 closed bug (duplicate)

.data() removes leading zeros from data-xxx attribute values

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

When storing data attribute values in the DOM and referencing them via .data(), any leading zeros are removed from the data attribute value.

http://jsfiddle.net/5Vy3u/2/

Change History (2)

comment:1 Changed 7 years ago by addyosmani

Resolution: duplicate
Status: newclosed

comment:2 Changed 7 years ago by addyosmani

Duplicate of #7579.

Note: See TracTickets for help on using tickets.