Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/capricorn86/happy-dom
/ functions
Functions
4,499 in github.com/capricorn86/happy-dom
⨍
Functions
4,499
◇
Types & classes
1,211
↓ 1 callers
Method
#onIncomingRequest
* Triggered on incoming request. * * @param request Request. * @param response Response. * @returns Promise.
packages/@happy-dom/server-renderer/src/ServerRendererServer.ts:130
↓ 1 callers
Method
#processKeyframe
* Processes a keyframe. * * @param keyframe Keyframe. * @returns Computed keyframe.
packages/happy-dom/src/animation/KeyframeEffect.ts:232
↓ 1 callers
Method
#renderPage
* Renders a page. * * @param browser Browser. * @param item Item.
packages/@happy-dom/server-renderer/src/ServerRendererBrowser.ts:91
↓ 1 callers
Method
#saveCache
* Saves cache to disk. * * @param browser Browser.
packages/@happy-dom/server-renderer/src/ServerRendererBrowser.ts:135
↓ 1 callers
Method
#sendAsync
* Sends the request to the server asynchronously. * * @param body Optional data to send as request body.
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:373
↓ 1 callers
Method
#sendSync
* Sends the request to the server synchronously. * * @param body Optional data to send as request body.
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:501
↓ 1 callers
Method
#serializeToString
* Serializes a node into XML. * * @param root Root node. * @param [inheritedDefaultNamespace] Default namespace. * @param [inheritedNamespaceP
packages/happy-dom/src/xml-serializer/XMLSerializer.ts:38
↓ 1 callers
Method
#validateSandboxFlags
* * @param tokens * @param vconsole
packages/happy-dom/src/nodes/html-iframe-element/HTMLIFrameElement.ts:337
↓ 1 callers
Method
#validateSecureProtocol
* See Sec-WebSocket-Protocol-Client, which is for the syntax of an entire header value. This function checks if a single header conforms to the rules.
packages/happy-dom/src/web-socket/WebSocket.ts:405
↓ 1 callers
Function
GZIP_TO_STRING
(chunks: Buffer[])
packages/@happy-dom/server-renderer/test/ServerRendererServer.test.ts:19
↓ 1 callers
Function
NODE_TO_STRING
(node: Node)
packages/happy-dom/test/tree-walker/NodeIterator.test.ts:10
↓ 1 callers
Function
NODE_TO_STRING
(node: Node)
packages/happy-dom/test/tree-walker/TreeWalker.test.ts:11
↓ 1 callers
Method
abort
* Aborts the signal. * * @param [reason] Reason.
packages/happy-dom/src/fetch/AbortController.ts:22
↓ 1 callers
Method
abort
* Returns an AbortSignal instance that has been set as aborted. * * @param [reason] Reason. * @returns AbortSignal instance.
packages/happy-dom/src/fetch/AbortSignal.ts:113
↓ 1 callers
Method
abort
* Aborts all async tasks.
packages/happy-dom/src/window/DetachedWindowAPI.ts:61
↓ 1 callers
Method
abort
* Aborts a request.
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:339
↓ 1 callers
Method
add
* Adds tokens. * * @param tokens Tokens.
packages/happy-dom/src/dom/DOMTokenList.ts:255
↓ 1 callers
Method
addCue
* Adds a cue to the track list. * * @param cue Text track cue.
packages/happy-dom/src/nodes/html-media-element/TextTrack.ts:136
↓ 1 callers
Method
addEventListener
* @override
packages/happy-dom/src/match-media/MediaQueryList.ts:105
↓ 1 callers
Method
addEventListener
* Adds an event listener. * * @param type Event type. * @param listener Listener. * @param options An object that specifies characteristics ab
packages/happy-dom/src/event/EventTarget.ts:72
↓ 1 callers
Method
addRange
* Adds a range. * * @see https://w3c.github.io/selection-api/#dom-selection-addrange * @param newRange Range.
packages/happy-dom/src/selection/Selection.ts:181
↓ 1 callers
Method
addResolveListener
* Add a hook to be called when the module is resolved. * * @param resolve Resolve. * @param reject Reject.
packages/happy-dom/src/module/UnresolvedModule.ts:53
↓ 1 callers
Method
addTextTrack
* Adds a new text track to the media element. * * @param kind The kind of text track. * @param label The label of the text track. * @param lan
packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts:798
↓ 1 callers
Method
adoptNode
* Adopts a node. * * @param node Node to adopt. * @returns Adopted node.
packages/happy-dom/src/nodes/document/Document.ts:2183
↓ 1 callers
Function
after
* Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode. DOMString objects are inserte
packages/happy-dom/src/nodes/character-data/CharacterData.ts:206
↓ 1 callers
Method
animate
* Creates and starts an animation for the element. * * @param keyframes Keyframes. * @param options Timing options. * @returns Animation.
packages/happy-dom/src/nodes/element/Element.ts:1478
↓ 1 callers
Method
append
* Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
packages/happy-dom/src/nodes/parent-node/ParentNodeUtility.ts:21
↓ 1 callers
Method
appendRule
* Appends a rule. * * @param rule Rule. E.g. "0% { transform: rotate(360deg); }".
packages/happy-dom/src/css/rules/CSSKeyframesRule.ts:70
↓ 1 callers
Method
applyConstraints
* Applies constraints. * * @param _constraints Constraints. * @param constraints
packages/happy-dom/src/nodes/html-media-element/MediaStreamTrack.ts:105
↓ 1 callers
Method
applyDebugging
* Applies debugging.
packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts:262
↓ 1 callers
Method
arrayBuffer
* Returns array buffer. * * @returns Array buffer.
packages/happy-dom/src/fetch/Request.ts:297
↓ 1 callers
Method
arrayBuffer
* Returns array buffer. * * @returns Array buffer.
packages/happy-dom/src/fetch/Response.ts:110
↓ 1 callers
Method
atob
* Decodes a string of data which has been encoded using Base64 encoding. * * @see https://developer.mozilla.org/en-US/docs/Web/API/atob * @see h
packages/happy-dom/src/base64/Base64.ts:59
↓ 1 callers
Method
attachEvent
* Adds an event listener. * * TODO: * Was used by with IE8- and Opera. React believed Happy DOM was a legacy browser and used them, but that is
packages/happy-dom/src/event/EventTarget.ts:179
↓ 1 callers
Method
back
* Goes to the previous page in session history.
packages/happy-dom/src/history/History.ts:83
↓ 1 callers
Function
before
* Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode. DOMString objects are insert
packages/happy-dom/src/nodes/character-data/CharacterData.ts:197
↓ 1 callers
Method
beforeContentCallback
(window)
packages/@happy-dom/server-renderer/src/ServerRendererPage.ts:84
↓ 1 callers
Method
blur
* Triggers a blur event. * * @param element Element.
packages/happy-dom/src/nodes/html-element/HTMLElementUtility.ts:15
↓ 1 callers
Method
btoa
* Creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data
packages/happy-dom/src/base64/Base64.ts:17
↓ 1 callers
Method
buffer
* Returns buffer. * * @returns Buffer.
packages/happy-dom/src/fetch/Response.ts:172
↓ 1 callers
Method
canPlayType
* Reports how likely it is that the current browser will be able to play media of a given MIME type. * * @param _type MIME type. * @returns Can
packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts:850
↓ 1 callers
Method
cancelAnimationFrame
* Mock animation frames with timeouts. * * @param id ID.
packages/happy-dom/src/window/BrowserWindow.ts:2693
↓ 1 callers
Method
cancelWatchAvailability
* Cancels the request to monitor the availability of remote playback devices.
packages/happy-dom/src/nodes/html-media-element/RemotePlayback.ts:37
↓ 1 callers
Method
checkBoundaries
* Checks if a value is within the boundaries of min and max. * * @param value * @param min * @param max
packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts:126
↓ 1 callers
Method
checkEnclosure
* Returns true if the rendered content of the given element is entirely contained within the supplied rectangle. * * @param _element SVG Element.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:417
↓ 1 callers
Method
checkIntersection
* Returns true if the rendered content of the given element intersects the supplied rectangle. * * @param _element SVG Element. * @param _rect S
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:406
↓ 1 callers
Method
checkValidity
* Checks validity. * * @returns "true" if the field is valid.
packages/happy-dom/src/nodes/html-button-element/HTMLButtonElement.ts:340
↓ 1 callers
Method
checkValidity
* Checks validity. * * @returns "true" if the field is valid.
packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts:608
↓ 1 callers
Method
checkValidity
* Checks validity. * * @returns "true" if the field is valid.
packages/happy-dom/src/nodes/html-select-element/HTMLSelectElement.ts:675
↓ 1 callers
Method
checkValidity
* Checks validity. * * @returns "true" if the field is valid.
packages/happy-dom/src/nodes/html-output-element/HTMLOutputElement.ts:158
↓ 1 callers
Method
checkValidity
* Checks validity. * * @returns "true" if the field is valid.
packages/happy-dom/src/nodes/html-object-element/HTMLObjectElement.ts:202
↓ 1 callers
Method
checkValidity
* Checks validity. * * @returns "true" if the field is valid.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1374
↓ 1 callers
Method
checkVisibility
* Checks if the element is visible. * * @param [options] Options. * @param [options.contentVisibilityAuto] Set to "true" to check "content-visib
packages/happy-dom/src/nodes/element/Element.ts:1426
↓ 1 callers
Method
clear
* Clears the cache. * * @param [options] Options. * @param [options.url] URL. * @param [options.toTime] Time in MS.
packages/happy-dom/src/fetch/cache/response/IResponseCache.ts:36
↓ 1 callers
Method
clear
* Clears the cache.
packages/happy-dom/src/fetch/cache/preflight/IPreflightResponseCache.ts:32
↓ 1 callers
Method
clear
* Clears all items from the list.
packages/happy-dom/src/svg/SVGStringList.ts:169
↓ 1 callers
Method
clearCache
* Clears the internal caches.
packages/happy-dom/src/module/ModuleURLUtility.ts:66
↓ 1 callers
Method
clearData
* Clears the data.
packages/happy-dom/src/event/DataTransfer.ts:55
↓ 1 callers
Method
clearRect
(x: number, y: number, w: number, h: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:116
↓ 1 callers
Method
clone
* Returns a clone. * * @returns Clone.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.ts:538
↓ 1 callers
Method
cloneContents
* Returns a DocumentFragment copying the objects of type Node included in the Range. * * @see https://dom.spec.whatwg.org/#concept-range-clone *
packages/happy-dom/src/range/Range.ts:277
↓ 1 callers
Method
cloneRange
* Returns a Range object with boundary points identical to the cloned Range. * * @see https://dom.spec.whatwg.org/#dom-range-clonerange * @retur
packages/happy-dom/src/range/Range.ts:420
↓ 1 callers
Method
close
* Closes the workers and browser.
packages/@happy-dom/server-renderer/src/ServerRenderer.ts:167
↓ 1 callers
Method
closePage
* Closes the page. * * @param page Browser page.
packages/@happy-dom/server-renderer/src/ServerRendererPage.ts:276
↓ 1 callers
Method
collapse
* Collapses the current selection to a single point. * * @see https://w3c.github.io/selection-api/#dom-selection-collapse * @param node Node.
packages/happy-dom/src/selection/Selection.ts:249
↓ 1 callers
Method
collapseToEnd
* Collapses the selection to the end. * * @see https://w3c.github.io/selection-api/#dom-selection-collapsetoend
packages/happy-dom/src/selection/Selection.ts:303
↓ 1 callers
Method
collapseToStart
* Collapses the selection to the start. * * @see https://w3c.github.io/selection-api/#dom-selection-collapsetostart
packages/happy-dom/src/selection/Selection.ts:327
↓ 1 callers
Method
compareBoundaryPoints
* Compares the boundary points of the Range with those of another range. * * @see https://dom.spec.whatwg.org/#dom-range-compareboundarypoints *
packages/happy-dom/src/range/Range.ts:170
↓ 1 callers
Method
compareDocumentPosition
* Reports the position of its argument node relative to the node on which it is called. * * @see https://dom.spec.whatwg.org/#dom-node-comparedocu
packages/happy-dom/src/nodes/node/Node.ts:1146
↓ 1 callers
Method
comparePoint
* Returns -1, 0, or 1 depending on whether the referenceNode is before, the same as, or after the Range. * * @see https://dom.spec.whatwg.org/#dom
packages/happy-dom/src/range/Range.ts:240
↓ 1 callers
Method
compliesWithCrossOriginPolicy
* Checks if the request complies with the Cross-Origin policy. * * @returns True if it complies with the policy.
packages/happy-dom/src/fetch/SyncFetch.ts:375
↓ 1 callers
Method
compliesWithCrossOriginPolicy
* Checks if the request complies with the Cross-Origin policy. * * @returns True if it complies with the policy.
packages/happy-dom/src/fetch/Fetch.ts:443
↓ 1 callers
Method
connect
* Connects to the worker.
packages/@happy-dom/server-renderer/src/ServerRendererBrowserWorker.ts:12
↓ 1 callers
Method
connect
* Connects to the worker.
packages/@happy-dom/server-renderer/src/ServerRendererPageWorker.ts:20
↓ 1 callers
Method
contains
* Check if the list contains a class. * * @param className Class name. * @returns TRUE if it contains.
packages/happy-dom/src/dom/DOMTokenList.ts:294
↓ 1 callers
Method
containsNode
* Indicates whether a specified node is part of the selection. * * @see https://w3c.github.io/selection-api/#dom-selection-containsnode * @param
packages/happy-dom/src/selection/Selection.ts:354
↓ 1 callers
Method
createCaption
* Returns an HTMLTableCaptionElement representing the first <caption> that is a child of the element. If none is found, a new one is created and inser
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:242
↓ 1 callers
Method
createContextualFragment
* Returns a DocumentFragment by invoking the HTML fragment parsing algorithm or the XML fragment parsing algorithm with the start of the range (the pa
packages/happy-dom/src/range/Range.ts:438
↓ 1 callers
Method
createDocument
* Creates and returns an XML Document. * * TODO: Not fully implemented. * * @param _namespaceURI Namespace URI. * @param qualifiedName Quali
packages/happy-dom/src/dom-implementation/DOMImplementation.ts:30
↓ 1 callers
Method
createEvent
* Creates an event. * * @deprecated * @param type Type. * @returns Event.
packages/happy-dom/src/nodes/document/Document.ts:2096
↓ 1 callers
Method
createImageData
(sw: number, sh: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:96
↓ 1 callers
Method
createObjectURL
* Creates a string containing a URL representing the object given in the parameter. * * @param object Object. * @returns URL.
packages/happy-dom/src/url/URL.ts:38
↓ 1 callers
Method
createPattern
( image: TCanvasImage, repetition: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | '' | null )
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:147
↓ 1 callers
Method
createProxy
* Constructor. * * @param namedNodeMap
packages/happy-dom/src/nodes/element/NamedNodeMapProxyFactory.ts:18
↓ 1 callers
Method
createSVGAngle
* Returns a angle. * * @returns Angle.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:449
↓ 1 callers
Method
createSVGLength
* Returns a length. * * @returns Length.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:440
↓ 1 callers
Method
createSVGMatrix
* Returns a matrix. * * @returns Matrix.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:467
↓ 1 callers
Method
createSVGNumber
* Returns a number. * * @returns Number.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:431
↓ 1 callers
Method
createSVGPoint
* Returns a point. * * @returns Point.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:458
↓ 1 callers
Method
createSVGRect
* Returns a rect. * * @returns Rect.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:476
↓ 1 callers
Method
createSVGTransform
* Returns a transform. * * @returns Transform.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:485
↓ 1 callers
Method
createSVGTransformFromMatrix
* Returns a transform from a matrix. * * @param matrix Matrix.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:494
↓ 1 callers
Method
createTBody
* Returns a HTMLTableSectionElement representing a new <tbody> that is a child of the element. It is inserted in the tree after the last element that
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:224
↓ 1 callers
Method
createTFoot
* Returns an HTMLTableSectionElement representing the first <tfoot> that is a child of the element. If none is found, a new one is created and inserte
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:202
↓ 1 callers
Method
createTHead
* Returns an HTMLTableSectionElement representing the first <thead> that is a child of the element. If none is found, a new one is created and inserte
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:180
↓ 1 callers
Method
cssUnescape
* Unescapes CSS escape sequences in a string value. * * Handles hex escapes (e.g. "\30 " → "0", "\0041" → "A") and character escapes (e.g. "\:" →
packages/happy-dom/src/query-selector/SelectorParser.ts:681
↓ 1 callers
Method
decodeHTMLAttributeValue
* Decodes attribute value. * * Uses the 'entities' library for comprehensive HTML5 character reference support, * including named entities, deci
packages/happy-dom/src/utilities/XMLEncodeUtility.ts:94
↓ 1 callers
Method
decodeXMLAttributeValue
* Decodes attribute value. * * Uses the 'entities' library for comprehensive XML character reference support. * * @param value Value. * @ret
packages/happy-dom/src/utilities/XMLEncodeUtility.ts:64
↓ 1 callers
Method
defineProperty
(target, property, descriptor)
packages/happy-dom/src/nodes/node/NodeList.ts:90
↓ 1 callers
Method
delete
* Deletes a cookie. * * @param nameOrOptions Name or options. * @returns Promise.
packages/happy-dom/src/cookie-store/CookieStore.ts:180
← previous
next →
601–700 of 4,499, ranked by callers