Builds the node.
Node build({bool selfClosing = false}) => _existing ?? (selfClosing ? SelfClosingNode(tagName, attributes) : Node(tagName, attributes, children));