Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MLDOMDocument<T, O>

markuplint DOM Document

Type parameters

  • T: RuleConfigValue

  • O

Hierarchy

  • MLDOMDocument

Index

Constructors

constructor

Properties

currentRule

currentRule: MLRule<T, O> | null = null

isFragment

isFragment: boolean

nodeList

nodeList: ReadonlyArray<AnonymousNode<T, O>>

An array of markuplint DOM nodes

Readonly nodeStore

nodeStore: NodeStore = new NodeStore()

schemas

schemas: Readonly<[MLMLSpec, { cites?: Cites; def?: Partial<SpecDefs>; specs?: ElementSpec[] }]>

Accessors

doctype

  • Returns null | MLDOMDoctype<T, O>

tree

Methods

Private _init

  • _init(ruleset: Ruleset): void
  • Parameters

    • ruleset: Ruleset

    Returns void

matchNodes

  • Parameters

    • query: string

    Returns MLDOMElement<T, O>[]

setRule

  • setRule(rule: MLRule<T, O> | null): void
  • Parameters

    Returns void

toString

  • toString(): string
  • Returns string

walk

  • walk(walker: Walker<T, O>): Promise<void>
  • Parameters

    Returns Promise<void>

walkOn

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

Generated using TypeDoc