TreeBuilder
Overview
TreeBuilder is a class in Aspose.Html FOSS for Python.
Drives the WHATWG tree construction algorithm.
This class provides 2 methods for working with TreeBuilder objects in Python programs.
Available methods include: __init__, run.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(tokenizer: Tokenizer, document: Document, fragment_context: Element | None) | Calls init(tokenizer, document, fragment_context) on this TreeBuilder instance. |
run() | Execute the tree construction algorithm until EofToken. |