Node
Direct Subclass:
Indirect Subclass:
A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
|
|
| public set |
nodeValue(value: *): * |
|
| public get |
Returns the Document that this node belongs to. |
|
| public get |
|
|
Method Summary
| Public Methods | ||
| 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 constructor source
Public Members
public get nodeValue: string | null: * source
Properties:
| Name | Type | Attribute | Description |
| Node#nodeValue | * |
public set nodeValue(value: *): * source
Public Methods
public addEventListener(eventType: string, listener: function, capturingPhase: boolean): * source
Return:
| * |
public getAttribute(attributeName: string): string source
get attribute's value
Params:
| Name | Type | Attribute | Description |
| attributeName | string |
public hasAttribute(attributeName: string): boolean source
checks if attribute exists for node
Params:
| Name | Type | Attribute | Description |
| attributeName | string |
public removeAttribute(attributeName: string) source
remove attribute
Params:
| Name | Type | Attribute | Description |
| attributeName | string |