Opened 13 years ago
Closed 13 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)
Change History (2)
Changed 13 years ago by
comment:1 Changed 13 years ago by
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.
Note: See
TracTickets for help on using
tickets.
the .zip file,inlude another problem css.('width') is "auto",i need the real number value,not "auto"