Skip to content

@ralphschuler.webgl shader factory.<internal>.DocumentFragment

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: DocumentFragment

@ralphschuler/webgl-shader-factory.<internal>.DocumentFragment

A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made.

MDN Reference

Hierarchy

Table of contents

Properties

Methods

Properties

ATTRIBUTE_NODE

Readonly ATTRIBUTE_NODE: 2

Inherited from

ParentNode.ATTRIBUTE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16205


CDATA_SECTION_NODE

Readonly CDATA_SECTION_NODE: 4

node is a CDATASection node.

Inherited from

ParentNode.CDATA_SECTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16209


COMMENT_NODE

Readonly COMMENT_NODE: 8

node is a Comment node.

Inherited from

ParentNode.COMMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16215


DOCUMENT_FRAGMENT_NODE

Readonly DOCUMENT_FRAGMENT_NODE: 11

node is a DocumentFragment node.

Inherited from

ParentNode.DOCUMENT_FRAGMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16221


DOCUMENT_NODE

Readonly DOCUMENT_NODE: 9

node is a document.

Inherited from

ParentNode.DOCUMENT_NODE

Defined in

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

ParentNode.DOCUMENT_POSITION_CONTAINED_BY

Defined in

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

ParentNode.DOCUMENT_POSITION_CONTAINS

Defined in

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

ParentNode.DOCUMENT_POSITION_DISCONNECTED

Defined in

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

ParentNode.DOCUMENT_POSITION_FOLLOWING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16228


DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32

Inherited from

ParentNode.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Defined in

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

ParentNode.DOCUMENT_POSITION_PRECEDING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16226


DOCUMENT_TYPE_NODE

Readonly DOCUMENT_TYPE_NODE: 10

node is a doctype.

Inherited from

ParentNode.DOCUMENT_TYPE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16219


ELEMENT_NODE

Readonly ELEMENT_NODE: 1

node is an element.

Inherited from

ParentNode.ELEMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16204


ENTITY_NODE

Readonly ENTITY_NODE: 6

Inherited from

ParentNode.ENTITY_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16211


ENTITY_REFERENCE_NODE

Readonly ENTITY_REFERENCE_NODE: 5

Inherited from

ParentNode.ENTITY_REFERENCE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16210


NOTATION_NODE

Readonly NOTATION_NODE: 12

Inherited from

ParentNode.NOTATION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16222


PROCESSING_INSTRUCTION_NODE

Readonly PROCESSING_INSTRUCTION_NODE: 7

node is a ProcessingInstruction node.

Inherited from

ParentNode.PROCESSING_INSTRUCTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16213


TEXT_NODE

Readonly TEXT_NODE: 3

node is a Text node.

Inherited from

ParentNode.TEXT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16207


baseURI

Readonly baseURI: string

Returns node's node document's document base URL.

MDN Reference

Inherited from

ParentNode.baseURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16074


childElementCount

Readonly childElementCount: number

MDN Reference

Inherited from

ParentNode.childElementCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16763


childNodes

Readonly childNodes: NodeListOf<ChildNode>

Returns the children.

MDN Reference

Inherited from

ParentNode.childNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16080


children

Readonly children: HTMLCollection

Returns the child elements.

MDN Reference

Inherited from

ParentNode.children

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16769


firstChild

Readonly firstChild: null | ChildNode

Returns the first child.

MDN Reference

Inherited from

ParentNode.firstChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16086


firstElementChild

Readonly firstElementChild: null | Element

Returns the first child that is an element, and null otherwise.

MDN Reference

Inherited from

ParentNode.firstElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16775


isConnected

Readonly isConnected: boolean

Returns true if node is connected and false otherwise.

MDN Reference

Inherited from

ParentNode.isConnected

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16092


lastChild

Readonly lastChild: null | ChildNode

Returns the last child.

MDN Reference

Inherited from

ParentNode.lastChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16098


lastElementChild

Readonly lastElementChild: null | Element

Returns the last child that is an element, and null otherwise.

MDN Reference

Inherited from

ParentNode.lastElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16781


nextSibling

Readonly nextSibling: null | ChildNode

Returns the next sibling.

MDN Reference

Inherited from

ParentNode.nextSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16104


nodeName

Readonly nodeName: string

Returns a string appropriate for the type of node.

MDN Reference

Inherited from

ParentNode.nodeName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16110


nodeType

Readonly nodeType: number

Returns the type of node.

MDN Reference

Inherited from

ParentNode.nodeType

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16116


nodeValue

nodeValue: null | string

MDN Reference

Inherited from

ParentNode.nodeValue

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16118


ownerDocument

Readonly ownerDocument: Document

Returns the node document. Returns null for documents.

MDN Reference

Overrides

ParentNode.ownerDocument

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7386


parentElement

Readonly parentElement: null | HTMLElement

Returns the parent element.

MDN Reference

Inherited from

ParentNode.parentElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16130


parentNode

Readonly parentNode: null | ParentNode

