Skip to content
Permalink
Browse files

Add return in the offset support tests if the body is not present in …

…frameset docs
  • Loading branch information...
timmywil committed Nov 1, 2011
1 parent 52afe20 commit 969fcc16bc5ab77352407f77cd48860ca4d95434
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/support.js
@@ -266,6 +266,12 @@ jQuery.support = (function() {

// Reconstruct a container
body = document.getElementsByTagName("body")[0];
if ( !body ) {
// Return for frameset docs that don't have a body
// These tests cannot be done
return;
}

container = document.createElement("div");
container.style.cssText = vb + "width:0;height:0;position:static;top:0;marginTop:" + conMarginTop + "px";
body.insertBefore( container, body.firstChild );

0 comments on commit 969fcc1

Please sign in to comment.
You can’t perform that action at this time.