Skip to main content

Bug Tracker

Side navigation

#9318 closed bug (fixed)

Opened May 17, 2011 05:21PM UTC

Closed August 05, 2011 02:45PM UTC

Last modified March 17, 2012 08:54PM UTC

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

Reported by: oliver.nightingale1@gmail.com Owned by: rwaldron
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

Attachments (0)
Change History (6)

Changed May 17, 2011 06:31PM UTC by rwaldron comment:1

component: unfileddata
owner: → rwaldron
priority: undecidedhigh
status: newassigned

Confirmed.

Changed June 02, 2011 01:46PM UTC by timmywil comment:2

#9487 is a duplicate of this ticket.

Changed July 12, 2011 06:57PM UTC by john comment:3

Confirmed in bug triage.

Changed August 05, 2011 02:07PM UTC by rwaldron comment:4

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

Changed August 05, 2011 02:45PM UTC by Dave Methvin comment:5

resolution: → fixed
status: assignedclosed

Merge pull request #456 from rwldrn/9318

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

Changeset: b22c9046529852c7ce567df13397849e11e2b9cc

Changed August 26, 2011 02:40AM UTC by dmethvin comment:6

milestone: 1.next1.6.3