Skip to main content

TW_TextNode

tw5-typed


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​

readonly ATTRIBUTE_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​

readonly baseURI: 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.

MDN Reference

Inherited from​

Node.baseURI


CDATA_SECTION_NODE​

readonly CDATA_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​

readonly childNodes: 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.

MDN Reference

Inherited from​

Node.childNodes


COMMENT_NODE​

readonly COMMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly DOCUMENT_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​

readonly ELEMENT_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​

readonly ENTITY_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​

readonly ENTITY_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​

readonly firstChild: 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.

MDN Reference

Inherited from​

Node.firstChild


isConnected​

readonly isConnected: 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.

MDN Reference

Inherited from​

Node.isConnected


lastChild​

readonly lastChild: 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.

MDN Reference

Inherited from​

Node.lastChild


nextSibling​

readonly nextSibling: 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.

MDN Reference

Inherited from​

Node.nextSibling


nodeName​

readonly nodeName: 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.

MDN Reference

Inherited from​

Node.nodeName


nodeType​

readonly nodeType: 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.

MDN Reference

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.

MDN Reference

Inherited from​

Node.nodeValue


NOTATION_NODE​

readonly NOTATION_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​

readonly ownerDocument: 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.

MDN Reference

Inherited from​

Node.ownerDocument


parentElement​

readonly parentElement: 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.

MDN Reference

Inherited from​

Node.parentElement


parentNode​

readonly parentNode: 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.

MDN Reference

Inherited from​

Node.parentNode


previousSibling​

readonly previousSibling: 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.

MDN Reference

Inherited from​

Node.previousSibling


PROCESSING_INSTRUCTION_NODE​

readonly PROCESSING_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​

readonly TEXT_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.

MDN Reference

Overrides​

Node.textContent


ATTRIBUTE_NODE​

readonly static ATTRIBUTE_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​

readonly static CDATA_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​

readonly static COMMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static DOCUMENT_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​

readonly static ELEMENT_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​

readonly static ENTITY_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​

readonly static ENTITY_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​

readonly static NOTATION_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​

readonly static PROCESSING_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​

readonly static TEXT_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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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).

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

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.

MDN Reference

Type Parameters​

T​

T extends Node

Parameters​

node​

Node

child​

T

Returns​

T

Inherited from​

Node.replaceChild