Defines an Element object.
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 attributes: NamedNodeMap
public childElementCount: number
public childNodes: NodeList
public firstElementChild: Element
public lastElementChild: Element
public namespaceURI: string
public nextElementSibling: Element
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 previousElementSibling: Element
public previousSibling: Node
public textContent: string
Methods
public addEventListener(type: string, listener: EventListener, useCapture?: boolean)
Parameters
-
type: string
-
listener: EventListener
-
useCapture?: boolean optional
public appendChild(newChild: Node): Node
Parameters
Returns
Node
public cloneNode(deep?: boolean): Node
Parameters
Returns
Node
public compareDocumentPosition(other: Node): number
Parameters
Returns
number
public dispatchEvent(evt: Event): boolean
Parameters
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
Returns
boolean
public isEqualNode(arg: Node): boolean
Parameters
Returns
boolean
public isSameNode(other: Node): boolean
Parameters
Returns
boolean
public isSupported(feature: string, version: string): boolean
Parameters
-
feature: string
-
version: string
Returns
boolean
public lookupNamespaceURI(prefix: string): string
Parameters
Returns
string
public lookupPrefix(namespaceURI: string): string
Parameters
Returns
string
public querySelector(selectors: string): Element
Parameters
Returns
Element
public querySelectorAll(selectors: string): NodeList
Parameters
Returns
NodeList
public removeChild(oldChild: Node): Node
Parameters
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