Ticket #8865 (closed bug: worksforme)
IE9 display:none in class bug
| Reported by: | bestrong89@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | effects | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In IE9, slideDown(), fadeIn() and I am assuming other functions, do not work if display:none is in the class. The following code works fine in FireFox, Chrome, Safari, and previous versions of IE, but does fails in IE9.
<style type="text/css">
.classname{
display:none;
border:1px solid #090;
padding:5px;
margin:5px;
}
</style>
<p style="cursor:pointer" onclick="$('#div1').slideDown()">Show div1</p>
<div id="div1" class="classname">This is div1</div>
<p style="cursor:pointer" onclick="$('#div2').slideDown()">Show div2</p>
<div id="div2" class="classname">This is div2</div>
Thanks, Ben
Change History
comment:2 follow-up: ↓ 3 Changed 2 years ago by timmywil
- Priority changed from undecided to low
- Resolution set to invalid
- Status changed from new to closed
- Component changed from unfiled to effects
jsfiddle is a standard environment. In fact, you can put the code on it's own page by adding "/show" to the end of the url. If you can reproduce for us on jsfiddle, we can take a look.
comment:4 Changed 2 years ago by timmywil
- Status changed from closed to reopened
- Resolution invalid deleted
@bestrong89 http://jsfiddle.net/timmywil/YL8gC/1/ Does this also fail? If so, it may be a problem with inline event handlers. I don't have a way to test IE9 yet.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Update: I forgot to post this, but I tried this in jsFiddle and the code functions properly, but does NOT work in a standard environment.