Bug Tracker

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14047 closed bug (fixed)

$.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:

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 3 years ago by rwaldron

  • Owner set to rwaldron
  • Status changed from new to assigned

comment:2 Changed 3 years ago by rwaldron

  • Resolution set to worksforme
  • Status changed from assigned to closed

comment:3 Changed 3 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 3 years ago by rwaldron

  • Resolution worksforme deleted
  • Status changed from closed to reopened

comment:5 Changed 3 years ago by rwaldron

  • Status changed from reopened to assigned

patch to follow

comment:6 Changed 3 years ago by rwaldron

#14057 is a duplicate of this ticket.

comment:8 Changed 3 years ago by Rick Waldron

  • Resolution set to fixed
  • Status changed from assigned to closed

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 3 years ago by dmethvin

  • Milestone changed from None to 2.0.3

comment:10 Changed 3 years ago by dmethvin

  • Component changed from unfiled to data

comment:11 Changed 3 years ago by dmethvin

  • Priority changed from undecided to low
Note: See TracTickets for help on using tickets.