Commit 969fcc16 authored by timmywil's avatar timmywil

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

parent 52afe208
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment