Skip to main content

Bug Tracker

Side navigation

#8435 closed bug (duplicate)

Opened March 03, 2011 05:24PM UTC

Closed March 03, 2011 08:58PM UTC

Last modified March 03, 2011 08:58PM UTC

.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/

Attachments (0)
Change History (2)

Changed March 03, 2011 08:58PM UTC by addyosmani comment:1

resolution: → duplicate
status: newclosed

Changed March 03, 2011 08:58PM UTC by addyosmani comment:2

Duplicate of #7579.