aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-12-22 17:26:01 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-12-22 17:26:01 +0300
commite0d8fc9232c3ade0059590cba3be020649b90f1b (patch)
treef3288166d7d4557d3067ee0014028e29e5b562e4
parent885a0ccdd3dff21dc94d9cc905c326f0d0454838 (diff)
downloadjquery-e0d8fc9232c3ade0059590cba3be020649b90f1b.tar.gz
jquery-e0d8fc9232c3ade0059590cba3be020649b90f1b.zip
Revert "CSS: simplify "defaultDisplay" module"
This reverts commit d9d8906cfdd05a6163b0a6791f7ab4433951eacd.
-rw-r--r--src/css/defaultDisplay.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/defaultDisplay.js b/src/css/defaultDisplay.js
index 3771be6d1..b1fa7dae5 100644
--- a/src/css/defaultDisplay.js
+++ b/src/css/defaultDisplay.js
@@ -50,7 +50,7 @@ function defaultDisplay( nodeName ) {
.appendTo( doc.documentElement );
// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = iframe[ 0 ].contentDocument;
+ doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
// Support: IE
doc.write();