Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13144 closed bug (notabug)

.data() API causing error with HTML5 custome attributes

Reported by: tanmayvartak27@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

we have updated jquery version from 1.5.2 to 1.8.3 and are facing some issues with data() api for HTML 5 custom attributes.

e.g. if we have <tr name="xyz" data-customeID="ABC">

now I am trying to access this as $(tr[name="xyz"]).data("customeID"); but it is throwing error as Type parse error. earlier it was working fine wqith 1.5.2 version.

Change History (1)

comment:1 Changed 10 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

data-customID is invalid. data-* attributes must be lower-camel-case

Note: See TracTickets for help on using tickets.