diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-11-21 13:25:46 -0500 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-11-21 13:25:46 -0500 |
commit | 299bc655c90cc89652417675f976ae1bfefc4d8b (patch) | |
tree | 551ee4bad1259efdcb4c1e87173f475e061f4027 /src/effects.js | |
parent | 65d3dc695540719d0a72ad0c790532aceea39c04 (diff) | |
download | jquery-299bc655c90cc89652417675f976ae1bfefc4d8b.tar.gz jquery-299bc655c90cc89652417675f976ae1bfefc4d8b.zip |
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
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index 5c6a20bbb..2dad23eba 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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) ); } } |