Returns the parent.

MDN Reference

Inherited from

ParentNode.parentNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16136


previousSibling

Readonly previousSibling: null | ChildNode

Returns the previous sibling.

MDN Reference

Inherited from

ParentNode.previousSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16142


textContent

textContent: null | string

MDN Reference

Inherited from

ParentNode.textContent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16144

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.

MDN Reference

Parameters

Name Type
type string
callback null | EventListenerOrEventListenerObject
options? boolean | AddEventListenerOptions

Returns

void

Inherited from

ParentNode.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8211


append

append(...nodes): void

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ParentNode.append

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16789


appendChild

appendChild<T>(node): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T

Returns

T

Inherited from

ParentNode.appendChild

Defined in

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.

MDN Reference

Parameters

Name Type
deep? boolean

Returns

Node

Inherited from

ParentNode.cloneNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16152


compareDocumentPosition

compareDocumentPosition(other): number

Returns a bitmask indicating the position of other relative to node.

MDN Reference

Parameters

Name Type
other Node

Returns

number

Inherited from

ParentNode.compareDocumentPosition

Defined in

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.

MDN Reference

Parameters

Name Type
other null | Node

Returns

boolean

Inherited from

ParentNode.contains

Defined in

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.

MDN Reference

Parameters

Name Type
event Event

Returns

boolean

Inherited from

ParentNode.dispatchEvent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8217


getElementById

getElementById(elementId): null | HTMLElement

Returns the first element within node's descendants whose ID is elementId.

MDN Reference

Parameters

Name Type
elementId string

Returns

null | HTMLElement

Overrides

NonElementParentNode.getElementById

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7387


getRootNode

getRootNode(options?): Node

Returns node's root.

MDN Reference

Parameters

Name Type
options? GetRootNodeOptions

Returns

Node

Inherited from

ParentNode.getRootNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16170


hasChildNodes

hasChildNodes(): boolean

Returns whether node has children.

MDN Reference

Returns

boolean

Inherited from

ParentNode.hasChildNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16176


insertBefore

insertBefore<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T
child null | Node

Returns

T

Inherited from

ParentNode.insertBefore

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16178


isDefaultNamespace

isDefaultNamespace(namespace): boolean

MDN Reference

Parameters

Name Type
namespace null | string

Returns

boolean

Inherited from

ParentNode.isDefaultNamespace

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16180


isEqualNode

isEqualNode(otherNode): boolean

Returns whether node and otherNode have the same properties.

MDN Reference

Parameters

Name Type
otherNode null | Node

Returns

boolean

Inherited from

ParentNode.isEqualNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16186


isSameNode

isSameNode(otherNode): boolean

MDN Reference

Parameters

Name Type
otherNode null | Node

Returns

boolean

Inherited from

ParentNode.isSameNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16188


lookupNamespaceURI

lookupNamespaceURI(prefix): null | string

MDN Reference

Parameters

Name Type
prefix null | string

Returns

null | string

Inherited from

ParentNode.lookupNamespaceURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16190


lookupPrefix

lookupPrefix(namespace): null | string

MDN Reference

Parameters

Name Type
namespace null | string

Returns

null | string

Inherited from

ParentNode.lookupPrefix

Defined in

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.

MDN Reference

Returns

void

Inherited from

ParentNode.normalize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16198


prepend

prepend(...nodes): void

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ParentNode.prepend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16797


querySelector

querySelector<K>(selectors): null | HTMLElementTagNameMap[K]

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | HTMLElementTagNameMap[K]

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16803

querySelector<K>(selectors): null | SVGElementTagNameMap[K]

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | SVGElementTagNameMap[K]

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16804

querySelector<K>(selectors): null | MathMLElementTagNameMap[K]

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | MathMLElementTagNameMap[K]

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16805

querySelector<K>(selectors): null | HTMLElementDeprecatedTagNameMap[K]

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

null | HTMLElementDeprecatedTagNameMap[K]

Deprecated

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16807

querySelector<E>(selectors): null | E

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

null | E

Inherited from

ParentNode.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16808


querySelectorAll

querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>

Returns all element descendants of node that match selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16814

querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16815

querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<MathMLElementTagNameMap[K]>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16816

querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16818

querySelectorAll<E>(selectors): NodeListOf<E>

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

NodeListOf<E>

Inherited from

ParentNode.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16819


removeChild

removeChild<T>(child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
child T

Returns

T

Inherited from

ParentNode.removeChild

Defined in

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.

MDN Reference

Parameters

Name Type
type string
callback null | EventListenerOrEventListenerObject
options? boolean | EventListenerOptions

Returns

void

Inherited from

ParentNode.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8223


replaceChild

replaceChild<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node Node
child T

Returns

T

Inherited from

ParentNode.replaceChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16202


replaceChildren

replaceChildren(...nodes): void

Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

ParentNode.replaceChildren

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16827

Typescript Libraries

Modules

Namespaces

Clone this wiki locally