Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 12 years ago

#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:


$('#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 john

Milestone: 1.1
Resolution: fixed
Status: newclosed

Fixed in SVN (this was due to the fact that we were appending 'px' to all numbers, which was incorrect).

comment:2 Changed 12 years ago by [email protected]

facing same problem any help

comment:3 in reply to:  2 Changed 12 years ago by timmywil

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.