X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=cc921385d939141b02320050851ea0cf4b78dfa5;hb=76db8a98220b6d76e98536b9578919bfb70048ed;hp=6c6d006014c05628105dcd39b08c2571a7394642;hpb=a220c81eb9d65b514fcf3090a0aae75dadf5d371;p=jquery.git diff --git a/src/core.js b/src/core.js index 6c6d006..cc92138 100644 --- a/src/core.js +++ b/src/core.js @@ -91,7 +91,7 @@ jQuery.fn = jQuery.prototype = { } // The body element only exists once, optimize finding it - if ( selector === "body" && !context ) { + if ( selector === "body" && !context && document.body ) { this.context = document; this[0] = document.body; this.selector = "body";