Skip to main content

Bug Tracker

Side navigation

#13144 closed bug (notabug)

Opened January 02, 2013 02:18PM UTC

Closed January 02, 2013 03:07PM UTC

.data() API causing error with HTML5 custome attributes

Reported by: tanmayvartak27@gmail.com 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.

Attachments (0)
Change History (1)

Changed January 02, 2013 03:07PM UTC by rwaldron comment:1

resolution: → notabug
status: newclosed

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