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
Method
getFitContent
* Returns fit content. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts:247
↓ 1 callers
Method
getFloat
* Returns float. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts:315
↓ 1 callers
Method
getFloodColor
* Returns color. * * @param value Value. * @param important Important. * @returns Property value.
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2557
↓ 1 callers
Method
getHeight
* Returns height. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:246
↓ 1 callers
Method
getImageData
(sx: number, sy: number, sw: number, sh: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:95
↓ 1 callers
Method
getInitialReferrer
* Returns initial referrer. * * @param window Window. * @param referrer Referrer. * @returns Initial referrer.
packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts:51
↓ 1 callers
Method
getIntersectionList
* Returns intersection list. * * @param _rect SVG Rect. * @param _element SVG Element. * @returns Intersection list.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:384
↓ 1 callers
Method
getInvalidSelectorError
* Returns an error for an invalid selector. * * Constructed lazily, as creating a DOMException captures the current stack trace, which is * expe
packages/happy-dom/src/query-selector/SelectorParser.ts:160
↓ 1 callers
Method
getLeft
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:306
↓ 1 callers
Method
getLetterSpacing
* Returns letter spacing. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:186
↓ 1 callers
Method
getLineAndColumn
* Returns line and column for an error. * * @param code Code. * @param index Index. * @returns Line and column.
packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts:874
↓ 1 callers
Method
getLogEntryGroupTabbing
* Gets the log entry group tabbing. * * @param logEntry Log entry. * @returns Tabbing.
packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts:66
↓ 1 callers
Method
getLogEntryIcon
* Gets the log entry icon. * * @param logEntry Log entry. * @returns Icon.
packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts:50
↓ 1 callers
Method
getModifierState
* Returns the state of a modifier key. * * @param key A modifier key value. * @returns True if it's pressed, false otherwise.
packages/happy-dom/src/event/events/KeyboardEvent.ts:60
↓ 1 callers
Method
getName
* Reverse lookup searching for name by given element class. * * @param elementClass Class constructor. * @returns Found tag name or `null`.
packages/happy-dom/src/custom-element/CustomElementRegistry.ts:166
↓ 1 callers
Method
getNonSpacePrecedingToken
* Get the non-space preceding token. * * @param code Code. * @param index Index. * @returns Non-space preceding token.
packages/happy-dom/src/javascript/JavaScriptCompiler.ts:366
↓ 1 callers
Method
getNotFoundResponse
* Returns a 404 response. * * @param window Window. * @returns 404 response.
packages/happy-dom/src/fetch/utilities/VirtualServerUtility.ts:83
↓ 1 callers
Method
getNotFoundSyncResponse
* Returns a 404 response. * * @param window Window. * @param requestURL Request URL. * @returns 404 response.
packages/happy-dom/src/fetch/utilities/VirtualServerUtility.ts:100
↓ 1 callers
Method
getNumberOfChars
* Returns the number of characters available for rendering. * * @returns Number of characters.
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:68
↓ 1 callers
Method
getNumberValue
* Returns the stepped value for "number" input field. * * @see https://html.spec.whatwg.org/multipage/input.html#dom-input-stepup * @param input
packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueStepping.ts:46
↓ 1 callers
Method
getOutputFile
* * @param url
packages/@happy-dom/server-renderer/src/utilities/ProcessArgumentsParser.ts:368
↓ 1 callers
Method
getPointAtLength
* Returns point at length. * * Not implemented yet. * * @param _distance Distance. * @returns Point at length.
packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts:90
↓ 1 callers
Method
getPropertyPriority
* Returns a property. * * @param name Property name in kebab case. * @returns "important" if set to be important.
packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts:323
↓ 1 callers
Method
getPseudo
* Returns pseudo. * * @param name Pseudo name. * @param args Pseudo arguments. * @returns Pseudo.
packages/happy-dom/src/query-selector/SelectorParser.ts:535
↓ 1 callers
Method
getPseudoNthFunction
* Returns pseudo nth function. * * Based on: * https://github.com/dperini/nwsapi/blob/master/src/nwsapi.js * * @param args Pseudo arguments.
packages/happy-dom/src/query-selector/SelectorParser.ts:634
↓ 1 callers
Method
getRangeAt
* Returns Range. * * @see https://w3c.github.io/selection-api/#dom-selection-getrangeat * @param index Index. * @returns Range.
packages/happy-dom/src/selection/Selection.ts:199
↓ 1 callers
Method
getRight
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:276
↓ 1 callers
Method
getRootElement
* Returns the root element. * * @param scope Scope. * @returns Root element.
packages/happy-dom/src/query-selector/SelectorItem.ts:566
↓ 1 callers
Method
getRotationOfChar
* Returns a float representing the rotation of typographic character. * * @param _charnum The index of the character.
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:129
↓ 1 callers
Function
getScopedCssRules
(html: string, scope: string, dom?: DOMImplementation)
packages/happy-dom/test/nodes/html-style-element/HTMLStyleElement.test.ts:195
↓ 1 callers
Method
getScreenCTM
* Returns screen CTM. * * @returns Screen CTM.
packages/happy-dom/src/nodes/svg-graphics-element/SVGGraphicsElement.ts:131
↓ 1 callers
Method
getScreenDetails
* Returns a promise that fulfills with a ScreenDetails object instance. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/getScreen
packages/happy-dom/src/window/BrowserWindow.ts:2415
↓ 1 callers
Method
getSelectorGroupItem
* Parses a selector string and returns an SelectorItem. * * @param selector Selector. * @param combinator Combinator. * @returns Selector item
packages/happy-dom/src/query-selector/SelectorParser.ts:331
↓ 1 callers
Method
getSelectorGroupsUncached
* Parses a selector string and returns instances of SelectorItem without using cache. * * @param selector Selector. * @returns Selector groups.
packages/happy-dom/src/query-selector/SelectorParser.ts:173
↓ 1 callers
Method
getSelectorItem
* Parses a selector string and returns an instance of SelectorItem. * * @param selector Selector. * @returns Selector item.
packages/happy-dom/src/query-selector/SelectorParser.ts:125
↓ 1 callers
Method
getSelectorString
* Returns the selector string. * * @returns Selector string.
packages/happy-dom/src/query-selector/SelectorItem.ts:537
↓ 1 callers
Method
getSentReferrer
* Returns the request referrer to be used as the value for the "Referer" header. * * Based on: * https://github.com/node-fetch/node-fetch/blob/m
packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts:103
↓ 1 callers
Method
getSetCookie
* Returns an array containing the values of all Set-Cookie headers associated with a response. * * @returns An array of strings representing the v
packages/happy-dom/src/fetch/Headers.ts:100
↓ 1 callers
Method
getStartPositionOfChar
* Returns a SVGPoint representing the position of a typographic character after text layout has been performed. * * @param _charnum The index of t
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:99
↓ 1 callers
Method
getStartTagElement
* Creates an element or returns a reference to it. * * @param tagName Tag name.
packages/happy-dom/src/html-parser/HTMLParser.ts:833
↓ 1 callers
Method
getStyleSheets
* Returns style sheets. * * @param root Root element. * @returns Style sheets.
packages/happy-dom/src/css/declaration/computed-style/CSSComputedStyle.ts:314
↓ 1 callers
Method
getSubStringLength
* Returns a float representing the computed length of the formatted text advance distance for a substring of text within the element. Note that this m
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:89
↓ 1 callers
Method
getTextIndent
* Returns text indent. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:216
↓ 1 callers
Method
getTextTransform
* Returns font family. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2861
↓ 1 callers
Method
getTop
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:261
↓ 1 callers
Method
getTotalLength
* Returns total length. * * Not implemented yet. * * @returns Total length.
packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts:77
↓ 1 callers
Method
getVariables
* Returns all CSS variables defined in this property manager.
packages/happy-dom/src/css/declaration/property-manager/CSSPropertyManager.ts:543
↓ 1 callers
Method
getVersion
* Prints help information.
packages/@happy-dom/server-renderer/src/utilities/PackageVersion.ts:8
↓ 1 callers
Method
getVirtualServerResponse
* Returns virtual server response. * * @returns Response.
packages/happy-dom/src/fetch/SyncFetch.ts:300
↓ 1 callers
Method
getVirtualServerResponse
* Returns virtual server response. * * @returns Response.
packages/happy-dom/src/fetch/Fetch.ts:351
↓ 1 callers
Method
getVisibility
* Returns visibility. * * @param value Value. * @param important Important. * @returns Property
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2886
↓ 1 callers
Method
getWidth
* Returns width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:231
↓ 1 callers
Method
getWindowFeatures
* Returns window features. * * @param features Window features string. * @returns Window features.
packages/happy-dom/src/window/WindowPageOpenUtility.ts:139
↓ 1 callers
Method
getWordSpacing
* Returns word spacing. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:201
↓ 1 callers
Method
go
* Load a specific page from the session history. * * @param delta Delta. * @param _delta
packages/happy-dom/src/history/History.ts:104
↓ 1 callers
Function
handleCopy
(text: string)
packages/@happy-dom/jest-environment/test/react/ReactComponents.tsx:81
↓ 1 callers
Method
handleRedirectResponse
* Handles redirect response. * * @param response Response. * @returns Redirected response or null.
packages/happy-dom/src/fetch/SyncFetch.ts:626
↓ 1 callers
Method
handleRedirectResponse
* Handles redirect response. * * @param nodeResponse Node response. * @param responseHeaders Headers. * @returns True if redirect response was
packages/happy-dom/src/fetch/Fetch.ts:906
↓ 1 callers
Method
hasChildNodes
* Returns "true" if the node has child nodes. * * @returns "true" if the node has child nodes.
packages/happy-dom/src/nodes/node/Node.ts:350
↓ 1 callers
Method
hasFocus
* Returns a boolean value indicating whether the document or any element inside the document has focus. * * @returns "true" if the document has fo
packages/happy-dom/src/nodes/document/Document.ts:2214
↓ 1 callers
Method
hasOpaqueOrigin
* Returns whether a target URL has an opaque origin instead of an inherited origin. * * @param targetURL Target URL. * @returns Whether the URL
packages/happy-dom/src/browser/utilities/BrowserFrameURL.ts:29
↓ 1 callers
Method
hasPointerCapture
* Returns whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID. * * @see https://deve
packages/happy-dom/src/nodes/element/Element.ts:1034
↓ 1 callers
Method
importNode
* Imports a node. * * @param node Node to import. * @param [deep=false] Set to "true" if the clone should be deep.
packages/happy-dom/src/nodes/document/Document.ts:2160
↓ 1 callers
Method
initCustomEvent
* Init event. * * @deprecated * @param type Type. * @param [bubbles=false] "true" if it bubbles. * @param [cancelable=false] "true" if it ca
packages/happy-dom/src/event/events/CustomEvent.ts:42
↓ 1 callers
Method
insertAdjacentHTML
* Inserts an HTML string to the given position. * * @param position Position to insert text. * @param text HTML string to insert.
packages/happy-dom/src/nodes/element/Element.ts:708
↓ 1 callers
Method
insertAdjacentText
* Inserts text to the given position. * * @param position Position to insert text. * @param text String to insert.
packages/happy-dom/src/nodes/element/Element.ts:723
↓ 1 callers
Method
insertCell
* Returns an HTMLTableCellElement representing a new cell of the row. The cell is inserted in the collection of cells immediately before the given ind
packages/happy-dom/src/nodes/html-table-row-element/HTMLTableRowElement.ts:78
↓ 1 callers
Method
intersectsNode
* Returns a boolean indicating whether the given Node intersects the Range. * * @see https://dom.spec.whatwg.org/#dom-range-intersectsnode * @pa
packages/happy-dom/src/range/Range.ts:871
↓ 1 callers
Method
isHeaderForbidden
* Returns "true" if the header is forbidden. * * @param name Header name. * @returns "true" if the header is forbidden.
packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts:61
↓ 1 callers
Method
isInert
* Returns whether an element or any of its ancestors has the inert attribute. * * @param element Element to check. * @returns True if the elemen
packages/happy-dom/src/nodes/html-element/HTMLElementUtility.ts:107
↓ 1 callers
Function
isJestConfigVersion28
( config: unknown )
packages/@happy-dom/jest-environment/src/index.ts:188
↓ 1 callers
Function
isJestConfigVersion29
(config: unknown)
packages/@happy-dom/jest-environment/src/index.ts:184
↓ 1 callers
Method
isLogEntryCollapsed
* Checks if the log entry content is collapsed. * * @param logEntry Log entry. * @returns True if collapsed.
packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts:86
↓ 1 callers
Method
isOriginPotentiallyTrustWorthy
* Returns "true" if the request's referrer origin is potentially trustworthy. * * @see https://w3c.github.io/webappsec-secure-contexts/#is-origin-
packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts:214
↓ 1 callers
Method
isPointInFill
* Returns true if the point is in the fill of the element. * * Not implemented yet. * * @param point Point. * @returns True if the point is
packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts:42
↓ 1 callers
Method
isPointInRange
* Returns a boolean indicating whether the given point is in the Range. * * @see https://dom.spec.whatwg.org/#dom-range-ispointinrange * @param
packages/happy-dom/src/range/Range.ts:778
↓ 1 callers
Method
isPointInStroke
* Returns true if the point is in the stroke of the element. * * Not implemented yet. * * @param point Point. * @returns True if the point i
packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts:60
↓ 1 callers
Method
isSameNode
* Determines whether the given node is equal to the current node. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Node/isSameNode * @p
packages/happy-dom/src/nodes/node/Node.ts:1346
↓ 1 callers
Method
isURLPotentiallyTrustWorthy
* Returns "true" if the request's referrer is potentially trustworthy. * * @see https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustwo
packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts:185
↓ 1 callers
Method
kebabToCamelCase
* Transforms a kebab cased string to camel case. * * @param text Text string. * @returns Camel cased string.
packages/happy-dom/src/dom/DOMStringMapUtility.ts:14
↓ 1 callers
Method
key
* Returns name of the nth key. * * @param index Index. * @returns Name.
packages/happy-dom/src/storage/Storage.ts:106
↓ 1 callers
Method
keys
* Returns an iterator, allowing you to go through all keys of the key/value pairs contained in this object. *
packages/happy-dom/src/dom/DOMTokenList.ts:246
↓ 1 callers
Method
lastChild
* Last child. * * @returns Node.
packages/happy-dom/src/nodes/node/Node.ts:311
↓ 1 callers
Method
lazyLoad
* Lazy load.
packages/happy-dom/test/nodes/html-script-element/modules/TestModuleElement.js:43
↓ 1 callers
Method
lazyLoad
* Lazy load.
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/default/TestModuleElement.js:46
↓ 1 callers
Function
main
* Main method.
packages/@happy-dom/server-renderer/bin/src/happy-dom-sr.ts:12
↓ 1 callers
Function
main
()
packages/happy-dom/test/fetch/virtual-server/js/sync.js:2
↓ 1 callers
Function
main
()
packages/happy-dom/test/fetch/virtual-server/js/async.js:2
↓ 1 callers
Function
main
()
packages/happy-dom/bin/build-css-properties.cjs:14
↓ 1 callers
Function
main
()
packages/happy-dom/bin/build-version-file.cjs:7
↓ 1 callers
Function
main
* Downloads and generates bundled public suffix rules.
packages/happy-dom/bin/build-public-suffix-list.cjs:52
↓ 1 callers
Method
matchAttributes
* Matches attribute. * * @param element Element. * @returns Result.
packages/happy-dom/src/query-selector/SelectorItem.ts:450
↓ 1 callers
Method
matchChildOfElement
* Matches a selector item against children of an element. * * @param scope Scope. * @param selectorItem Selector item. * @param element Elemen
packages/happy-dom/src/query-selector/SelectorItem.ts:513
↓ 1 callers
Method
matchClass
* Matches class. * * @param element Element. * @returns Result.
packages/happy-dom/src/query-selector/SelectorItem.ts:487
↓ 1 callers
Method
matchPseudo
* Matches a pseudo selector. * * @param scope Scope. * @param element Element. * @param [ignoreErrors] Ignores errors. * @returns Result.
packages/happy-dom/src/query-selector/SelectorItem.ts:143
↓ 1 callers
Method
matchPseudoItem
* Matches a pseudo selector. * * @param scope Scope. * @param element Element. * @param parentChildren Parent children. * @param pseudo Pseu
packages/happy-dom/src/query-selector/SelectorItem.ts:227
↓ 1 callers
Method
matchSelector
* Checks if a node matches a selector. * * @param options Options. * @param options.scope Scope. * @param options.element Target element. *
packages/happy-dom/src/query-selector/QuerySelector.ts:447
↓ 1 callers
Method
matchesAll
* Returns "true" if all matches. * * @returns "true" if all matches.
packages/happy-dom/src/match-media/MediaQueryItem.ts:78
↓ 1 callers
Method
matchesMediaType
* Returns "true" if the mediaType matches. * * @param mediaType Media type. * @returns "true" if the mediaType matches.
packages/happy-dom/src/match-media/MediaQueryItem.ts:114
↓ 1 callers
Method
matchesRange
* Returns "true" if the range matches. * * @param range Range. * @returns "true" if the range matches.
packages/happy-dom/src/match-media/MediaQueryItem.ts:127
← previous
next →
801–900 of 3,739, ranked by callers