diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-02-13 18:34:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-13 18:34:41 +0100 |
commit | 2e644e845051703775b35b358eec5d3608a9465f (patch) | |
tree | f1b17f379cd4875a3f8e60a9d20f2354333ce4d5 /src/selector/var/rpseudo.js | |
parent | 7e7bd062070b3eca8ee047136ea8575fbed5d70f (diff) | |
download | jquery-2e644e845051703775b35b358eec5d3608a9465f.tar.gz jquery-2e644e845051703775b35b358eec5d3608a9465f.zip |
Selector: Backport jQuery selection context logic to selector-native
This makes:
```js
$div.find("div > *")
```
no longer matching children of `$div`.
Also, leading combinators now work, e.g.:
```js
$div.find( "> *" );
```
returns children of `$div`.
As a result of that, a number of tests are no longer skipped in the
`selector-native` mode.
Also, rename `rcombinators` to `rleadingCombinator`.
Fixes gh-5185
Closes gh-5186
Ref gh-5085
Diffstat (limited to 'src/selector/var/rpseudo.js')
-rw-r--r-- | src/selector/var/rpseudo.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/selector/var/rpseudo.js b/src/selector/var/rpseudo.js new file mode 100644 index 000000000..9ed943a5f --- /dev/null +++ b/src/selector/var/rpseudo.js @@ -0,0 +1,3 @@ +import pseudos from "./pseudos.js"; + +export default new RegExp( pseudos ); |