|
41 | 41 |
|
42 | 42 | - **NEW**: Officially support Python 3.10.
|
43 | 43 | - **NEW**: Add static typing.
|
44 |
| -- **NEW**: `:has()`, `:is()`, and `:where()` now use use a forgiving selector list. While not as forgiving as CSS |
45 |
| - might be, it will forgive such things as empty sets and empty slots due to multiple consecutive commas, leading |
46 |
| - commas, or trailing commas. Essentially, these pseudo-classes will match all non-empty selectors and ignore empty |
47 |
| - ones. As the scraping environment is different than a browser environment, it was chosen not to aggressively forgive |
48 |
| - bad syntax and invalid features to ensure the user is alerted that their program may not perform as expected. |
| 44 | +- **NEW**: `:has()`, `:is()`, and `:where()` now use a forgiving selector list. While not as forgiving as CSS might |
| 45 | + be, it will forgive such things as empty sets and empty slots due to multiple consecutive commas, leading commas, or |
| 46 | + trailing commas. Essentially, these pseudo-classes will match all non-empty selectors and ignore empty ones. As the |
| 47 | + scraping environment is different than a browser environment, it was chosen not to aggressively forgive bad syntax |
| 48 | + and invalid features to ensure the user is alerted that their program may not perform as expected. |
49 | 49 | - **NEW**: Add support to output a pretty print format of a compiled `SelectorList` for debug purposes.
|
50 | 50 | - **FIX**: Some small corner cases discovered with static typing.
|
51 | 51 |
|
|
86 | 86 | - **NEW**: `SelectorSyntaxError` is derived from `Exception` not `SyntaxError`.
|
87 | 87 | - **NEW**: Remove deprecated `comments` and `icomments` from the API.
|
88 | 88 | - **NEW**: Drop support for EOL Python versions (Python 2 and Python < 3.5).
|
89 |
| -- **FIX**: Corner case with splitting namespace and tag name that that have an escaped `|`. |
| 89 | +- **FIX**: Corner case with splitting namespace and tag name that have an escaped `|`. |
90 | 90 |
|
91 | 91 | ## 1.9.6
|
92 | 92 |
|
93 | 93 | /// note | Last version for Python 2.7
|
94 | 94 | ///
|
95 | 95 |
|
96 | 96 | - **FIX**: Prune dead code.
|
97 |
| -- **FIX**: Corner case with splitting namespace and tag name that that have an escaped `|`. |
| 97 | +- **FIX**: Corner case with splitting namespace and tag name that have an escaped `|`. |
98 | 98 |
|
99 | 99 | ## 1.9.5
|
100 | 100 |
|
|
0 commit comments