#843 closed bug (fixed)
Setting zIndex with css() as number throws error in IE7
Reported by: | Jan Sorgalla | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1 |
Component: | core | Version: | 1.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('#div1').css('zIndex', 2);
(typeof 2 is number) throws an error in IE7 while
$('#div1').css('zIndex', '2');
(typeof 2 is string) does work.
The error message is "Type conflict" (or something similar, my IE is german), line 544 in jQuery which is around
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();}); if ( value != undefined ) elem[name] = value; return elem[name];
Change History (3)
comment:1 Changed 16 years ago by
Milestone: | → 1.1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 12 years ago by
Replying to [email protected]…:
facing same problem any help
We are not seeing this problem in IE7. Please provide a test case on jsfiddle.net to demonstrate your issue.
Note: See
TracTickets for help on using
tickets.
Fixed in SVN (this was due to the fact that we were appending 'px' to all numbers, which was incorrect).