From aadc268abf555f0f1cc7c5bc05d0dc73b35cb705 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Wed, 9 Sep 2009 16:50:58 +0000 Subject: [PATCH] jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live() --- src/core.js | 1 + 1 file changed, 1 insertion(+) 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, $(...))