Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…frameset docs
  • Loading branch information...
commit 969fcc16bc5ab77352407f77cd48860ca4d95434 1 parent 52afe20
@timmywil timmywil authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/support.js
View
6 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 );
Please sign in to comment.
Something went wrong with that request. Please try again.