Bug Tracker

Modify

Ticket #11277 (closed bug: invalid)

Opened 16 months ago

Last modified 16 months ago

.attr(undefined)

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

Calling .attr() with undefined throws an error on line 2474 Uncaught TypeError: Cannot call method 'toLowerCase' of undefined but should just return undefined.

Change History

comment:1 Changed 16 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

should just return undefined.

Says who? When called with one arg it should be the attribute name as a string, and undefined is not a string. We threw an error so you could find the bug! You're welcome.

 http://api.jquery.com/attr/

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.