Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tag

A handle to a tag that was downcasted from a node

Hierarchy

Index

Constructors

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

Properties

dom: Dom
id: number

Methods

  • 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

  • innerHTML(): string
  • innerText(): string
  • name(): string
  • Returns the name of this tag

    Returns string

Generated using TypeDoc