]> source.dussan.org Git - jquery.git/commit
CSS:Selector: Align with 3.x, remove the outer `selector.js` wrapper
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 20 Sep 2023 00:31:35 +0000 (02:31 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2023 00:31:35 +0000 (02:31 +0200)
commit53cf7244da2a2040333335c36e435b1c12efdff9
tree5331bd464dcc51d7ff1b923ccd5868a733c18234
parent5f869590924b7dea6a16d176b18700939f4b5290
CSS:Selector: Align with 3.x, remove the outer `selector.js` wrapper

Bring some changes from `3.x-stable`:
* rename `rtrim` to `rtrimCSS` to distinguish from the previous `rtrim`
  regex used for `jQuery.trim`
* backport one `id` selector test that avoids the selector engine path

Other changes:
* remove the inner function wrapper from `selector.js` by renaming
  the imported `document.js` value
* use `jQuery.error` in `selectorError`
* make Selector tests pass in all-modules runs by fixing a sinon mistake
  in Core tests - Core tests had a spy set up for `jQuery.error` that wasn't
  cleaned up, influencing Selector tests when all were run together

Closes gh-5295
src/css/curCSS.js
src/selector.js
src/selector/rbuggyQSA.js
src/selector/selectorError.js
src/selector/tokenize.js
src/var/rtrim.js [deleted file]
src/var/rtrimCSS.js [new file with mode: 0644]
test/unit/core.js
test/unit/selector.js