Interface Document

Hierarchy

Index

Properties

Methods

Properties

public ATTRIBUTE_NODE: number

public CDATA_SECTION_NODE: number

public COMMENT_NODE: number

public DOCUMENT_FRAGMENT_NODE: number

public DOCUMENT_NODE: number

public DOCUMENT_TYPE_NODE: number

public ELEMENT_NODE: number

public ENTITY_NODE: number

public ENTITY_REFERENCE_NODE: number

public NOTATION_NODE: number

public PROCESSING_INSTRUCTION_NODE: number

public TEXT_NODE: number

public attributes: NamedNodeMap

public bubbleParent: boolean

public childNodes: NodeList

public doctype: DocumentType

public documentElement: Element

public firstChild: Node

public implementation: DOMImplementation

public lastChild: Node

public localName: string

public namespaceURI: string

public nextSibling: Node

public nodeName: string

public nodeType: number

public nodeValue: string

public ownerDocument: Document

public parentNode: Node

public prefix: string

public previousSibling: Node

public text: string

public textContent: string

Methods

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public appendChild(newChild: Node): Node

Parameters

Returns

Node

public applyProperties(props: Dictionary)

Parameters

public cloneNode(deep: boolean): Node

Parameters

  • deep: boolean

Returns

Node

public createAttribute(name: string): Attr

Parameters

  • name: string

Returns

Attr

public createAttributeNS(namespaceURI: string, name: string): Attr

Parameters

  • namespaceURI: string
  • name: string

Returns

Attr

public createCDATASection(data: string): CDATASection

Parameters

  • data: string

Returns

CDATASection

public createComment(data: string): Comment

Parameters

  • data: string

Returns

Comment

public createDocumentFragment(): DocumentFragment

Returns

DocumentFragment

public createElement(tagName: string): Element

Parameters

  • tagName: string

Returns

Element

public createElementNS(namespaceURI: string, name: string): Element

Parameters

  • namespaceURI: string
  • name: string

Returns

Element

public createEntityReference(name: string): EntityReference

Parameters

  • name: string

Returns

EntityReference

public createProcessingInstruction(target: string, data: string): ProcessingInstruction

Parameters

  • target: string
  • data: string

Returns

ProcessingInstruction

public createTextNode(data: string): Text

Parameters

  • data: string

Returns

Text

public fireEvent(name: string, event: Dictionary)

Parameters

public getAttributes(): NamedNodeMap

Returns

NamedNodeMap

public getBubbleParent(): boolean

Returns

boolean

public getChildNodes(): NodeList

Returns

NodeList

public getDoctype(): DocumentType

Returns

DocumentType

public getDocumentElement(): Element

Returns

Element

public getElementById(elementId: string): Element

Parameters

  • elementId: string

Returns

Element

public getElementsByTagName(tagname: string): NodeList

Parameters

  • tagname: string

Returns

NodeList

public getElementsByTagNameNS(namespaceURI: string, localname: string): NodeList

Parameters

  • namespaceURI: string
  • localname: string

Returns

NodeList

public getFirstChild(): Node

Returns

Node

public getImplementation(): DOMImplementation

Returns

DOMImplementation

public getLastChild(): Node

Returns

Node

public getLocalName(): string

Returns

string

public getNamespaceURI(): string

Returns

string

public getNextSibling(): Node

Returns

Node

public getNodeName(): string

Returns

string

public getNodeType(): number

Returns

number

public getNodeValue(): string

Returns

string

public getOwnerDocument(): Document

Returns

Document

public getParentNode(): Node

Returns

Node

public getPrefix(): string

Returns

string

public getPreviousSibling(): Node

Returns

Node

public getText(): string

Returns

string

public getTextContent(): string

Returns

string

public hasAttributes(): boolean

Returns

boolean

public hasChildNodes(): boolean

Returns

boolean

public importNode(importedNode: Node, deep: boolean): Node

Parameters

  • importedNode: Node
  • deep: boolean

Returns

Node

public insertBefore(newChild: Node, refChild: Node): Node

Parameters

Returns

Node

public isSupported(feature: string, version: string): boolean

Parameters

  • feature: string
  • version: string

Returns

boolean

public normalize()

public removeChild(oldChild: Node): Node

Parameters

Returns

Node

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public replaceChild(newChild: Node, oldChild: Node): Node

Parameters

Returns

Node

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setLocalName(localName: string)

Parameters

  • localName: string

public setNodeValue(nodeValue: string)

Parameters

  • nodeValue: string

public setPrefix(prefix: string)

Parameters

  • prefix: string