Trilium Backend API
    Preparing search index...

    Class NodeAbstract

    This object will be used as the prototype for Nodes when creating a DOM-Level-1-compliant structure.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    endIndex: number

    The end index of the node. Requires withEndIndices on the handler to be `true.

    next: ChildNode

    Next sibling

    nodeType: number

    DOM spec-compatible node type.

    parent: ParentNode

    Parent of the node

    prev: ChildNode

    Previous sibling

    sourceCodeLocation?: SourceCodeLocation

    parse5 source code location info.

    Available if parsing with parse5 and location info is enabled.

    startIndex: number

    The start index of the node. Requires withStartIndices on the handler to be `true.

    The type of the node.

    Accessors

    • get nextSibling(): ChildNode

      Same as next. DOM spec-compatible alias.

      Returns ChildNode

    • set nextSibling(next: ChildNode): void

      Parameters

      Returns void

    • get parentNode(): ParentNode

      Same as parent. DOM spec-compatible alias.

      Returns ParentNode

    • set parentNode(parent: ParentNode): void

      Parameters

      Returns void

    • get previousSibling(): ChildNode

      Same as prev. DOM spec-compatible alias.

      Returns ChildNode

    • set previousSibling(prev: ChildNode): void

      Parameters

      Returns void

    Methods

    • Clone this node, and optionally its children.

      Type Parameters

      Parameters

      • this: T
      • Optionalrecursive: boolean

        Clone child nodes as well.

      Returns T

      A clone of the node.