Extends: EventTarget
See: https://developer.mozilla.org/en-US/docs/Web/API/Node
- Node
- new Node(ownerDocument)
- instance
- .contentEditable
- .isConnected :
boolean
- .parentNode :
Node
- .parentElement :
Element
- .firstChild :
Node
- .lastChild :
Node
- .previousSibling :
Node
- .nextSibling :
Node
- .firstElementChild :
Node
- .lastElementChild :
Node
- .previousElementSibling :
Node
- .nextElementSibling :
Node
- .textContent :
string
- .childNodes :
NodeList
- .children :
HTMLCollection
- .ownerDocument
- .attributes
- .hasChildNodes()
- .cloneNode(deep)
- .appendChild(child)
- .insertBefore(child, before)
- .replaceChild(newChild, oldChild)
- .removeChild(child)
- .remove()
- .before(...nodes)
- .after(...nodes)
- .replaceWith(...nodes)
- .contains(node)
- .addEventListener(eventName, callback, [capture])
- .removeEventListener(eventName, callback, [capture])
- .dispatchEvent(event)
- static
Creates an instance of Node.
Param | Type |
---|---|
ownerDocument | \* |
Read only
Read only
node.parentNode : Node
Read only
node.parentElement : Element
Read only
node.firstChild : Node
Read only
node.lastChild : Node
Read only
node.previousSibling : Node
Read only
node.nextSibling : Node
Read only
node.firstElementChild : Node
Read only
node.lastElementChild : Node
Read only
node.previousElementSibling : Node
Read only
node.nextElementSibling : Node
Read only
node.childNodes : NodeList
Read only
node.children : HTMLCollection
Read only
Read only
Read only
Param | Type |
---|---|
deep | boolean |
Param | Type |
---|---|
child | Node |
Param | Type |
---|---|
child | Node |
before | Node |
Param | Type |
---|---|
newChild | Node |
oldChild | Node |
Param | Type |
---|---|
child | Node |
Param | Type |
---|---|
...nodes | Array.<Node> |
Param | Type |
---|---|
...nodes | Array.<Node> |
Param | Type |
---|---|
...nodes | Array.<Node> |
Param | Type |
---|---|
node | Node |
Param | Type | Default |
---|---|---|
eventName | \* |
|
callback | \* |
|
[capture] | boolean |
false |
Param | Type | Default |
---|---|---|
eventName | \* |
|
callback | \* |
|
[capture] | boolean |
false |
Param | Type |
---|---|
event | \* |