Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/capricorn86/happy-dom
/ functions
Functions
3,739 in github.com/capricorn86/happy-dom
⨍
Functions
3,739
◇
Types & classes
1,220
↓ 1 callers
Function
sendRequest
( url: string )
packages/@happy-dom/server-renderer/test/ServerRendererServer.test.ts:186
↓ 1 callers
Method
sendRequest
* Sends request. * * @returns Response.
packages/happy-dom/src/fetch/SyncFetch.ts:474
↓ 1 callers
Method
sendRequest
* Sends request. * * @returns Response.
packages/happy-dom/src/fetch/Fetch.ts:542
↓ 1 callers
Method
set
(target, property, newValue)
packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts:87
↓ 1 callers
Method
set
* Sets a cookie. * * @param nameOrOptions Name or options. * @param [value] Value. * @returns Promise.
packages/happy-dom/src/cookie-store/CookieStore.ts:102
↓ 1 callers
Method
setBaseAndExtent
* Sets the selection to be a range including all or parts of two specified DOM nodes, and any content located between them. * * @see https://w3c.g
packages/happy-dom/src/selection/Selection.ts:487
↓ 1 callers
Method
setCurrentTime
* Sets current time. * * @param _seconds Seconds.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:375
↓ 1 callers
Method
setData
* Sets the data. * * @param format Format. * @param data Data.
packages/happy-dom/src/event/DataTransfer.ts:65
↓ 1 callers
Method
setDragImage
* Sets drag image. * * TODO: Implement.
packages/happy-dom/src/event/DataTransfer.ts:125
↓ 1 callers
Method
setHTMLUnsafe
* Parses a string of HTML into a document fragment, without sanitization, which then replaces the shadowroot's original subtree. The HTML string may i
packages/happy-dom/src/nodes/shadow-root/ShadowRoot.ts:257
↓ 1 callers
Method
setKeyframes
* Replaces the keyframes. * * @param keyframes Keyframes.
packages/happy-dom/src/animation/KeyframeEffect.ts:144
↓ 1 callers
Method
setMediaKeys
* Sets media keys. * * @param mediaKeys MediaKeys. * @returns Promise.
packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts:877
↓ 1 callers
Method
setOrientToAuto
* Sets the value of the orient attribute to auto.
packages/happy-dom/src/nodes/svg-marker-element/SVGMarkerElement.ts:218
↓ 1 callers
Method
setPointerCapture
* Designates a specific element as the capture target of future pointer events. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/
packages/happy-dom/src/nodes/element/Element.ts:1023
↓ 1 callers
Method
setSinkId
* Sets sink id. * * @param sinkId SinkId. * @returns Promise.
packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts:887
↓ 1 callers
Method
setSkewX
* Set skew x. * * @param angle Angle.
packages/happy-dom/src/svg/SVGTransform.ts:313
↓ 1 callers
Method
setSkewY
* Set skew y. * * @param angle Angle.
packages/happy-dom/src/svg/SVGTransform.ts:344
↓ 1 callers
Method
setWindowBrowserFrameRelation
* Assigns the window to a browser frame. * * @param window Window. * @param browserFrame Browser frame.
packages/happy-dom/src/window/WindowBrowserContext.ts:96
↓ 1 callers
Method
setWindowSize
* Sets the window size. * * @deprecated Use setViewport() instead. * @param options Options. * @param options.width Width. * @param options.
packages/happy-dom/src/window/DetachedWindowAPI.ts:107
↓ 1 callers
Method
size
* Returns size. * * @returns Size.
packages/happy-dom/src/css/declaration/property-manager/CSSPropertyManager.ts:558
↓ 1 callers
Method
splitBySpace
* Splits by space while respecting nested parentheses. * * @param value Value to split. * @returns Array of parts.
packages/happy-dom/src/css/declaration/property-manager/utilities/CSSStringUtility.ts:54
↓ 1 callers
Method
start
(controller)
packages/happy-dom/src/file/Blob.ts:148
↓ 1 callers
Method
startImmediate
* Starts an immediate. * * @param immediateID Immediate ID.
packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts:122
↓ 1 callers
Method
stepDown
* Steps down. * * @param [increment] Increment.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1414
↓ 1 callers
Method
stepUp
* Steps up. * * @param [increment] Increment.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1402
↓ 1 callers
Method
stop
* Stops the server.
packages/@happy-dom/server-renderer/src/ServerRendererServer.ts:114
↓ 1 callers
Method
stream
* Returns returns a ReadableStream which upon reading returns the data contained within the Blob. * * @returns ReadableStream
packages/happy-dom/src/file/Blob.ts:145
↓ 1 callers
Method
stripQuotes
* Strips quotes from value. * * @param value Value. * @returns Stripped value.
packages/@happy-dom/server-renderer/src/utilities/ProcessArgumentsParser.ts:387
↓ 1 callers
Method
submit
* Submits form. No submit event is raised. In particular, the form's "submit" event handler is not run.
packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts:408
↓ 1 callers
Method
table
* Displays tabular data as a table. * * @param data Data.
packages/happy-dom/src/console/IConsole.ts:115
↓ 1 callers
Method
terminate
()
packages/happy-dom/test/web-socket/WebSocket.test.ts:63
↓ 1 callers
Method
throwIfAborted
* Throws an "AbortError" if the signal has been aborted.
packages/happy-dom/src/fetch/AbortSignal.ts:101
↓ 1 callers
Method
time
* Starts a timer you can use to track how long an operation takes. * * @param label Label.
packages/happy-dom/src/console/IConsole.ts:122
↓ 1 callers
Method
timeEnd
* Stops a timer that was previously started by calling console.time(). * The method logs the elapsed time in milliseconds. * * @param label Labe
packages/happy-dom/src/console/IConsole.ts:130
↓ 1 callers
Method
timeLog
* Logs the current value of a timer that was previously started by calling console.time(). * The method logs the elapsed time in milliseconds. *
packages/happy-dom/src/console/IConsole.ts:139
↓ 1 callers
Method
timeStamp
* Adds a single marker to the browser's Performance tool.
packages/happy-dom/src/console/IConsole.ts:144
↓ 1 callers
Function
timeoutLoop
()
packages/happy-dom/test/window/BrowserWindow.test.ts:1662
↓ 1 callers
Method
toFloat32Array
* Returns a *Float32Array* containing elements which comprise the matrix. * * The method can return either the 16 elements or the 6 elements depen
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts:308
↓ 1 callers
Method
toFloat64Array
* Returns a *Float64Array* containing elements which comprise the matrix. * * The method can return either the 16 elements or the 6 elements depen
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts:320
↓ 1 callers
Function
toLowerCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules/utilities/stringUtility.js:8
↓ 1 callers
Function
toLowerCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-evaluation-error/utilities/stringUtility.js:3
↓ 1 callers
Function
toLowerCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/external-scripts/utilities/stringUtility.js:9
↓ 1 callers
Function
toLowerCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-not-found-error/utilities/stringUtility.js:3
↓ 1 callers
Function
toLowerCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-compilation-error/utilities/stringUtility.js:3
↓ 1 callers
Method
toPixels
* Returns measurement in pixels. * * @param options Options. * @param options.window Owner window. * @param options.value Measurement (e.g. "1
packages/happy-dom/src/css/declaration/utilities/CSSMeasurementConverter.ts:18
↓ 1 callers
Method
toString
* Returns DOMTokenList value.
packages/happy-dom/src/dom/DOMTokenList.ts:360
↓ 1 callers
Method
toString
* Returns a string representation of the matrix in `CSS` matrix syntax, using the appropriate `CSS` matrix notation. * * Examples: * - `matrix3d
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts:333
↓ 1 callers
Method
toString
* Stringifies a log entry. * * @param logEntry Log entry. * @returns Stringified message.
packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts:14
↓ 1 callers
Method
toString
* Returns string currently being represented by the selection object. * * @returns Selection as string.
packages/happy-dom/src/selection/Selection.ts:536
↓ 1 callers
Method
toString
* Returns value as string. * * @returns Value.
packages/happy-dom/src/css/style-property-map/CSSStyleValue.ts:34
↓ 1 callers
Method
toString
* Returns media string.
packages/happy-dom/src/match-media/MediaQueryItem.ts:49
↓ 1 callers
Function
toUpperCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules/utilities/stringUtility.js:10
↓ 1 callers
Function
toUpperCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-evaluation-error/utilities/stringUtility.js:5
↓ 1 callers
Function
toUpperCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/external-scripts/utilities/stringUtility.js:11
↓ 1 callers
Function
toUpperCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-not-found-error/utilities/stringUtility.js:5
↓ 1 callers
Function
toUpperCase
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-compilation-error/utilities/stringUtility.js:5
↓ 1 callers
Method
toggle
* Toggle a class name. * * @param token A string representing the class name you want to toggle. * @param [force] If included, turns the toggle
packages/happy-dom/src/dom/DOMTokenList.ts:305
↓ 1 callers
Method
toggleAttribute
* Toggle an attribute. * Returns `true` if attribute name is eventually present, and `false` otherwise. * * @param name A DOMString specifying t
packages/happy-dom/src/nodes/element/Element.ts:835
↓ 1 callers
Function
topFunction
()
packages/happy-dom/test/nodes/html-script-element/modules-with-circular-dependency/TopDependency.js:4
↓ 1 callers
Method
trace
* Outputs a stack trace to the console. * * @param message Message. * @param args Arguments.
packages/happy-dom/src/console/IConsole.ts:152
↓ 1 callers
Method
transferControlToOffscreen
* Transfers control to offscreen. * * @returns Offscreen canvas.
packages/happy-dom/src/nodes/html-canvas-element/HTMLCanvasElement.ts:287
↓ 1 callers
Method
transformPoint
* Returns a new DOMPoint instance with the vector transformed using the matrix. * * @param domPoint DOM point compatible object. * @returns A ne
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts:555
↓ 1 callers
Function
trim
(str)
packages/happy-dom/test/nodes/html-script-element/modules/utilities/stringUtility.js:11
↓ 1 callers
Function
trim
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-evaluation-error/utilities/stringUtility.js:6
↓ 1 callers
Function
trim
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/external-scripts/utilities/stringUtility.js:12
↓ 1 callers
Function
trim
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-not-found-error/utilities/stringUtility.js:6
↓ 1 callers
Function
trim
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-compilation-error/utilities/stringUtility.js:6
↓ 1 callers
Function
unmountReactComponent
()
packages/@happy-dom/global-registrator/test/node/react/React.test.tsx:28
↓ 1 callers
Method
unobserve
* Stops observing. * * Not implemented.
packages/happy-dom/src/resize-observer/ResizeObserver.ts:21
↓ 1 callers
Method
unpauseAnimations
* Unpauses animation.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:350
↓ 1 callers
Method
updatePlaybackRate
* Updates the playback rate. * * @param playbackRate Playback rate.
packages/happy-dom/src/animation/Animation.ts:216
↓ 1 callers
Method
updateTiming
* Updates timing properties. * * @param timing Timing properties.
packages/happy-dom/src/animation/KeyframeEffect.ts:126
↓ 1 callers
Method
validate
* Validates configuration. * * @param target Target. * @param source Source. * @param [parentNamespace] Parent namespace.
packages/@happy-dom/server-renderer/src/utilities/ServerRendererConfigurationFactory.ts:63
↓ 1 callers
Method
validate
* Validates settings. * * @param target Target. * @param source Source. * @param [parentNamespace] Parent namespace.
packages/happy-dom/src/browser/BrowserSettingsFactory.ts:65
↓ 1 callers
Method
validateAttributeName
* * @param name the attribute name * @param contentType the attribute has to be valid in * @param context the context in which the error occurre
packages/happy-dom/src/utilities/AttributeUtility.ts:19
↓ 1 callers
Method
validateBody
* Validates request body. * * @throws DOMException * @param request Request.
packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts:60
↓ 1 callers
Method
validateCrossOriginPolicy
* Returns true if the frame navigation complies with the cross origin policy. * * @param frame Frame. * @param toURL URL. * @returns True if t
packages/happy-dom/src/browser/utilities/BrowserFrameValidator.ts:18
↓ 1 callers
Method
validateFrameNavigation
* Returns true if navigation is allowed for the frame. * * @param frame Frame. * @returns True if navigation is allowed for the frame.
packages/happy-dom/src/browser/utilities/BrowserFrameValidator.ts:56
↓ 1 callers
Method
validateMethod
* Validates request method. * * @throws DOMException * @param request Request.
packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts:38
↓ 1 callers
Method
validateRedirect
* Validates request redirect. * * @throws DOMException * @param redirect Redirect.
packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts:105
↓ 1 callers
Method
validateReferrerPolicy
* Validates request referrer policy. * * @throws DOMException * @param referrerPolicy Referrer policy.
packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts:90
↓ 1 callers
Method
validateSelectorText
* Validates a selector text. * * @see https://www.w3.org/TR/CSS21/syndata.html#rule-sets * @param selectorText Selector text. * @returns True
packages/happy-dom/src/css/utilities/CSSRuleParser.ts:304
↓ 1 callers
Method
validateURL
* Validates request URL. * * @throws DOMException * @param url URL.
packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts:75
↓ 1 callers
Method
waitUntilComplete
* Waits for all async tasks to complete. * * @returns Promise.
packages/happy-dom/src/window/DetachedWindowAPI.ts:44
↓ 1 callers
Method
watchAvailability
* Watches the list of available remote playback devices and returns a Promise that resolves with a callbackId of an available remote playback device.
packages/happy-dom/src/nodes/html-media-element/RemotePlayback.ts:30
↓ 1 callers
Method
whenDefined
* When defined. * * @param name Tag name of element.
packages/happy-dom/src/custom-element/CustomElementRegistry.ts:132
↓ 1 callers
Function
writInterface
(rules)
packages/happy-dom/bin/build-css-properties.cjs:87
↓ 1 callers
Method
write
* Appends data. * * @param data Data.
packages/happy-dom/src/fetch/multipart/MultipartReader.ts:62
↓ 1 callers
Method
write
* Replaces the document HTML with new HTML. * * @param html HTML.
packages/happy-dom/src/nodes/document/Document.ts:1729
↓ 1 callers
Function
writePropertyList
(rules)
packages/happy-dom/bin/build-css-properties.cjs:46
↓ 1 callers
Function
writeSnapshotImage
(dataURL: string, snapshotName: string)
packages/@happy-dom/node-canvas-adapter/test/CanvasAdapter.test.ts:8
↓ 1 callers
Method
writeText
* Writes text. * * @param text Text.
packages/happy-dom/src/clipboard/Clipboard.ts:95
Method
#onMessageReceived
* Called when a message has been received. * * @param data Data. * @param isBinary "true" if the data is binary.
packages/happy-dom/src/web-socket/WebSocket.ts:348
Method
#round
* Rounds the value to the given number of decimals. * * @param value The value to round. * @param [decimals] The number of decimals to round to.
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts:1299
Method
CSS
* The CSS interface holds useful CSS-related methods. * * @returns CSS interface.
packages/happy-dom/src/window/BrowserWindow.ts:2137
Function
ReactClipboardComponent
()
packages/@happy-dom/jest-environment/test/react/ReactComponents.tsx:78
Method
URL
* Returns URL. * * @returns URL of the current document. *
packages/happy-dom/src/nodes/document/Document.ts:1420
Method
[PropertySymbol.abort]
* Aborts the signal. * * @param [reason] Reason.
packages/happy-dom/src/fetch/AbortSignal.ts:83
Method
[PropertySymbol.addIdentifierToWindow]
* Adds identifier to the window object. * * @param id Identifier.
packages/happy-dom/src/nodes/element/Element.ts:1719
Method
[PropertySymbol.appendChild]
* @override
packages/happy-dom/src/nodes/html-document/HTMLDocument.ts:30
← previous
next →
1,001–1,100 of 3,739, ranked by callers