Skip to content

Commit 6e14804

Browse files
committed
Javadoc for selector parse exceptions
Fixes jhy#507
1 parent 2bef2e7 commit 6e14804

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/org/jsoup/nodes/Element.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public List<DataNode> dataNodes() {
252252
* @param cssQuery a {@link Selector} CSS-like query
253253
* @return elements that match the query (empty if none match)
254254
* @see org.jsoup.select.Selector
255+
* @throws Selector.SelectorParseException (unchecked) on an invalid CSS query.
255256
*/
256257
public Elements select(String cssQuery) {
257258
return Selector.select(cssQuery, this);

src/main/java/org/jsoup/select/Selector.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ private Selector(Evaluator evaluator, Element root) {
9999
* @param query CSS selector
100100
* @param root root element to descend into
101101
* @return matching elements, empty if none
102+
* @throws Selector.SelectorParseException (unchecked) on an invalid CSS query.
102103
*/
103104
public static Elements select(String query, Element root) {
104105
return new Selector(query, root).select();

0 commit comments

Comments
 (0)