aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-03-20 01:45:19 +0100
committerDave Methvin <dave.methvin@gmail.com>2013-04-04 12:55:03 -0400
commit7049877530882c2f8ee09f71f7fc736ca9570736 (patch)
tree0fa73efdca54f7445880979f4fb035ab891cc5eb /src/core.js
parentba16ba2efcb0a7703d1332044de87bf12700a66e (diff)
downloadjquery-7049877530882c2f8ee09f71f7fc736ca9570736.tar.gz
jquery-7049877530882c2f8ee09f71f7fc736ca9570736.zip
Correct oldIE-related comments, revert some workarounds. Close gh-1207.
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js8
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;
}