diff --git a/src/core.js b/src/core.js index a7cbdc99..5fa944bc 100644 --- a/src/core.js +++ b/src/core.js @@ -109,6 +109,10 @@ jQuery.fn = jQuery.prototype = { return this; } + // HANDLE: $("TAG") + } else if ( !context && /^\w+$/.test( selector ) ) { + selector = document.getElementsByTagName( selector ); + // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return (context || rootjQuery).find( selector );