Class Tag

Represents an html tag

Hierarchy

  • Tag

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • tagName: TagName
    • children: ValidTagChild[]
    • attr: AttrSet
    • meta: TagMeta

    Returns Tag

Properties

_meta: TagMeta = ...
attr: AttrSet = ...
children: ValidTagChild[] = []
tagName: TagName

Accessors

Methods

  • Append children

    Parameters

    • child: ValidTagChild

    Returns void

  • Find a child by tag name

    Parameters

    • targetTagName: TagName

    Returns Tag

  • Find a child by custom test

    Parameters

    • test: FindBy

    Returns Tag

Generated using TypeDoc