Bug Tracker

Modify

Ticket #5893 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

jQuery1.4 bug---addClass()

Reported by: argb Owned by:
Priority: major Milestone: 1.4.1
Component: unfiled Version: 1.4
Keywords: Cc:
Blocking: Blocked by:

Description

$("span").addClass(function(index,class){

return index + "-wg-" + class;

}); here "class" will be error on ie $("span").addClass(function(index,value){

return index + "-wg-" + value;

}); if the param name is not "class" it will be right and not error on ie any version

Attachments

dial.7z Download (42.1 KB) - added by argb 3 years ago.
the .zip file,inlude another problem css.('width') is "auto",i need the real number value,not "auto"

Change History

Changed 3 years ago by argb

the .zip file,inlude another problem css.('width') is "auto",i need the real number value,not "auto"

comment:1 Changed 3 years ago by dmethvin

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

I can't open the zip file, it's not a standard zip

However, a variable with the name "class" is not allowed in Javascript because it's a reserved word.

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.