Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ParserOptions

Options to use for the HTML parser. The default options are optimized for raw parsing speed.

Hierarchy

  • ParserOptions

Index

Properties

trackClasses?: boolean

Enables tracking of HTML Tag class names.

The parser will cache tags during parsing on the fly. Enabling this makes getElementsByClassName() lookups ~O(1), at the cost of a lot of hashing. Default: false

trackIds?: boolean

Enables tracking of HTML Tag IDs.

The parser will cache tags during parsing on the fly. Enabling this makes getElementById() lookups ~O(1). Default: false

Generated using TypeDoc