diff options
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core.js b/src/core.js index 67fa24c77..9a288fa1b 100644 --- a/src/core.js +++ b/src/core.js @@ -133,13 +133,7 @@ jQuery.fn = jQuery.prototype = { // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object + // Inject the element directly into the jQuery object this.length = 1; this[0] = elem; } |