Skip to main content

Bug Tracker

Side navigation

#843 closed bug (fixed)

Opened January 17, 2007 09:03PM UTC

Closed January 20, 2007 04:22AM UTC

Last modified March 25, 2011 02:13PM UTC

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];
Attachments (0)
Change History (3)

Changed January 20, 2007 04:22AM UTC by john comment:1

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).

Changed March 25, 2011 12:01PM UTC by mohitevikrant@gmail.com comment:2

facing same problem any help

Changed March 25, 2011 02:13PM UTC by timmywil comment:3

Replying to [comment:2 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.