Skip to main content

Bug Tracker

Side navigation

#13465 closed bug (notabug)

Opened February 18, 2013 12:38AM UTC

Closed February 18, 2013 01:18AM UTC

Firefox and IE reverse the order in which jQuery data- attributes are returned

Reported by: matt@mattstow.com Owned by: matt@mattstow.com
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:
Description

When accessing data attribues using jQuery.data(), the order of them is reversed in Firefox and IE :(

See this pen for an example: http://codepen.io/stowball/pen/yGxrH

Attachments (0)
Change History (3)

Changed February 18, 2013 01:05AM UTC by dmethvin comment:1

owner: → matt@mattstow.com
status: newpending

What code would depend on this?

Changed February 18, 2013 01:07AM UTC by matt@mattstow.com comment:2

status: pendingnew

I was adding data attributes containing images to cycle in a carousel, which needed to be in a certain order.

Changed February 18, 2013 01:18AM UTC by dmethvin comment:3

resolution: → notabug
status: newclosed

You'd be better off determining a way to do that yourself.