Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IStartTagToken

The start tag token.

Hierarchy

Index

Properties

attributes

The list of attributes.

This array-like object and IAttributeToken objects that it contains are pooled. They all are revoked after the handler callback finishes. Make a deep copy using IToken.clone to retain a token.

Object pooling is used to reduce memory consumption during parsing by avoiding excessive object allocation.

end

end: number

The index where the token ends.

name

name: string

The tag name after IParserOptions.renameTag was applied.

nameEnd

nameEnd: number

The index where the rawName ends or -1 if this tag doesn't actually present in the source.

nameStart

nameStart: number

The index where the rawName starts or -1 if this tag doesn't actually present in the source.

rawName

rawName: string

The tag name as it was read from the source.

selfClosing

selfClosing: boolean

true if tag is self-closing, false otherwise.

see

IParserOptions.selfClosingEnabled

start

start: number

The index where the token starts.

tokenType

tokenType: START_TAG

The type of the token.

Methods

clone

Generated using TypeDoc