Bug Tracker

Modify

Ticket #8865 (closed bug: worksforme)

Opened 2 years ago

Last modified 15 months ago

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:1 Changed 2 years ago by bestrong89@…

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.

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:3 in reply to: ↑ 2 Changed 2 years ago by anonymous

reproduced on jsFiddle

works in every browser except IE9

 http://jsfiddle.net/YL8gC/show/

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.

comment:5 Changed 2 years ago by ajpiano

This is working fine for me in IE9, both jsFiddles.

comment:6 Changed 2 years ago by timmywil

  • Status changed from reopened to closed
  • Resolution set to worksforme

With DaveMethvin and ajpiano confirming the first fiddle works in IE9, closing. Be sure that you are not testing with a beta version of IE9 as well.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.