parserino.html.treebuilder
HTML tree construction (HTML Living Standard, "Tree construction").
Derived from lexbor (https://github.com/lexbor/lexbor). Copyright (C) 2018-2026 Alexander Borisov (lexbor), Apache-2.0: see LICENSE-lexbor and NOTICE-lexbor.
struct TreeBuilder
Types 1
structTreeBuilder
The tree construction: it gets the tokens from the tokenizer (see sink) and builds the tree in doc
Fields
DomDocument * docTokenizer * tokenizerBuffer!(DomNode *) openElementsThe stack of open elements and the list of active formatting elements (null = marker)bool framesetOkDomElement * headDomElement * bodyCompatMode compatModeDomNode * contextFragment parsing: the context element and the root of the resultDomElement * fragmentRootbool failedOut of memoryMethods
bool beginFragment(DomDocument * d, Tokenizer * t, DomElement * contextElement) @nogc nothrow pure @safeStart parsing a fragment in the context of `contextElement` (an element of `d`)Destructors
Nested Templates
Adjust