From 05184cc448f4ed7715ddd6a5d724e167882415f1 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Mon, 18 Nov 2019 22:10:55 +0100 Subject: Selector: Make empty attribute selectors work in IE again qSA in IE 11/Edge often (but not always) don't find elements with an empty name attribute selector (`[name=""]`). Detect that & fall back to Sizzle traversal. Interestingly, IE 10 & older don't seem to have the issue. Fixes gh-4435 Closes gh-4510 --- test/unit/attributes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/attributes.js') diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 1aca11482..41bdadb18 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -1255,7 +1255,7 @@ QUnit.test( "addClass(Array)", function( assert ) { } ); QUnit.test( "addClass(Function) with incoming value", function( assert ) { - assert.expect( 57 ); + assert.expect( 59 ); var pass, i, div = jQuery( "#qunit-fixture div" ), old = div.map( function() { @@ -1330,7 +1330,7 @@ QUnit.test( "removeClass(Array) - simple", function( assert ) { } ); QUnit.test( "removeClass(Function) with incoming value", function( assert ) { - assert.expect( 57 ); + assert.expect( 59 ); var $divs = jQuery( "#qunit-fixture div" ).addClass( "test" ), old = $divs.map( function() { return jQuery( this ).attr( "class" ); -- cgit v1.2.3