if there is applicable text in the element. Ancestor tags are kept so they can be used for filtering or classification without processing the document tree again. In the future we might want to keep descendants too, but we don't have a use for them at the moment.c