mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Add return in the offset support tests if the body is not present in frameset docs
This commit is contained in:
parent
52afe20860
commit
969fcc16bc
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user