Landing pull request 581. Updates original patch by Orkel. Fixes #10006.

More Details:
 - https://github.com/jquery/jquery/pull/581
 - http://bugs.jquery.com/ticket/10006
This commit is contained in:
Rick Waldron
2011-11-21 13:25:46 -05:00
committed by timmywil
parent 65d3dc6955
commit 299bc655c9
2 changed files with 56 additions and 2 deletions

3
src/effects.js vendored
View File

@@ -38,7 +38,8 @@ jQuery.fn.extend({
// Set elements which have been overridden with display: none
// in a stylesheet to whatever the default browser style is
// for such an element
if ( display === "" && jQuery.css(elem, "display") === "none" ) {
if ( (display === "" && jQuery.css(elem, "display") === "none") ||
!jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
}
}