Bug Tracker

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14047 closed bug (fixed)

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

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

Description

$.data() can't retrieve data stored by .data() when key is hyphenated. http://jsfiddle.net/ZwMsn/ the result should be "merlin", not undefined.

Change History (11)

comment:1 Changed 4 years ago by Rick Waldron

Owner: set to Rick Waldron
Status: newassigned

comment:2 Changed 4 years ago by Rick Waldron

Resolution: worksforme
Status: assignedclosed

comment:3 Changed 4 years ago by mcchen110

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

comment:4 Changed 4 years ago by Rick Waldron

Resolution: worksforme
Status: closedreopened

comment:5 Changed 4 years ago by Rick Waldron

Status: reopenedassigned

patch to follow

comment:6 Changed 4 years ago by Rick Waldron

#14057 is a duplicate of this ticket.

comment:8 Changed 4 years ago by Rick Waldron

Resolution: fixed
Status: assignedclosed

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

http://bugs.jquery.com/ticket/14047 Signed-off-by: Rick Waldron <waldron.rick@…>

Changeset: 147726af127bce98b4e9dfe517d68f4a1ea0c1fc

comment:9 Changed 4 years ago by dmethvin

Milestone: None2.0.3

comment:10 Changed 4 years ago by dmethvin

Component: unfileddata

comment:11 Changed 4 years ago by dmethvin

Priority: undecidedlow
Note: See TracTickets for help on using tickets.