We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a772418 commit 7e09619Copy full SHA for 7e09619
src/css/defaultDisplay.js
@@ -7,7 +7,7 @@ var iframe,
7
elemdisplay = {
8
9
// Support: Firefox
10
- // We have to pre-define this values for FF (#10227)
+ // We have to pre-define these values for FF (#10227)
11
HTML: "block",
12
BODY: "block"
13
};
@@ -49,7 +49,7 @@ function defaultDisplay( nodeName ) {
49
.appendTo( doc.documentElement );
50
51
// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
52
- doc = iframe[ 0 ].contentDocument;
+ doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
53
54
// Support: IE
55
doc.write();
@@ -67,5 +67,4 @@ function defaultDisplay( nodeName ) {
67
}
68
69
return defaultDisplay;
70
-
71
});
0 commit comments