Skip to content

Commit 1f19904

Browse files
committed
If the real body has loaded, try to use it
1 parent afe748c commit 1f19904

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/support.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ jQuery.support = (function() {
247247
// Determine fixed-position support early
248248
offsetSupport = (function( body, container ) {
249249

250+
// If the real body has loaded, try to use it
251+
body = document.body || body;
252+
250253
var innerDiv, checkDiv, table, td,
251254
supports = {},
252255
bodyMarginTop = parseFloat( body.style.marginTop ) || 0,

0 commit comments

Comments
 (0)