Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9624 closed bug (fixed)

class value passed to value functions in class methods when no class is present switched from empty string to undefined

Reported by: timmywil Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:


This was changed in 1.6 with the attr rewrite.

Compare to prior versions of jQuery: http://jsfiddle.net/timmywil/KHnDu/

When no class is present, empty string should be passed to value functions. This wasn't caught in the tests in 1.6 because it was just comparing what was returned by attr with what was returned by attr.

Change History (1)

comment:1 Changed 12 years ago by timmywil

Component: unfiledattributes
Priority: undecidedlow
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.