mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 04:47:55 -05:00
The context for 'body' should still be document, in this case.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user