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
Restore the behavior of cssSelector before v1.16.2 for elements with an id (#2283)
* Restore the behavior of cssSelector before v1.16.2
* Optimized out id() and ownerDoc() calls
Fixes#2282
---------
Co-authored-by: Jonathan Hedley <jonathan@hedley.net>
Copy file name to clipboardExpand all lines: CHANGES.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# jsoup Changelog
2
2
3
+
## 1.19.2 (PENDING)
4
+
5
+
### Changes
6
+
7
+
### Improvements
8
+
*`Element.cssSelector()` will prefer to return shorter selectors by using ancestor IDs when available and unique. E.g. `#id > div > p` instead of `html > body > div > div > p`[#2283](https://github.com/jhy/jsoup/pull/2283).
0 commit comments