You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #5085 (comment), it would be worthwhile to try to fix the long-standing selector-native issue of not requiring all selector parts to match element under context, e.g. so that:
$div.find("div > *")
no longer matches children of $div.
My preliminary research indicates resolving this issue would cost about 1000 bytes minified gzipped; it'd still be 3300 bytes minified gzipped smaller than the full build compared to 4300 bytes minified gzipped without this change.
Link to test case
No test case since we don't upload selector-native versions anywhere. But the example from the description is pretty straightforward.
The text was updated successfully, but these errors were encountered:
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.
Fixesjquerygh-5185
Ref jquerygh-5085
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.
Fixesjquerygh-5185
Ref jquerygh-5085
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`.
Fixesgh-5185Closesgh-5186
Ref gh-5085
Description
As discussed in #5085 (comment), it would be worthwhile to try to fix the long-standing
selector-native
issue of not requiring all selector parts to match element under context, e.g. so that:no longer matches children of
$div
.My preliminary research indicates resolving this issue would cost about 1000 bytes minified gzipped; it'd still be 3300 bytes minified gzipped smaller than the full build compared to 4300 bytes minified gzipped without this change.
Link to test case
No test case since we don't upload selector-native versions anywhere. But the example from the description is pretty straightforward.
The text was updated successfully, but these errors were encountered: