Skip to content

Commit

Permalink
Javadoc update for XPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Sep 30, 2021
1 parent 0d1f04a commit 80a9396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jsoup/nodes/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@ public boolean is(Evaluator evaluator) {
@param xpath XPath expression
@return matching elements, or an empty list if none match.
@since 1.14.3.
@see #selectXpath(String, Class)
@since 1.14.3
*/
public Elements selectXpath(String xpath) {
return new Elements(NodeUtils.selectXpath(xpath, this, Element.class));
Expand All @@ -539,6 +540,7 @@ public Elements selectXpath(String xpath) {
@param nodeType the jsoup node type to return
@see #selectXpath(String)
@return a list of matching nodes
@since 1.14.3
*/
public <T extends Node> List<T> selectXpath(String xpath, Class<T> nodeType) {
return NodeUtils.selectXpath(xpath, this, nodeType);
Expand Down

0 comments on commit 80a9396

Please sign in to comment.