TW_TextNode
tw5-typed / hooks / TW_TextNode
Class: TW_TextNode
Defined in: src/modules/utils/fakedom.d.ts:11
Extends
Node
Constructors
Constructor
new TW_TextNode():
TW_TextNode
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21868
Returns
TW_TextNode
Inherited from
Node.constructor
Properties
ATTRIBUTE_NODE
readonlyATTRIBUTE_NODE:2
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21835
Inherited from
Node.ATTRIBUTE_NODE
baseURI
readonlybaseURI:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21664
The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.
Inherited from
Node.baseURI
CDATA_SECTION_NODE
readonlyCDATA_SECTION_NODE:4
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21839
node is a CDATASection node.
Inherited from
Node.CDATA_SECTION_NODE
childNodes
readonlychildNodes:NodeListOf<ChildNode>
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21670
The read-only childNodes property of the Node interface returns a live the first child node is assigned index 0.
Inherited from
Node.childNodes
COMMENT_NODE
readonlyCOMMENT_NODE:8
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21845
node is a Comment node.
Inherited from
Node.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
readonlyDOCUMENT_FRAGMENT_NODE:11
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21851
node is a DocumentFragment node.
Inherited from
Node.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
readonlyDOCUMENT_NODE:9
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21847
node is a document.
Inherited from
Node.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
readonlyDOCUMENT_POSITION_CONTAINED_BY:16
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21862
Set when other is a descendant of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
readonlyDOCUMENT_POSITION_CONTAINS:8
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21860
Set when other is an ancestor of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
readonlyDOCUMENT_POSITION_DISCONNECTED:1
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21854
Set when node and other are not in the same tree.
Inherited from
Node.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
readonlyDOCUMENT_POSITION_FOLLOWING:4
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21858
Set when other is following node.
Inherited from
Node.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
readonlyDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21863
Inherited from
Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
readonlyDOCUMENT_POSITION_PRECEDING:2
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21856
Set when other is preceding node.
Inherited from
Node.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
readonlyDOCUMENT_TYPE_NODE:10
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21849
node is a doctype.
Inherited from
Node.DOCUMENT_TYPE_NODE
ELEMENT_NODE
readonlyELEMENT_NODE:1
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21834
node is an element.
Inherited from
Node.ELEMENT_NODE
ENTITY_NODE
readonlyENTITY_NODE:6
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21841
Inherited from
Node.ENTITY_NODE
ENTITY_REFERENCE_NODE
readonlyENTITY_REFERENCE_NODE:5
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21840
Inherited from
Node.ENTITY_REFERENCE_NODE
firstChild
readonlyfirstChild:ChildNode
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21676
The read-only firstChild property of the Node interface returns the node's first child in the tree, or null if the node has no children.
Inherited from
Node.firstChild
isConnected
readonlyisConnected:boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21682
The read-only isConnected property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.
Inherited from
Node.isConnected
lastChild
readonlylastChild:ChildNode
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21688
The read-only lastChild property of the Node interface returns the last child of the node, or null if there are no child nodes.
Inherited from
Node.lastChild
nextSibling
readonlynextSibling:ChildNode
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21694
The read-only nextSibling property of the Node interface returns the node immediately following the specified one in their parent's Node.childNodes, or returns null if the specified node is the last child in the parent element.
Inherited from
Node.nextSibling
nodeName
readonlynodeName:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21700
The read-only nodeName property of Node returns the name of the current node as a string.
Inherited from
Node.nodeName
nodeType
readonlynodeType:number
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21706
The read-only nodeType property of a Node interface is an integer that identifies what the node is.
Inherited from
Node.nodeType
nodeValue
nodeValue:
string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21712
The nodeValue property of the Node interface returns or sets the value of the current node.
Inherited from
Node.nodeValue
NOTATION_NODE
readonlyNOTATION_NODE:12
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21852
Inherited from
Node.NOTATION_NODE
ownerDocument
readonlyownerDocument:Document
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21718
The read-only ownerDocument property of the Node interface returns the top-level document object of the node.
Inherited from
Node.ownerDocument
parentElement
readonlyparentElement:HTMLElement
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21724
The read-only parentElement property of Node interface returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element.
Inherited from
Node.parentElement
parentNode
readonlyparentNode:ParentNode
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21730
The read-only parentNode property of the Node interface returns the parent of the specified node in the DOM tree.
Inherited from
Node.parentNode
previousSibling
readonlypreviousSibling:ChildNode
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21736
The read-only previousSibling property of the Node interface returns the node immediately preceding the specified one in its parent's or null if the specified node is the first in that list.
Inherited from
Node.previousSibling
PROCESSING_INSTRUCTION_NODE
readonlyPROCESSING_INSTRUCTION_NODE:7
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21843
node is a ProcessingInstruction node.
Inherited from
Node.PROCESSING_INSTRUCTION_NODE
TEXT_NODE
readonlyTEXT_NODE:3
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21837
node is a Text node.
Inherited from
Node.TEXT_NODE
textContent
textContent:
string
Defined in: src/modules/utils/fakedom.d.ts:12
The textContent property of the Node interface represents the text content of the node and its descendants.
Overrides
Node.textContent
ATTRIBUTE_NODE
readonlystaticATTRIBUTE_NODE:2
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21871
Inherited from
Node.ATTRIBUTE_NODE
CDATA_SECTION_NODE
readonlystaticCDATA_SECTION_NODE:4
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21875
node is a CDATASection node.
Inherited from
Node.CDATA_SECTION_NODE
COMMENT_NODE
readonlystaticCOMMENT_NODE:8
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21881
node is a Comment node.
Inherited from
Node.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
readonlystaticDOCUMENT_FRAGMENT_NODE:11
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21887
node is a DocumentFragment node.
Inherited from
Node.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
readonlystaticDOCUMENT_NODE:9
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21883
node is a document.
Inherited from
Node.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
readonlystaticDOCUMENT_POSITION_CONTAINED_BY:16
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21898
Set when other is a descendant of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
readonlystaticDOCUMENT_POSITION_CONTAINS:8
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21896
Set when other is an ancestor of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
readonlystaticDOCUMENT_POSITION_DISCONNECTED:1
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21890
Set when node and other are not in the same tree.
Inherited from
Node.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
readonlystaticDOCUMENT_POSITION_FOLLOWING:4
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21894
Set when other is following node.
Inherited from
Node.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
readonlystaticDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21899
Inherited from
Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
readonlystaticDOCUMENT_POSITION_PRECEDING:2
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21892
Set when other is preceding node.
Inherited from
Node.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
readonlystaticDOCUMENT_TYPE_NODE:10
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21885
node is a doctype.
Inherited from
Node.DOCUMENT_TYPE_NODE
ELEMENT_NODE
readonlystaticELEMENT_NODE:1
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21870
node is an element.
Inherited from
Node.ELEMENT_NODE
ENTITY_NODE
readonlystaticENTITY_NODE:6
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21877
Inherited from
Node.ENTITY_NODE
ENTITY_REFERENCE_NODE
readonlystaticENTITY_REFERENCE_NODE:5
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21876
Inherited from
Node.ENTITY_REFERENCE_NODE
NOTATION_NODE
readonlystaticNOTATION_NODE:12
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21888
Inherited from
Node.NOTATION_NODE
PROCESSING_INSTRUCTION_NODE
readonlystaticPROCESSING_INSTRUCTION_NODE:7
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21879
node is a ProcessingInstruction node.
Inherited from
Node.PROCESSING_INSTRUCTION_NODE
TEXT_NODE
readonlystaticTEXT_NODE:3
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21873
node is a Text node.
Inherited from
Node.TEXT_NODE
Methods
addEventListener()
addEventListener(
type,callback,options?):void
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11569
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Parameters
type
string
callback
EventListenerOrEventListenerObject
options?
boolean | AddEventListenerOptions
Returns
void
Inherited from
Node.addEventListener
appendChild()
appendChild<
T>(node):T
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21748
The appendChild() method of the Node interface adds a node to the end of the list of children of a specified parent node.
Type Parameters
T
T extends Node
Parameters
node
T
Returns
T
Inherited from
Node.appendChild
cloneNode()
cloneNode(
subtree?):Node
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21754
The cloneNode() method of the Node interface returns a duplicate of the node on which this method was called.
Parameters
subtree?
boolean
Returns
Node
Inherited from
Node.cloneNode
compareDocumentPosition()
compareDocumentPosition(
other):number
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21760
The compareDocumentPosition() method of the Node interface reports the position of its argument node relative to the node on which it is called.
Parameters
other
Node
Returns
number
Inherited from
Node.compareDocumentPosition
contains()
contains(
other):boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21766
The contains() method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children's direct children, and so on.
Parameters
other
Node
Returns
boolean
Inherited from
Node.contains
dispatchEvent()
dispatchEvent(
event):boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11575
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Parameters
event
Event
Returns
boolean
Inherited from
Node.dispatchEvent
getRootNode()
getRootNode(
options?):Node
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21772
The getRootNode() method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.
Parameters
options?
GetRootNodeOptions
Returns
Node
Inherited from
Node.getRootNode
hasChildNodes()
hasChildNodes():
boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21778
The hasChildNodes() method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.
Returns
boolean
Inherited from
Node.hasChildNodes
insertBefore()
insertBefore<
T>(node,child):T
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21784
The insertBefore() method of the Node interface inserts a node before a reference node as a child of a specified parent node.
Type Parameters
T
T extends Node
Parameters
node
T
child
Node
Returns
T
Inherited from
Node.insertBefore
isDefaultNamespace()
isDefaultNamespace(
namespace):boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21790
The isDefaultNamespace() method of the Node interface accepts a namespace URI as an argument.
Parameters
namespace
string
Returns
boolean
Inherited from
Node.isDefaultNamespace
isEqualNode()
isEqualNode(
otherNode):boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21796
The isEqualNode() method of the Node interface tests whether two nodes are equal.
Parameters
otherNode
Node
Returns
boolean
Inherited from
Node.isEqualNode
isSameNode()
isSameNode(
otherNode):boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21802
The isSameNode() method of the Node interface is a legacy alias the for the === strict equality operator.
Parameters
otherNode
Node
Returns
boolean
Inherited from
Node.isSameNode
lookupNamespaceURI()
lookupNamespaceURI(
prefix):string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21808
The lookupNamespaceURI() method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and null if not).
Parameters
prefix
string
Returns
string
Inherited from
Node.lookupNamespaceURI
lookupPrefix()
lookupPrefix(
namespace):string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21814
The lookupPrefix() method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not.
Parameters
namespace
string
Returns
string
Inherited from
Node.lookupPrefix
normalize()
normalize():
void
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21820
The normalize() method of the Node interface puts the specified node and all of its sub-tree into a normalized form.
Returns
void
Inherited from
Node.normalize
removeChild()
removeChild<
T>(child):T
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21826
The removeChild() method of the Node interface removes a child node from the DOM and returns the removed node.
Type Parameters
T
T extends Node
Parameters
child
T
Returns
T
Inherited from
Node.removeChild
removeEventListener()
removeEventListener(
type,callback,options?):void
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11581
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Parameters
type
string
callback
EventListenerOrEventListenerObject
options?
boolean | EventListenerOptions
Returns
void
Inherited from
Node.removeEventListener
replaceChild()
replaceChild<
T>(node,child):T
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:21832
The replaceChild() method of the Node interface replaces a child node within the given (parent) node.
Type Parameters
T
T extends Node
Parameters
node
Node
child
T
Returns
T
Inherited from
Node.replaceChild