Bug Tracker

Ticket #843 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

Setting zIndex with css() as number throws error in IE7

Reported by: Jan Sorgalla Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1 Component: core
Version: 1.1 Keywords:
Cc: Needs:

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

Change History

Changed 2 years ago by john

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.1

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

Note: See TracTickets for help on using tickets.