Class HTMLDocument

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(version: number, encoding: string): XMLDocument

Parameters

  • version: number
  • encoding: string

Returns

XMLDocument

Methods

public child(idx: number): Element

Parameters

  • idx: number

Returns

Element

public childNodes(): Element[]

Returns

Element[]

public encoding(): string

Returns

string

public encoding(enc: string)

Parameters

  • enc: string

public errors(): Array<SyntaxError>

Returns

Array<SyntaxError>

public find(xpath: string): Element[]

Parameters

  • xpath: string

Returns

Element[]

public get(xpath: string): Element

Parameters

  • xpath: string

Returns

Element

public node(name: string, content: string): Element

Parameters

  • name: string
  • content: string

Returns

Element

public root(): Element

Returns

Element

public toString(): string

Returns

string

public version(): Number

Returns

Number