Modify ↓
Ticket #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: | ||
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed: 96501d38a935187461d45c40f17f8327b2e7cd91