aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-11-18 22:10:55 +0100
committerGitHub <noreply@github.com>2019-11-18 22:10:55 +0100
commit05184cc448f4ed7715ddd6a5d724e167882415f1 (patch)
treec1b240fa57e4b0824ea04f9a1fd951722c1ce83c /test/unit/attributes.js
parentd0ce00cdfa680f1f0c38460bc51ea14079ae8b07 (diff)
downloadjquery-05184cc448f4ed7715ddd6a5d724e167882415f1.tar.gz
jquery-05184cc448f4ed7715ddd6a5d724e167882415f1.zip
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
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r--test/unit/attributes.js4
1 files changed, 2 insertions, 2 deletions
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" );