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)
Change History (1)
Changed June 14, 2010 12:28AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
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.