Skip to main content

Bug Tracker

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:

http://jsfiddle.net/kirkov/MBEP2/

Attachments (0)
Change History (2)

Changed February 22, 2011 10:56PM UTC by jitter comment:1

component: unfileddata
priority: undecidedhigh
resolution: → duplicate
status: newclosed

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.

Changed February 22, 2011 10:56PM UTC by jitter comment:2

Duplicate of #7579.