Trilium Backend API
    Preparing search index...

    Class Comment

    Comments within the document.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • data: string

        The content of the data node

      Returns Comment

    Properties

    data: string
    endIndex: number

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

    next: ChildNode

    Next sibling

    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.

    type: Comment

    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 nodeType(): 8

      DOM spec-compatible node type.

      Returns 8

    • get nodeValue(): string

      Same as data. DOM spec-compatible alias.

      Returns string

    • set nodeValue(data: string): void

      Parameters

      • data: string

      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.