Node

Extends: EventTarget

See: https://developer.mozilla.org/en-US/docs/Web/API/Node

new Node(ownerDocument)

Creates an instance of Node.

Param Type
ownerDocument *

node.contentEditable

Read only

node.isConnected : boolean

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.textContent : string

node.childNodes : NodeList

Read only

node.children : HTMLCollection

Read only

node.ownerDocument

Read only

node.attributes

Read only

node.hasChildNodes()

node.cloneNode(deep)

Param Type
deep boolean

node.appendChild(child)

Param Type
child Node

node.insertBefore(child, before)

Param Type
child Node
before Node

node.replaceChild(newChild, oldChild)

Param Type
newChild Node
oldChild Node

node.removeChild(child)

Param Type
child Node

node.remove()

node.before(...nodes)

Param Type
...nodes Array.<Node>

node.after(...nodes)

Param Type
...nodes Array.<Node>

node.replaceWith(...nodes)

Param Type
...nodes Array.<Node>

node.contains(node)

Param Type
node Node

node.addEventListener(eventName, callback, [capture])

Param Type Default
eventName *
callback *
[capture] boolean false

node.removeEventListener(eventName, callback, [capture])

Param Type Default
eventName *
callback *
[capture] boolean false

node.dispatchEvent(event)

Param Type
event *

Node.ELEMENT_NODE

Node.ATTRIBUTE_NODE

Node.TEXT_NODE

Node.DOCUMENT_NODE

Node.DOCUMENT_FRAGMENT_NODE

Node.COMMENT_NODE

results matching ""

    No results matching ""