]> source.dussan.org Git - jquery.git/commit
Selector: reduce size, simplify setDocument
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 26 Aug 2019 17:15:53 +0000 (19:15 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2019 17:15:53 +0000 (19:15 +0200)
commit29a9544a4fb743491a42f827a6cf8627b7b99e0f
tree7c700ac6a669717e3245b5292ab46be8eefdfe86
parentabdc89ac2e581392b800c0364e0f5f2b6a82cdc6
Selector: reduce size, simplify setDocument

With new selector code doing less convoluted support tests, it was possible
to extract a lot of logic out of setDocument & also reduce size.

This commit also backports jquery/sizzle#439 that was reverted by mistake
during a switch from JSHint + JSCS to ESLint.

Closes gh-4462
Ref jquery/sizzle#442
Ref jquery/sizzle#439
src/selector.js
src/selector/rbuggyQSA.js [new file with mode: 0644]
test/unit/selector.js