Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 10 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:

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 14 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 10 years ago by mohitevikrant@…

facing same problem any help

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

Replying to mohitevikrant@…:

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.