Bug Tracker

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#9318 closed bug (fixed)

Calling data on a jQuery object with HTML5 data attributes has strange behaviour with if attribute names contain numbers.

Reported by: oliver.nightingale1@… Owned by: Rick Waldron
Priority: high Milestone: 1.6.3
Component: data Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

Description

test case - http://jsfiddle.net/BRv6U/1/

If any of the data attributes have numbers separated by hyphens they are missing from the returned object of data attributes.

Have been able to reproduce this bug in Chrome 13, FireFox 4. Safari 5.0.5 on OS X 10.6.7

Change History (6)

comment:1 Changed 7 years ago by Rick Waldron

Component: unfileddata
Owner: set to Rick Waldron
Priority: undecidedhigh
Status: newassigned

Confirmed.

comment:2 Changed 7 years ago by timmywil

#9487 is a duplicate of this ticket.

comment:3 Changed 6 years ago by john

Confirmed in bug triage.

comment:4 Changed 6 years ago by Rick Waldron

Further reduced test case: http://jsfiddle.net/rwaldron/MZycX/

comment:5 Changed 6 years ago by Dave Methvin

Resolution: fixed
Status: assignedclosed

Merge pull request #456 from rwldrn/9318

Improves support for arbitrary numbers in data keys. Fixes #9318

Changeset: b22c9046529852c7ce567df13397849e11e2b9cc

comment:6 Changed 6 years ago by dmethvin

Milestone: 1.next1.6.3
Note: See TracTickets for help on using tickets.