Glossary

filter

Filter functions can be used as arguments with various methods on node instances that return other nodes. They are called with a node instance as only argument and they should return a bool to indicate whether the node matches the filter. Have a look at the Filters source code for examples.

tag node

Tag nodes are the equivalent to the DOM’s element node. Its name shall make it distinguishable from the ElementTree API and relates to the nodes’ functionality of tagging text.