Opened 10 years ago
Closed 10 years ago
#13144 closed bug (notabug)
.data() API causing error with HTML5 custome attributes
Reported by: | 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.
Note: See
TracTickets for help on using
tickets.
data-customID is invalid. data-* attributes must be lower-camel-case