Builds a DOM tree from a parsed template (TNode) and resolves ID references.
The component instance that owns this template.
A map of custom component classes to be used within the template.
OptionalparentSignal: AbortSignalAn AbortSignal to clean up event listeners.
ReadonlycomponentThe component instance that owns the template being built.
ReadonlycontrollerController to manage the component's own teardown.
ReadonlyidMap of original IDs to newly generated unique elements.
ReadonlyidList of elements that reference other elements by ID, needing resolution.
ReadonlysignalSignal to pass to event listeners (linked to the component's teardown).
ReadonlyusesA dictionary of custom components to be used within the template.
Recursively builds a DOM tree from a TNode and stores the states in idMap and idReferenceMap.
The current TNode to build.
Optionalns: string | nullNamespace URI used when creating an element.
The constructed DOM Element.
Resolve stored ID references to their actual UUIDs
Context object used during the recursive build process.