Closed
Description
Hear me out... I know that JSoup is mostly DOM oriented but I'd like to recommend that we consider adding an optional SAX feature.
This is partially related to this issue:
but I would like to expand on a description.
Right now the TreeBuilder functionality implements the parsing we need however there is no way to listen to the parse as it happens.
We have some of our queries that are better / faster if they are just implemented together as the document is parsed (rather than CSS selectors).
This way we could just elide the searching during the parse to avoid then having to follow up by recursing into the tree.
Perhaps "progress" can be implemented in the same framework: