Side navigation
#8356 closed bug (duplicate)
Opened February 22, 2011 09:57PM UTC
Closed February 22, 2011 10:56PM UTC
Last modified February 22, 2011 10:56PM UTC
data property is infinty with the value:
Reported by: | Kirkov | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.next |
Component: | data | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If a element has a data property with the value "89e665923683", jQuery returns "Infinity" instead of the real value.
Using standard javascript getAttribute works fine.
See testcase on JS Fiddle:
This isn't a bug. As described in the .data() documentation for the HTML 5 data-* attributes, just use
.attr()
when you want the actual precise value. Check the ticket below for more information.