Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 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: rwaldron
Priority: high Milestone: 1.6.3
Component: data Version: 1.6
Keywords: Cc:
Blocked by: Blocking:


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

  • Component changed from unfiled to data
  • Owner set to rwaldron
  • Priority changed from undecided to high
  • Status changed from new to assigned


comment:2 Changed 6 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 rwaldron

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

comment:5 Changed 6 years ago by Dave Methvin

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

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 changed from 1.next to 1.6.3
Note: See TracTickets for help on using tickets.