Skip to main content

Bug Tracker

Side navigation

#14047 closed bug (fixed)

Opened June 20, 2013 10:41AM UTC

Closed June 24, 2013 04:23PM UTC

Last modified July 02, 2013 02:53PM UTC

$.data() can't retrieve data stored by .data() when key is hyphenated

Reported by: mcchen110 Owned by: rwaldron
Priority: low Milestone: 2.0.3
Component: data Version: 2.0.2
Keywords: Cc:
Blocked by: Blocking:

$.data() can't retrieve data stored by .data() when key is hyphenated.

the result should be "merlin", not undefined.

Attachments (0)
Change History (11)

Changed June 20, 2013 02:08PM UTC by rwaldron comment:1

owner: → rwaldron
status: newassigned

Changed June 20, 2013 03:06PM UTC by rwaldron comment:2

resolution: → worksforme
status: assignedclosed

Changed June 20, 2013 11:24PM UTC by mcchen110 comment:3

Sorry, i create the jsfiddle with the wrong version,it won't work when using 2.0.2,please see ticket#14048

Changed June 20, 2013 11:52PM UTC by rwaldron comment:4

resolution: worksforme
status: closedreopened

Changed June 20, 2013 11:55PM UTC by rwaldron comment:5

status: reopenedassigned

patch to follow

Changed June 21, 2013 05:06PM UTC by rwaldron comment:6

#14057 is a duplicate of this ticket.

Changed June 21, 2013 07:47PM UTC by rwaldron comment:7

Changed June 24, 2013 04:23PM UTC by Rick Waldron comment:8

resolution: → fixed
status: assignedclosed

Fixes #14047 should not miss data-* w/ hyphenated property names

Signed-off-by: Rick Waldron <>

Changeset: 147726af127bce98b4e9dfe517d68f4a1ea0c1fc

Changed July 02, 2013 02:42PM UTC by dmethvin comment:9

milestone: None2.0.3

Changed July 02, 2013 02:53PM UTC by dmethvin comment:10

component: unfileddata

Changed July 02, 2013 02:53PM UTC by dmethvin comment:11

priority: undecidedlow