Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14280 closed bug (notabug)

Data attribute set by .attr method is not correctly retrieved by .data method

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version:
Keywords: Cc:
Blocked by: Blocking:


Setting a data attribute with .attr in between .data calls does not update the value returned by the second .data call : http://jsfiddle.net/9yPhS/

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: notabug
Status: newclosed


The data- attributes are pulled in the first time the data property is accessed and then are no longer accessed or mutated (all data values are then stored internally in jQuery).


Note: See TracTickets for help on using tickets.