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