(SPRINT) Internal HTML Tree Generation (DOM)
Functionality:
- The parser's output (the "tokens" or "elements") will be used to build a tree data structure.
- Each node in the tree will represent an HTML element (e.g.,
<h1>,<p>,<em>). - Child nodes will represent nested elements (e.g., an
<em>node would be a child of a<p>node).