mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: fixes 5187. getElementsByTagName optimization was breaking $('div').live()
This commit is contained in:
parent
bf230ffb6a
commit
aadc268abf
@ -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, $(...))
|
||||
|
Loading…
Reference in New Issue
Block a user