Commit 4bc0567
Add strict validation to exists() and demonstrate with invalid selector
- Added function overloads to exists() with StrictlyParseSelector
- Returns never when selector is invalid, boolean when valid
- Intentionally broke isLoggedIn selector to demonstrate validation
- Selector 'body.logged-in >' returns never (invalid trailing combinator)
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>1 parent 5412d1b commit 4bc0567
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | | - | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments