Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5893 closed bug (invalid)

jQuery1.4 bug---addClass()

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

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 (1)

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

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by argb

Attachment: dial.7z added

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

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.