#2945 closed bug (worksforme)
Setting "z-index: auto" in IE6 gives a type mismatch error
Reported by: | adrian | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.4.3 |
Component: | css | Version: | 1.4.2 |
Keywords: | ie6, z-index | Cc: | |
Blocked by: | Blocking: |
Description
Html:
<a href="#">click me</a>
Javascript:
$('a').click( function () { $(this).css({'z-index':'auto'}); } );
Onclick the javascript will try to give z-index: auto but in IE6 i receive a type mismatch error (debugger sends me to line 1120 - jquery 1.2.6)
Setting a number instead of "auto" value will work proper and no errors in IE6.
Change History (7)
comment:1 Changed 15 years ago by
comment:3 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:4 Changed 13 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
There's also errors in IE7 and IE8 (see https://forum.jquery.com/topic/removing-reseting-z-index-with-jquery)
comment:5 Changed 13 years ago by
Component: | core → css |
---|
comment:6 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Setting CSS values that IE does not understand no longer throws errors.
comment:7 Changed 12 years ago by
Milestone: | 1.3 → 1.4.3 |
---|---|
Priority: | major → low |
Version: | 1.2.5 → 1.4.2 |
Fixed since 1.4.3 -> #5509 For a test case see http://bugs.jquery.com/ticket/6525#comment:4
Note: See
TracTickets for help on using
tickets.
shouldn't it be
without the quotes on z-index?