From cb65daa399630de0cdcd81af55ff76f6cd93da62 Mon Sep 17 00:00:00 2001 From: jeresig Date: Fri, 29 Jan 2010 15:04:26 -0500 Subject: [PATCH] The context for 'body' should still be document, in this case. --- src/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 2271ceb..34bab95 100644 --- a/src/core.js +++ b/src/core.js @@ -72,7 +72,8 @@ jQuery.fn = jQuery.prototype = { // The body element only exists once, optimize finding it if ( selector === "body" && !context ) { - this.context = this[0] = document.body; + this.context = document; + this[0] = document.body; this.selector = "body"; this.length = 1; return this; -- 1.7.10.4