Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/capricorn86/happy-dom
/ functions
Functions
4,456 in github.com/capricorn86/happy-dom
⨍
Functions
4,456
◇
Types & classes
1,192
↓ 4 callers
Method
checkValidity
* Checks validity. * * @returns "true" if validation does'nt fail.
packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts:476
↓ 4 callers
Method
compile
* Compiles code. * * @param sourceURL Source URL. * @param code Code. * @returns Result.
packages/happy-dom/src/javascript/JavaScriptCompiler.ts:75
↓ 4 callers
Method
cookiesToString
* Returns cookie string with key and value. * * @param cookies Cookies. * @returns Cookie string.
packages/happy-dom/src/cookie/urilities/CookieStringUtility.ts:106
↓ 4 callers
Method
createHTMLDocument
* Creates and returns an HTML Document.
packages/happy-dom/src/dom-implementation/DOMImplementation.ts:57
↓ 4 callers
Method
createRange
* Creates a range. * * @returns Range.
packages/happy-dom/src/nodes/document/Document.ts:2124
↓ 4 callers
Method
following
* Returns boolean indicating if nodeB is following nodeA in the document tree. * * Based on: * https://github.com/jsdom/js-symbol-tree/blob/mast
packages/happy-dom/src/nodes/node/NodeUtility.ts:155
↓ 4 callers
Method
getAll
* Returns all values associated with the given name. * * @param name Name. * @returns Values.
packages/happy-dom/src/form-data/FormData.ts:180
↓ 4 callers
Method
getAttributeNS
* Returns namespace attribute value. * * @param namespace Namespace URI. * @param localName Local name.
packages/happy-dom/src/nodes/element/Element.ts:823
↓ 4 callers
Method
getBorderTopRightBottomLeft
* Returns border. * * @param properties Properties. * @param position * @returns Property value
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.ts:669
↓ 4 callers
Method
getElementByTagName
* Returns the first element matching a tag name. * This is not part of the browser standard and is only used internally (used in Document). * *
packages/happy-dom/src/nodes/parent-node/ParentNodeUtility.ts:229
↓ 4 callers
Method
getGlobalExceptInitial
* Returns global, unless it is not set to 'initial' as it is sometimes treated different. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:456
↓ 4 callers
Method
getInitial
* Returns global initial value. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:421
↓ 4 callers
Method
hasAttributeNS
* Returns a boolean value indicating whether the specified element has the namespace attribute or not. * * @param namespace Namespace URI. * @pa
packages/happy-dom/src/nodes/element/Element.ts:848
↓ 4 callers
Method
isContained
* Returns "true" if contained. * * @param node Node. * @param range Range. * @returns "true" if contained.
packages/happy-dom/src/range/RangeUtility.ts:90
↓ 4 callers
Method
matches
* The matches() method checks to see if the Element would be selected by the provided selectorString. * * @param selector Selector. * @returns "
packages/happy-dom/src/nodes/element/Element.ts:1019
↓ 4 callers
Method
newIncognitoContext
* Creates a new incognito context. * * @returns Context.
packages/happy-dom/src/browser/types/IBrowser.ts:43
↓ 4 callers
Method
parse
* Parses a media query string. * * @param options Options. * @param options.window Owner window. * @param options.mediaQuery Media query strin
packages/happy-dom/src/match-media/MediaQueryParser.ts:46
↓ 4 callers
Function
parseInts
(a: string[])
packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts:4
↓ 4 callers
Method
send
* Sends request. * * @returns Response.
packages/happy-dom/src/fetch/SyncFetch.ts:103
↓ 4 callers
Method
setEnd
* Sets the end position of a Range to be located at the given offset into the specified node x. * * @see https://dom.spec.whatwg.org/#dom-range-se
packages/happy-dom/src/range/Range.ts:945
↓ 4 callers
Method
setNamedItem
* Sets named item. * * @param item Item. * @returns Replaced item.
packages/happy-dom/src/nodes/element/NamedNodeMap.ts:128
↓ 4 callers
Method
setSelectionRange
* Set selection range. * * @param start Start. * @param end End. * @param [direction="none"] Direction.
packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts:497
↓ 4 callers
Method
setStart
* Sets the start position of a Range. * * @see https://dom.spec.whatwg.org/#dom-range-setstart * @param node Start node. * @param offset Start
packages/happy-dom/src/range/Range.ts:972
↓ 4 callers
Method
stopImmediatePropagation
* Stops immediate propagation.
packages/happy-dom/src/event/Event.ts:212
↓ 4 callers
Method
stringToCookie
* Returns cookie. * * @param originURL Origin URL. * @param cookieString Cookie string. * @returns Cookie.
packages/happy-dom/src/cookie/urilities/CookieStringUtility.ts:18
↓ 4 callers
Method
toBlob
* Creates a Blob from the canvas content and passes it to the callback. * * @param options Options. * @param options.window The window associate
packages/happy-dom/src/canvas/ICanvasAdapter.ts:57
↓ 4 callers
Method
toDataURL
* Serialize the canvas content as a data URL. * * @param caller Information about the caller, including the canvas element and its associated wind
packages/happy-dom/src/canvas/ICanvasAdapter.ts:44
↓ 4 callers
Method
toString
* Converts properties to string. * * @returns String.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.ts:572
↓ 4 callers
Method
validateBoundaryPoint
* Validates a boundary point. * * @throws DOMException * @param point Boundary point.
packages/happy-dom/src/range/RangeUtility.ts:70
↓ 3 callers
Method
#assignedNodes
* Returns assigned nodes. * * @param name Name. * @param [options] Options. * @param [options.flatten] A boolean value indicating whether to r
packages/happy-dom/src/nodes/html-slot-element/HTMLSlotElement.ts:174
↓ 3 callers
Method
#dispatchEvent
* Dispatches an event with try/catch. * * This is necessary to prevent errors from setting XMLHttpRequest in an invalid state. * * @param even
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:566
↓ 3 callers
Method
#getNodeCanvas
* Returns or creates a node-canvas instance bound to the given canvas element. * * @param canvas The canvas element. * @returns The bound node-c
packages/@happy-dom/node-canvas-adapter/src/CanvasAdapter.ts:44
↓ 3 callers
Method
#loadPage
* Loads an iframe page.
packages/happy-dom/src/nodes/html-iframe-element/HTMLIFrameElement.ts:363
↓ 3 callers
Method
abortAll
* Aborts all tasks. * * @param destroy Destroy.
packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts:303
↓ 3 callers
Method
appendData
* Appends the given DOMString to the CharacterData.data string; when this method returns, data contains the concatenated DOMString. * * @param cha
packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts:13
↓ 3 callers
Method
appendMedium
* Appends a medium. * * @param medium Medium.
packages/happy-dom/src/css/MediaList.ts:143
↓ 3 callers
Method
clearCookies
* Clears all cookies.
packages/happy-dom/src/cookie/ICookieContainer.ts:32
↓ 3 callers
Method
clearInterval
* Cancels a timed repeating action which was previously established by a call to setInterval(). * * @param id ID of the interval.
packages/happy-dom/src/window/BrowserWindow.ts:2609
↓ 3 callers
Method
cloneBodyStream
* Clones a request or body body stream. * * It is actually not cloning the stream. * It creates a pass through stream and pipes the original str
packages/happy-dom/src/fetch/utilities/FetchBodyUtility.ts:108
↓ 3 callers
Method
createImageBitmap
* Creates a bitmap from a given source, optionally cropped to contain only a portion of that source. * * @param source Source. * @param [sx] X.
packages/happy-dom/src/window/BrowserWindow.ts:2888
↓ 3 callers
Method
createProcessingInstruction
* Creates a Processing Instruction node. * * @param target Target. * @param data Data. * @returns ProcessingInstruction.
packages/happy-dom/src/nodes/document/Document.ts:2175
↓ 3 callers
Method
createSettings
* Returns browser settings. * * @param [settings] Browser settings. * @returns Settings.
packages/happy-dom/src/browser/BrowserSettingsFactory.ts:15
↓ 3 callers
Method
dateIsoWeek
* Returns iso week number from given date * * @see https://stackoverflow.com/a/6117889 * @param date Date or number. * @returns Iso-week strin
packages/happy-dom/src/nodes/html-input-element/HTMLInputElementDateUtility.ts:12
↓ 3 callers
Method
decodeHTMLEntities
* Decodes HTML entities. * * Uses the 'entities' library for comprehensive HTML5 named character reference support. * * @param value Value.
packages/happy-dom/src/utilities/XMLEncodeUtility.ts:138
↓ 3 callers
Method
decodeXMLEntities
* Decodes XML entities. * * Uses the 'entities' library for comprehensive XML character reference support, * including named entities and numeri
packages/happy-dom/src/utilities/XMLEncodeUtility.ts:155
↓ 3 callers
Method
deleteData
* Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data con
packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts:24
↓ 3 callers
Method
deleteRule
* Removes a rule. * * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule * @param index Index.
packages/happy-dom/src/css/CSSStyleSheet.ts:99
↓ 3 callers
Method
destroyFrame
* Aborts all ongoing operations and destroys the frame. * * @param frame Frame.
packages/happy-dom/src/browser/utilities/BrowserFrameFactory.ts:29
↓ 3 callers
Method
dispatchEvent
* @override
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1432
↓ 3 callers
Method
end
* Returns end. * * @returns End.
packages/happy-dom/src/css/rules/CSSScopeRule.ts:50
↓ 3 callers
Method
finalizeRequest
* Finalizes the request.
packages/happy-dom/src/fetch/Fetch.ts:1030
↓ 3 callers
Method
formData
* Returns FormData. * * @returns FormData.
packages/happy-dom/src/fetch/Request.ts:432
↓ 3 callers
Method
getAsString
* Returns string. * * @param callback Callback.
packages/happy-dom/src/event/DataTransferItem.ts:41
↓ 3 callers
Method
getAttributeNode
* Returns an Attr node. * * @param name Name. * @returns Replaced attribute.
packages/happy-dom/src/nodes/element/Element.ts:1260
↓ 3 callers
Method
getBorderBottomColor
* Returns border color. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1476
↓ 3 callers
Method
getBorderBottomStyle
* Returns border style. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1366
↓ 3 callers
Method
getBorderBottomWidth
* Returns border width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1250
↓ 3 callers
Method
getBorderLeftColor
* Returns border color. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1504
↓ 3 callers
Method
getBorderLeftStyle
* Returns border style. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1393
↓ 3 callers
Method
getBorderLeftWidth
* Returns border width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1281
↓ 3 callers
Method
getBorderRightColor
* Returns border color. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1448
↓ 3 callers
Method
getBorderRightStyle
* Returns border style. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1339
↓ 3 callers
Method
getBorderRightWidth
* Returns border width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1219
↓ 3 callers
Method
getBorderTopColor
* Returns border color. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1420
↓ 3 callers
Method
getBorderTopStyle
* Returns border style. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1312
↓ 3 callers
Method
getBorderTopWidth
* Returns border width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:1188
↓ 3 callers
Method
getCapabilities
* Returns capabilities. * * @returns Capabilities.
packages/happy-dom/src/nodes/html-media-element/MediaStreamTrack.ts:123
↓ 3 callers
Method
getGradient
* Returns gradient. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:335
↓ 3 callers
Method
getHTML
* Returns inner HTML and optionally the content of shadow roots. * * @param [options] Options. * @param [options.serializableShadowRoots] A bool
packages/happy-dom/src/nodes/element/Element.ts:535
↓ 3 callers
Method
getInnerHTML
* Returns inner HTML and optionally the content of shadow roots. * * @deprecated * @param [options] Options. * @param [options.includeShadowRo
packages/happy-dom/src/nodes/element/Element.ts:513
↓ 3 callers
Method
getInteger
* Returns integer. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:305
↓ 3 callers
Method
getPercentage
* Returns percentance. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:205
↓ 3 callers
Method
getResponseHeader
* Gets a header from the server response. * * @param header header Name of header to get. * @returns string Text of the header or null if it doe
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:277
↓ 3 callers
Method
getTrackById
* Returns track by id. * * @param id Id. * @returns Track.
packages/happy-dom/src/nodes/html-media-element/MediaStream.ts:83
↓ 3 callers
Method
getURL
* Returns module URL based on parent URL and the import map. * * @param window Window. * @param parentURL Parent URL. * @param url Module URL.
packages/happy-dom/src/module/ModuleURLUtility.ts:27
↓ 3 callers
Method
info
* Outputs an informational message to the console. * * @param message Message. * @param args Arguments.
packages/happy-dom/src/console/IConsole.ts:90
↓ 3 callers
Method
insertData
* Inserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified DO
packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts:36
↓ 3 callers
Method
isEqualNode
* Compares two nodes. * Two nodes are equal if they have the same type, defining the same attributes, and so on. * * @param node Node to compar
packages/happy-dom/src/nodes/node/Node.ts:756
↓ 3 callers
Method
isPartiallyContained
* Returns "true" if partially contained. * * @param node Node. * @param range Range. * @returns "true" if partially contained.
packages/happy-dom/src/range/RangeUtility.ts:110
↓ 3 callers
Method
isTextNode
* Returns whether the passed node is a text node, and narrows its type. * * @param node The node to be tested. * @returns "true" if the node is
packages/happy-dom/src/nodes/node/NodeUtility.ts:22
↓ 3 callers
Method
load
* Loads the cache from file system. * * @param directory Directory to load from.
packages/happy-dom/src/fetch/cache/response/IResponseCacheFileSystem.ts:10
↓ 3 callers
Method
multiplySelf
* Sets self to be multiplied by the passed matrix. * * @param secondMatrix DOMMatrix * @returns Self.
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:367
↓ 3 callers
Method
nextDescendantNode
* Returns the next sibling or parents sibling. * * @param node Node. * @returns Next descendant node.
packages/happy-dom/src/nodes/node/NodeUtility.ts:187
↓ 3 callers
Method
observe
* Observes the Node process for uncaught exceptions. * * @param window Browser window.
packages/happy-dom/src/browser/utilities/BrowserExceptionObserver.ts:19
↓ 3 callers
Method
observe
* Starts observing. * * Not implemented.
packages/happy-dom/src/resize-observer/ResizeObserver.ts:12
↓ 3 callers
Method
open
* Sets the "open" attribute. * * @param open Open.
packages/happy-dom/src/nodes/html-dialog-element/HTMLDialogElement.ts:60
↓ 3 callers
Method
parse
* Class construtor. * * @param cssText CSS string. * @param callback Callback.
packages/happy-dom/src/css/declaration/css-parser/CSSStyleDeclarationCSSParser.ts:19
↓ 3 callers
Method
parseFromString
* Parses HTML and returns a root element. * * @param cssText CSS code. * @returns CSS rules.
packages/happy-dom/src/css/utilities/CSSParser.ts:37
↓ 3 callers
Method
postMessage
*
packages/@happy-dom/server-renderer/src/utilities/BrowserWindowPolyfill.ts:91
↓ 3 callers
Method
queueMicrotask
* Queues a microtask to be executed at a safe time prior to control returning to the browser's event loop. * * @param callback Function to be exec
packages/happy-dom/src/window/BrowserWindow.ts:2700
↓ 3 callers
Method
removeEventListener
* Adds an event listener. * * @param type Event type. * @param listener Listener.
packages/happy-dom/src/event/EventTarget.ts:91
↓ 3 callers
Method
removeOverflowingTextNodes
* Removes overflowing text nodes in the current node. * * This needs to be done for some errors.
packages/happy-dom/src/xml-parser/XMLParser.ts:700
↓ 3 callers
Method
replace
* Replace Token. * * @param token Token. * @param newToken NewToken.
packages/happy-dom/src/dom/DOMTokenList.ts:187
↓ 3 callers
Method
requestSubmit
* Submits form, reports validity and raises submit event. * * @param [submitter] Submitter.
packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts:417
↓ 3 callers
Method
reset
* Resets form.
packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts:437
↓ 3 callers
Method
rotate
(angle: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:100
↓ 3 callers
Method
scroll
* Scrolls to a particular set of coordinates. * * @param x X position or options object. * @param y Y position.
packages/happy-dom/src/nodes/element/Element.ts:1297
↓ 3 callers
Method
send
(data: any, options?: { binary?: boolean })
packages/happy-dom/test/web-socket/WebSocket.test.ts:59
↓ 3 callers
Method
set
(target, property, newValue)
packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts:70
↓ 3 callers
Method
set
* Sets a property * * @param name Name. * @param value Value. * @param important Important.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertyManager.ts:248
← previous
next →
201–300 of 4,456, ranked by callers