Skip to content

Commit 7e09619

Browse files
committed
CSS: Correct typo in the comment
1 parent a772418 commit 7e09619

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/css/defaultDisplay.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var iframe,
77
elemdisplay = {
88

99
// Support: Firefox
10-
// We have to pre-define this values for FF (#10227)
10+
// We have to pre-define these values for FF (#10227)
1111
HTML: "block",
1212
BODY: "block"
1313
};
@@ -49,7 +49,7 @@ function defaultDisplay( nodeName ) {
4949
.appendTo( doc.documentElement );
5050

5151
// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
52-
doc = iframe[ 0 ].contentDocument;
52+
doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
5353

5454
// Support: IE
5555
doc.write();
@@ -67,5 +67,4 @@ function defaultDisplay( nodeName ) {
6767
}
6868

6969
return defaultDisplay;
70-
7170
});

0 commit comments

Comments
 (0)