From 970eb0f020b7a57f313e438490b4018c5569f8b3 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Wed, 23 May 2007 12:48:15 +0000 Subject: [PATCH] Rolling back Rev 1892 --- src/jquery/coreTest.js | 5 +---- src/jquery/jquery.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 4776a66..ad5a30d 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -12,7 +12,7 @@ test("Basic requirements", function() { }); test("$()", function() { - expect(4); + expect(3); var main = $("#main"); isSet( $("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" ); @@ -32,9 +32,6 @@ test("$()", function() { pass = false; } ok( pass, "$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968" ); - - var form = $("form")[0]; - equals( 15, $(form.elements).size(), "$(form.elements)" ); }); test("isFunction", function() { diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 1be9c91..52b524a 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -176,7 +176,7 @@ jQuery.fn = jQuery.prototype = { // HANDLE: $(arraylike) // Watch for when an array-like object is passed as the selector - (a.jquery || a.length && a != window && (!a.nodeType || (jQuery.browser.msie && a.elements)) && a[0] != undefined && a[0].nodeType) && jQuery.makeArray( a ) || + (a.jquery || a.length && a != window && !a.nodeType && a[0] != undefined && a[0].nodeType) && jQuery.makeArray( a ) || // HANDLE: $(*) [ a ] ); -- 1.7.10.4