tw5-typed / core / TW_TextNode
Class: TW_TextNode
core.TW_TextNode
Hierarchy
-
Node
↳
TW_TextNode
Table of contents
Constructors
Properties
- ATTRIBUTE_NODE
- CDATA_SECTION_NODE
- COMMENT_NODE
- DOCUMENT_FRAGMENT_NODE
- DOCUMENT_NODE
- DOCUMENT_POSITION_CONTAINED_BY
- DOCUMENT_POSITION_CONTAINS
- DOCUMENT_POSITION_DISCONNECTED
- DOCUMENT_POSITION_FOLLOWING
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
- DOCUMENT_POSITION_PRECEDING
- DOCUMENT_TYPE_NODE
- ELEMENT_NODE
- ENTITY_NODE
- ENTITY_REFERENCE_NODE
- NOTATION_NODE
- PROCESSING_INSTRUCTION_NODE
- TEXT_NODE
- baseURI
- childNodes
- firstChild
- isConnected
- lastChild
- nextSibling
- nodeName
- nodeType
- nodeValue
- ownerDocument
- parentElement
- parentNode
- previousSibling
- textContent
- ATTRIBUTE_NODE
- CDATA_SECTION_NODE
- COMMENT_NODE
- DOCUMENT_FRAGMENT_NODE
- DOCUMENT_NODE
- DOCUMENT_POSITION_CONTAINED_BY
- DOCUMENT_POSITION_CONTAINS
- DOCUMENT_POSITION_DISCONNECTED
- DOCUMENT_POSITION_FOLLOWING
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
- DOCUMENT_POSITION_PRECEDING
- DOCUMENT_TYPE_NODE
- ELEMENT_NODE
- ENTITY_NODE
- ENTITY_REFERENCE_NODE
- NOTATION_NODE
- PROCESSING_INSTRUCTION_NODE
- TEXT_NODE
Methods
- addEventListener
- appendChild
- cloneNode
- compareDocumentPosition
- contains
- dispatchEvent
- getRootNode
- hasChildNodes
- insertBefore
- isDefaultNamespace
- isEqualNode
- isSameNode
- lookupNamespaceURI
- lookupPrefix
- normalize
- removeChild
- removeEventListener
- replaceChild
Constructors
constructor
• new TW_TextNode(): TW_TextNode
Returns
Inherited from
Node.constructor
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16238
Properties
ATTRIBUTE_NODE
• Readonly
ATTRIBUTE_NODE: 2
Inherited from
Node.ATTRIBUTE_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16205
CDATA_SECTION_NODE
• Readonly
CDATA_SECTION_NODE: 4
node is a CDATASection node.
Inherited from
Node.CDATA_SECTION_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16209
COMMENT_NODE
• Readonly
COMMENT_NODE: 8
node is a Comment node.
Inherited from
Node.COMMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16215
DOCUMENT_FRAGMENT_NODE
• Readonly
DOCUMENT_FRAGMENT_NODE: 11
node is a DocumentFragment node.
Inherited from
Node.DOCUMENT_FRAGMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16221
DOCUMENT_NODE
• Readonly
DOCUMENT_NODE: 9
node is a document.
Inherited from
Node.DOCUMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16217
DOCUMENT_POSITION_CONTAINED_BY
• Readonly
DOCUMENT_POSITION_CONTAINED_BY: 16
Set when other is a descendant of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINED_BY
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16232
DOCUMENT_POSITION_CONTAINS
• Readonly
DOCUMENT_POSITION_CONTAINS: 8
Set when other is an ancestor of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINS
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16230
DOCUMENT_POSITION_DISCONNECTED
• Readonly
DOCUMENT_POSITION_DISCONNECTED: 1
Set when node and other are not in the same tree.
Inherited from
Node.DOCUMENT_POSITION_DISCONNECTED
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16224
DOCUMENT_POSITION_FOLLOWING
• Readonly
DOCUMENT_POSITION_FOLLOWING: 4
Set when other is following node.
Inherited from
Node.DOCUMENT_POSITION_FOLLOWING
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16228
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
• Readonly
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Inherited from
Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16233
DOCUMENT_POSITION_PRECEDING
• Readonly
DOCUMENT_POSITION_PRECEDING: 2
Set when other is preceding node.
Inherited from
Node.DOCUMENT_POSITION_PRECEDING
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16226
DOCUMENT_TYPE_NODE
• Readonly
DOCUMENT_TYPE_NODE: 10
node is a doctype.
Inherited from
Node.DOCUMENT_TYPE_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16219
ELEMENT_NODE
• Readonly
ELEMENT_NODE: 1
node is an element.
Inherited from
Node.ELEMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16204
ENTITY_NODE
• Readonly
ENTITY_NODE: 6
Inherited from
Node.ENTITY_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16211
ENTITY_REFERENCE_NODE
• Readonly
ENTITY_REFERENCE_NODE: 5
Inherited from
Node.ENTITY_REFERENCE_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16210
NOTATION_NODE
• Readonly
NOTATION_NODE: 12
Inherited from
Node.NOTATION_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16222
PROCESSING_INSTRUCTION_NODE
• Readonly
PROCESSING_INSTRUCTION_NODE: 7
node is a ProcessingInstruction node.
Inherited from
Node.PROCESSING_INSTRUCTION_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16213
TEXT_NODE
• Readonly
TEXT_NODE: 3
node is a Text node.
Inherited from
Node.TEXT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16207
baseURI
• Readonly
baseURI: string
Returns node's node document's document base URL.
Inherited from
Node.baseURI
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16074
childNodes
• Readonly
childNodes: NodeListOf
<ChildNode
>
Returns the children.
Inherited from
Node.childNodes
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16080
firstChild
• Readonly
firstChild: ChildNode
Returns the first child.
Inherited from
Node.firstChild
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16086
isConnected
• Readonly
isConnected: boolean
Returns true if node is connected and false otherwise.
Inherited from
Node.isConnected
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16092
lastChild
• Readonly
lastChild: ChildNode
Returns the last child.
Inherited from
Node.lastChild
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16098
nextSibling
• Readonly
nextSibling: ChildNode
Returns the next sibling.
Inherited from
Node.nextSibling
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16104
nodeName
• Readonly
nodeName: string
Returns a string appropriate for the type of node.
Inherited from
Node.nodeName
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16110
nodeType
• Readonly
nodeType: number
Returns the type of node.
Inherited from
Node.nodeType
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16116
nodeValue
• nodeValue: string
Inherited from
Node.nodeValue
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16118
ownerDocument
• Readonly
ownerDocument: Document
Returns the node document. Returns null for documents.
Inherited from
Node.ownerDocument
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16124
parentElement
• Readonly
parentElement: HTMLElement
Returns the parent element.
Inherited from
Node.parentElement
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16130
parentNode
• Readonly
parentNode: ParentNode
Returns the parent.
Inherited from
Node.parentNode
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16136
previousSibling
• Readonly
previousSibling: ChildNode
Returns the previous sibling.
Inherited from
Node.previousSibling
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16142
textContent
• textContent: string
Overrides
Node.textContent
Defined in
src/modules/utils/fakedom.d.ts:12
ATTRIBUTE_NODE
▪ Static
Readonly
ATTRIBUTE_NODE: 2
Inherited from
Node.ATTRIBUTE_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16241
CDATA_SECTION_NODE
▪ Static
Readonly
CDATA_SECTION_NODE: 4
node is a CDATASection node.
Inherited from
Node.CDATA_SECTION_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16245
COMMENT_NODE
▪ Static
Readonly
COMMENT_NODE: 8
node is a Comment node.
Inherited from
Node.COMMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16251
DOCUMENT_FRAGMENT_NODE
▪ Static
Readonly
DOCUMENT_FRAGMENT_NODE: 11
node is a DocumentFragment node.
Inherited from
Node.DOCUMENT_FRAGMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16257
DOCUMENT_NODE
▪ Static
Readonly
DOCUMENT_NODE: 9
node is a document.
Inherited from
Node.DOCUMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16253
DOCUMENT_POSITION_CONTAINED_BY
▪ Static
Readonly
DOCUMENT_POSITION_CONTAINED_BY: 16
Set when other is a descendant of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINED_BY
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16268
DOCUMENT_POSITION_CONTAINS
▪ Static
Readonly
DOCUMENT_POSITION_CONTAINS: 8
Set when other is an ancestor of node.
Inherited from
Node.DOCUMENT_POSITION_CONTAINS
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16266
DOCUMENT_POSITION_DISCONNECTED
▪ Static
Readonly
DOCUMENT_POSITION_DISCONNECTED: 1
Set when node and other are not in the same tree.
Inherited from
Node.DOCUMENT_POSITION_DISCONNECTED
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16260
DOCUMENT_POSITION_FOLLOWING
▪ Static
Readonly
DOCUMENT_POSITION_FOLLOWING: 4
Set when other is following node.
Inherited from
Node.DOCUMENT_POSITION_FOLLOWING
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16264
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
▪ Static
Readonly
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Inherited from
Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16269
DOCUMENT_POSITION_PRECEDING
▪ Static
Readonly
DOCUMENT_POSITION_PRECEDING: 2
Set when other is preceding node.
Inherited from
Node.DOCUMENT_POSITION_PRECEDING
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16262
DOCUMENT_TYPE_NODE
▪ Static
Readonly
DOCUMENT_TYPE_NODE: 10
node is a doctype.
Inherited from
Node.DOCUMENT_TYPE_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16255
ELEMENT_NODE
▪ Static
Readonly
ELEMENT_NODE: 1
node is an element.
Inherited from
Node.ELEMENT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16240
ENTITY_NODE
▪ Static
Readonly
ENTITY_NODE: 6
Inherited from
Node.ENTITY_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16247
ENTITY_REFERENCE_NODE
▪ Static
Readonly
ENTITY_REFERENCE_NODE: 5
Inherited from
Node.ENTITY_REFERENCE_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16246
NOTATION_NODE
▪ Static
Readonly
NOTATION_NODE: 12
Inherited from
Node.NOTATION_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16258
PROCESSING_INSTRUCTION_NODE
▪ Static
Readonly
PROCESSING_INSTRUCTION_NODE: 7
node is a ProcessingInstruction node.
Inherited from
Node.PROCESSING_INSTRUCTION_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16249
TEXT_NODE
▪ Static
Readonly
TEXT_NODE: 3
node is a Text node.
Inherited from
Node.TEXT_NODE
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16243
Methods
addEventListener
▸ addEventListener(type
, callback
, options?
): void
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Parameters
Name | Type |
---|---|
type | string |
callback | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
Node.addEventListener
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:8211
appendChild
▸ appendChild<T
>(node
): T
Type parameters
Name | Type |
---|---|
T | extends Node |
Parameters
Name | Type |
---|---|
node | T |
Returns
T
Inherited from
Node.appendChild
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16146
cloneNode
▸ cloneNode(deep?
): Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Parameters
Name | Type |
---|---|
deep? | boolean |
Returns
Node
Inherited from
Node.cloneNode
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16152
compareDocumentPosition
▸ compareDocumentPosition(other
): number
Returns a bitmask indicating the position of other relative to node.
Parameters
Name | Type |
---|---|
other | Node |
Returns
number
Inherited from
Node.compareDocumentPosition
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16158
contains
▸ contains(other
): boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
Name | Type |
---|---|
other | Node |
Returns
boolean
Inherited from
Node.contains
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16164
dispatchEvent
▸ dispatchEvent(event
): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
Name | Type |
---|---|
event | Event |
Returns
boolean
Inherited from
Node.dispatchEvent
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:8217
getRootNode
▸ getRootNode(options?
): Node
Returns node's root.
Parameters
Name | Type |
---|---|
options? | GetRootNodeOptions |
Returns
Node
Inherited from
Node.getRootNode
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16170
hasChildNodes
▸ hasChildNodes(): boolean
Returns whether node has children.
Returns
boolean
Inherited from
Node.hasChildNodes
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16176
insertBefore
▸ insertBefore<T
>(node
, child
): T
Type parameters
Name | Type |
---|---|
T | extends Node |
Parameters
Name | Type |
---|---|
node | T |
child | Node |
Returns
T
Inherited from
Node.insertBefore
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16178
isDefaultNamespace
▸ isDefaultNamespace(namespace
): boolean
Parameters
Name | Type |
---|---|
namespace | string |
Returns
boolean
Inherited from
Node.isDefaultNamespace
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16180
isEqualNode
▸ isEqualNode(otherNode
): boolean
Returns whether node and otherNode have the same properties.
Parameters
Name | Type |
---|---|
otherNode | Node |
Returns
boolean
Inherited from
Node.isEqualNode
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16186
isSameNode
▸ isSameNode(otherNode
): boolean
Parameters
Name | Type |
---|---|
otherNode | Node |
Returns
boolean
Inherited from
Node.isSameNode
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16188
lookupNamespaceURI
▸ lookupNamespaceURI(prefix
): string
Parameters
Name | Type |
---|---|
prefix | string |
Returns
string
Inherited from
Node.lookupNamespaceURI
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16190
lookupPrefix
▸ lookupPrefix(namespace
): string
Parameters
Name | Type |
---|---|
namespace | string |
Returns
string
Inherited from
Node.lookupPrefix
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16192
normalize
▸ normalize(): void
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns
void
Inherited from
Node.normalize
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16198
removeChild
▸ removeChild<T
>(child
): T
Type parameters
Name | Type |
---|---|
T | extends Node |
Parameters
Name | Type |
---|---|
child | T |
Returns
T
Inherited from
Node.removeChild
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16200
removeEventListener
▸ removeEventListener(type
, callback
, options?
): void
Removes the event listener in target's event listener list with the same type, callback, and options.
Parameters
Name | Type |
---|---|
type | string |
callback | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
Node.removeEventListener
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:8223
replaceChild
▸ replaceChild<T
>(node
, child
): T
Type parameters
Name | Type |
---|---|
T | extends Node |
Parameters
Name | Type |
---|---|
node | Node |
child | T |
Returns
T
Inherited from
Node.replaceChild
Defined in
node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts:16202