select_parent

[internal] returns elements that have at least one child or text.

Source


def select_parent(self):
    return self._nodes.select_parent()