mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 11:07:58 -05:00
jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()
This commit is contained in:
@@ -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, $(...))
|
||||
|
||||
Reference in New Issue
Block a user