Skip to main content

Bug Tracker

Side navigation

#8865 closed bug (worksforme)

Opened April 13, 2011 07:00PM UTC

Closed April 13, 2011 08:17PM UTC

Last modified March 09, 2012 02:37PM UTC

IE9 display:none in class bug

Reported by: bestrong89@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: effects Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
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

Attachments (0)
Change History (6)

Changed April 13, 2011 07:06PM UTC by bestrong89@gmail.com comment:1

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.

Changed April 13, 2011 07:25PM UTC by timmywil comment:2

component: unfiledeffects
priority: undecidedlow
resolution: → invalid
status: newclosed

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.

Changed April 13, 2011 07:32PM UTC by anonymous comment:3

reproduced on jsFiddle

works in every browser except IE9

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

Changed April 13, 2011 07:43PM UTC by timmywil comment:4

resolution: invalid
status: closedreopened

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

Changed April 13, 2011 08:05PM UTC by ajpiano comment:5

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

Changed April 13, 2011 08:17PM UTC by timmywil comment:6

resolution: → worksforme
status: reopenedclosed

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.