#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 10 years ago by
Owner: | set to Rick Waldron |
---|---|
Status: | new → assigned |
comment:2 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
comment:3 Changed 10 years ago by
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 10 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:8 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → 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 10 years ago by
Milestone: | None → 2.0.3 |
---|
comment:10 Changed 10 years ago by
Component: | unfiled → data |
---|
comment:11 Changed 10 years ago by
Priority: | undecided → low |
---|
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/rwaldron/vSRmb/