dumbpath
Dumb path is like XPath, but dumb.
The dumbpath module is accessible via the commentary module.
Syntax:
$(id):
Start at the element of id id.
<tag.class:n>
Go to the tag tag by class class. The tag and class are both optional (but you must give at least one). Without :n it will select the first element. If n is greater than the number tags, the last tag will be selected. Negative indexes are also allowed, counting from the end. Counting starts at 0, only decendents are matched; if nothing is matched, then this does nothing.
+ and -:
Go to the next/previous sibling; + on the last element, or - on the first element, will do nothing.
p and c:
Select the parent or child of the current node. If c, the first child will be selected. If there is no parent or child, this will do nothing.
#(...):
A comment.
Functions
Classes
C DumbSyntaxError(...) ...
This class contains 2 members.
C ElementDocument(...) ...
This class contains 9 members.
See the source for more information.