Skip to main content

Bug Tracker

Side navigation

#5893 closed bug (invalid)

Opened January 22, 2010 04:37AM UTC

Closed June 14, 2010 12:28AM UTC

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 January 22, 2010 04:44AM UTC.

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

Change History (1)

Changed June 14, 2010 12:28AM UTC by dmethvin comment:1

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.