Tree Pos
TreePos is the position of a node in the tree.
offset
is the position of node's token. For example, if the node is an element node, the offset is the index of the child node. If the node is a text node, the offset is the index of the character.