ParentNode
Extends:
Direct Subclass:
Indirect Subclass:
The ParentNode interface contains methods that are particular to Node objects that can have children.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
childNodes: Node[] TODO return {HTMLCollection} |
|
public get |
firstChild: Node | null |
|
public get |
|
|
public get |
nextSibling: Node | null |
|
public get |
parentNode: Node | null |
|
public get |
|
Method Summary
Public Methods | ||
public |
appendChild(child: Node): Node |
|
public |
Clone a Node, and optionally, all of its contents. |
|
public |
Method returns true if node has child nodes. |
|
public |
insertBefore(child: Node, existingChild: Node): Node |
|
public |
removeChild(toRemoveChild: Node): Node |
|
public |
replaceChild(newChild: Node, oldChild: Node): Node |
Protected Methods | ||
protected |
_createCollection(selector: *): * Inner method to create new live HTMLCollection. |
Inherited Summary
From class Node | ||
public get |
|
|
public set |
nodeValue(value: *): * |
|
public get |
Returns the Document that this node belongs to. |
|
public get |
|
|
public |
addEventListener(eventType: string, listener: function, capturingPhase: boolean): * |
|
public |
dispatchEvent(event: Event): boolean |
|
public |
getAttribute(attributeName: string): string get attribute's value |
|
public |
hasAttribute(attributeName: string): boolean checks if attribute exists for node |
|
public |
removeAttribute(attributeName: string) remove attribute |
|
public |
removeEventListener(eventType: string, listener: function, capturingPhase: boolean): boolean |
|
public |
setAttribute(attributeName: string, attributeValue: string) set attribute's value |
Public Constructors
Public Members
Public Methods
public cloneNode(deep: boolean): Node source
Clone a Node, and optionally, all of its contents. By default, it clones the content of the node.
Params:
Name | Type | Attribute | Description |
deep | boolean |
public removeChild(toRemoveChild: Node): Node source
Params:
Name | Type | Attribute | Description |
toRemoveChild | Node |
Protected Methods
protected _createCollection(selector: *): * source
Inner method to create new live HTMLCollection.
Params:
Name | Type | Attribute | Description |
selector | * |
Return:
* |