diff --git a/src/core.js b/src/core.js index 45eaecf6..d2f82a6d 100644 --- a/src/core.js +++ b/src/core.js @@ -112,6 +112,7 @@ jQuery.fn = jQuery.prototype = { // HANDLE: $("TAG") } else if ( !context && /^\w+$/.test( selector ) ) { this.selector = selector; + this.context = document; selector = document.getElementsByTagName( selector ); // HANDLE: $(expr, $(...))