Interface Element

Defines an Element object.

Hierarchy

  • Node
    • NodeSelector
      • ElementTraversal
        • GlobalEventHandlers
          • Element
            • HTMLElement
            • SVGElement

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_POSITION_CONTAINED_BY: number

public DOCUMENT_POSITION_CONTAINS: number

public DOCUMENT_POSITION_DISCONNECTED: number

public DOCUMENT_POSITION_FOLLOWING: number

public DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number

public DOCUMENT_POSITION_PRECEDING: 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 childElementCount: number

public childNodes: NodeList

public firstChild: Node

public firstElementChild: Element

public lastChild: Node

public lastElementChild: Element

public localName: string

public namespaceURI: string

public nextElementSibling: Element

public nextSibling: Node

public nodeName: string

public nodeType: number

public nodeValue: string

public onpointercancel: (ev: PointerEvent) => any

public onpointerdown: (ev: PointerEvent) => any

public onpointerenter: (ev: PointerEvent) => any

public onpointerleave: (ev: PointerEvent) => any

public onpointermove: (ev: PointerEvent) => any

public onpointerout: (ev: PointerEvent) => any

public onpointerover: (ev: PointerEvent) => any

public onpointerup: (ev: PointerEvent) => any

public ownerDocument: Document

public parentNode: Node

public prefix: string

public previousElementSibling: Element

public previousSibling: Node

public textContent: string

public winControl: any

Methods

public addEventListener(type: string, listener: EventListener, useCapture?: boolean)

Parameters

  • type: string
  • listener: EventListener
  • useCapture?: boolean optional

public appendChild(newChild: Node): Node

Parameters

  • newChild: Node

Returns

Node

public cloneNode(deep?: boolean): Node

Parameters

  • deep?: boolean optional

Returns

Node

public compareDocumentPosition(other: Node): number

Parameters

  • other: Node

Returns

number

public dispatchEvent(evt: Event): boolean

Parameters

  • evt: Event

Returns

boolean

public hasAttributes(): boolean

Returns

boolean

public hasChildNodes(): boolean

Returns

boolean

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

Parameters

  • newChild: Node
  • refChild?: Node optional

Returns

Node

public isDefaultNamespace(namespaceURI: string): boolean

Parameters

  • namespaceURI: string

Returns

boolean

public isEqualNode(arg: Node): boolean

Parameters

  • arg: Node

Returns

boolean

public isSameNode(other: Node): boolean

Parameters

  • other: Node

Returns

boolean

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

Parameters

  • feature: string
  • version: string

Returns

boolean

public lookupNamespaceURI(prefix: string): string

Parameters

  • prefix: string

Returns

string

public lookupPrefix(namespaceURI: string): string

Parameters

  • namespaceURI: string

Returns

string

public normalize()

public querySelector(selectors: string): Element

Parameters

  • selectors: string

Returns

Element

public querySelectorAll(selectors: string): NodeList

Parameters

  • selectors: string

Returns

NodeList

public removeChild(oldChild: Node): Node

Parameters

  • oldChild: Node

Returns

Node

public removeEventListener(type: string, listener: EventListener, useCapture?: boolean)

Parameters

  • type: string
  • listener: EventListener
  • useCapture?: boolean optional

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

Parameters

  • newChild: Node
  • oldChild: Node

Returns

Node