treeloom-components
    Preparing search index...

    Function node

    • Create the DomItem for any node, the base every other component builds on.

      Parameters

      • nodeName: string

        Any document node name: a tag name, #text, #comment or #document.

      • nodeValue: string | null = null

        The text of a text or comment node, null for elements.

      • children: DomItem[] = []
      • attributes: Attributes = {}

      Returns DomItem