]> source.dussan.org Git - jquery.git/commit
Selector: Make empty attribute selectors work in IE again
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 18 Nov 2019 21:10:55 +0000 (22:10 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 21:10:55 +0000 (22:10 +0100)
commit05184cc448f4ed7715ddd6a5d724e167882415f1
treec1b240fa57e4b0824ea04f9a1fd951722c1ce83c
parentd0ce00cdfa680f1f0c38460bc51ea14079ae8b07
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
src/selector.js
src/selector/rbuggyQSA.js
src/selector/var/whitespace.js [new file with mode: 0644]
test/data/qunit-fixture.html
test/data/qunit-fixture.js
test/unit/attributes.js
test/unit/selector.js