Description: For each element in the set, get the first elements that match the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
Description: For each element in the set, get the first elements that match the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
an Elements (which may be empty)
http://api.jquery.com/closest/
Description: For each element in the set, get the first element that matches the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
Description: For each element in the set, get the first element that matches the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
a Some containing the first one found, or None
http://api.jquery.com/closest/
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
TODO: Additional methods over and above those offered by JSoup, inspired by JQuery. namely closest(), closestBefore() and closestAfter()
TODO: Filtering by regex on ownText