- Notifications
You must be signed in to change notification settings - Fork20.6k
Commited66d5a
authored
Selector: Make selectors with leading combinators use qSA again
An optimization added injquery/sizzle#431 skips the temporary IDs for selectorsnot using child or descendant combinators. For sibling combinators, though, thispushes a selector with a leading combinator to qSA directly which crashes andfalls back to a slower Sizzle route.This commit makes selectors with leading combinators not skip the selectorrewriting. Note that after#4454 &jquery/sizzle#453, all modernbrowsers other than Edge leverage the :scope pseudo-class, avoiding temporaryid attributes.Closesgh-4509Refjquery/sizzle#4311 parentbbad821 commited66d5a
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
| 230 | + | |
229 | 231 |
| |
230 |
| - | |
| 232 | + | |
| 233 | + | |
231 | 234 |
| |
232 | 235 |
| |
233 | 236 |
| |
|
0 commit comments
Comments
(0)