Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Node

A handle to a node in the DOM tree.

Hierarchy

Index

Constructors

  • new Node(dom: Dom, id: number): Node

Properties

dom: Dom
id: number

Methods

  • Attempts to downcast this node handle to an HTML comment ().

    Returns null | Comment

  • Attempts to downcast this node handle to a raw HTML node (text).

    Returns null | RawTag

  • asTag(): null | Tag
  • Attempts to downcast this node handle to a concrete HTML tag. Some operations are only valid on HTML tags.

    Returns null | Tag

  • downcastable(kind: DowncastTarget): boolean
  • Parameters

    • kind: DowncastTarget

    Returns boolean

  • innerHTML(): string
  • Returns the inner HTML of this node.

    Returns string

  • innerText(): string
  • Returns the inner text of this node.

    Returns string

Generated using TypeDoc