Bug Tracker

Modify

Ticket #9624 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

Description

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

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to fixed
  • Status changed from new to closed
  • Component changed from unfiled to attributes

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.