MCPcopy Create free account

hub / github.com/capricorn86/happy-dom / functions

Functions3,739 in github.com/capricorn86/happy-dom

↓ 1 callersMethodgetFitContent
* Returns fit content. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts:247
↓ 1 callersMethodgetFloat
* Returns float. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts:315
↓ 1 callersMethodgetFloodColor
* Returns color. * * @param value Value. * @param important Important. * @returns Property value.
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2557
↓ 1 callersMethodgetHeight
* Returns height. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:246
↓ 1 callersMethodgetImageData
(sx: number, sy: number, sw: number, sh: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:95
↓ 1 callersMethodgetInitialReferrer
* Returns initial referrer. * * @param window Window. * @param referrer Referrer. * @returns Initial referrer.
packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts:51
↓ 1 callersMethodgetIntersectionList
* 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 callersMethodgetInvalidSelectorError
* 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 callersMethodgetLeft
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:306
↓ 1 callersMethodgetLetterSpacing
* 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 callersMethodgetLineAndColumn
* 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 callersMethodgetLogEntryGroupTabbing
* Gets the log entry group tabbing. * * @param logEntry Log entry. * @returns Tabbing.
packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts:66
↓ 1 callersMethodgetLogEntryIcon
* Gets the log entry icon. * * @param logEntry Log entry. * @returns Icon.
packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts:50
↓ 1 callersMethodgetModifierState
* 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 callersMethodgetName
* 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 callersMethodgetNonSpacePrecedingToken
* 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 callersMethodgetNotFoundResponse
* Returns a 404 response. * * @param window Window. * @returns 404 response.
packages/happy-dom/src/fetch/utilities/VirtualServerUtility.ts:83
↓ 1 callersMethodgetNotFoundSyncResponse
* Returns a 404 response. * * @param window Window. * @param requestURL Request URL. * @returns 404 response.
packages/happy-dom/src/fetch/utilities/VirtualServerUtility.ts:100
↓ 1 callersMethodgetNumberOfChars
* 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 callersMethodgetNumberValue
* 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 callersMethodgetOutputFile
* * @param url
packages/@happy-dom/server-renderer/src/utilities/ProcessArgumentsParser.ts:368
↓ 1 callersMethodgetPointAtLength
* 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 callersMethodgetPropertyPriority
* 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 callersMethodgetPseudo
* Returns pseudo. * * @param name Pseudo name. * @param args Pseudo arguments. * @returns Pseudo.
packages/happy-dom/src/query-selector/SelectorParser.ts:535
↓ 1 callersMethodgetPseudoNthFunction
* 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 callersMethodgetRangeAt
* 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 callersMethodgetRight
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:276
↓ 1 callersMethodgetRootElement
* Returns the root element. * * @param scope Scope. * @returns Root element.
packages/happy-dom/src/query-selector/SelectorItem.ts:566
↓ 1 callersMethodgetRotationOfChar
* 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 callersFunctiongetScopedCssRules
(html: string, scope: string, dom?: DOMImplementation)
packages/happy-dom/test/nodes/html-style-element/HTMLStyleElement.test.ts:195
↓ 1 callersMethodgetScreenCTM
* Returns screen CTM. * * @returns Screen CTM.
packages/happy-dom/src/nodes/svg-graphics-element/SVGGraphicsElement.ts:131
↓ 1 callersMethodgetScreenDetails
* 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 callersMethodgetSelectorGroupItem
* 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 callersMethodgetSelectorGroupsUncached
* 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 callersMethodgetSelectorItem
* 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 callersMethodgetSelectorString
* Returns the selector string. * * @returns Selector string.
packages/happy-dom/src/query-selector/SelectorItem.ts:537
↓ 1 callersMethodgetSentReferrer
* 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 callersMethodgetSetCookie
* 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 callersMethodgetStartPositionOfChar
* 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 callersMethodgetStartTagElement
* Creates an element or returns a reference to it. * * @param tagName Tag name.
packages/happy-dom/src/html-parser/HTMLParser.ts:833
↓ 1 callersMethodgetStyleSheets
* Returns style sheets. * * @param root Root element. * @returns Style sheets.
packages/happy-dom/src/css/declaration/computed-style/CSSComputedStyle.ts:314
↓ 1 callersMethodgetSubStringLength
* 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 callersMethodgetTextIndent
* 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 callersMethodgetTextTransform
* 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 callersMethodgetTop
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:261
↓ 1 callersMethodgetTotalLength
* Returns total length. * * Not implemented yet. * * @returns Total length.
packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts:77
↓ 1 callersMethodgetVariables
* Returns all CSS variables defined in this property manager.
packages/happy-dom/src/css/declaration/property-manager/CSSPropertyManager.ts:543
↓ 1 callersMethodgetVersion
* Prints help information.
packages/@happy-dom/server-renderer/src/utilities/PackageVersion.ts:8
↓ 1 callersMethodgetVirtualServerResponse
* Returns virtual server response. * * @returns Response.
packages/happy-dom/src/fetch/SyncFetch.ts:300
↓ 1 callersMethodgetVirtualServerResponse
* Returns virtual server response. * * @returns Response.
packages/happy-dom/src/fetch/Fetch.ts:351
↓ 1 callersMethodgetVisibility
* Returns visibility. * * @param value Value. * @param important Important. * @returns Property
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2886
↓ 1 callersMethodgetWidth
* Returns width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:231
↓ 1 callersMethodgetWindowFeatures
* Returns window features. * * @param features Window features string. * @returns Window features.
packages/happy-dom/src/window/WindowPageOpenUtility.ts:139
↓ 1 callersMethodgetWordSpacing
* 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 callersMethodgo
* Load a specific page from the session history. * * @param delta Delta. * @param _delta
packages/happy-dom/src/history/History.ts:104
↓ 1 callersFunctionhandleCopy
(text: string)
packages/@happy-dom/jest-environment/test/react/ReactComponents.tsx:81
↓ 1 callersMethodhandleRedirectResponse
* Handles redirect response. * * @param response Response. * @returns Redirected response or null.
packages/happy-dom/src/fetch/SyncFetch.ts:626
↓ 1 callersMethodhandleRedirectResponse
* 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 callersMethodhasChildNodes
* 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 callersMethodhasFocus
* 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 callersMethodhasOpaqueOrigin
* 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 callersMethodhasPointerCapture
* 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 callersMethodimportNode
* 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 callersMethodinitCustomEvent
* 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 callersMethodinsertAdjacentHTML
* 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 callersMethodinsertAdjacentText
* 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 callersMethodinsertCell
* 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 callersMethodintersectsNode
* 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 callersMethodisHeaderForbidden
* 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 callersMethodisInert
* 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 callersFunctionisJestConfigVersion28
( config: unknown )
packages/@happy-dom/jest-environment/src/index.ts:188
↓ 1 callersFunctionisJestConfigVersion29
(config: unknown)
packages/@happy-dom/jest-environment/src/index.ts:184
↓ 1 callersMethodisLogEntryCollapsed
* 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 callersMethodisOriginPotentiallyTrustWorthy
* 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 callersMethodisPointInFill
* 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 callersMethodisPointInRange
* 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 callersMethodisPointInStroke
* 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 callersMethodisSameNode
* 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 callersMethodisURLPotentiallyTrustWorthy
* 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 callersMethodkebabToCamelCase
* 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 callersMethodkey
* Returns name of the nth key. * * @param index Index. * @returns Name.
packages/happy-dom/src/storage/Storage.ts:106
↓ 1 callersMethodkeys
* 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 callersMethodlastChild
* Last child. * * @returns Node.
packages/happy-dom/src/nodes/node/Node.ts:311
↓ 1 callersMethodlazyLoad
* Lazy load.
packages/happy-dom/test/nodes/html-script-element/modules/TestModuleElement.js:43
↓ 1 callersMethodlazyLoad
* Lazy load.
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/default/TestModuleElement.js:46
↓ 1 callersFunctionmain
* Main method.
packages/@happy-dom/server-renderer/bin/src/happy-dom-sr.ts:12
↓ 1 callersFunctionmain
()
packages/happy-dom/test/fetch/virtual-server/js/sync.js:2
↓ 1 callersFunctionmain
()
packages/happy-dom/test/fetch/virtual-server/js/async.js:2
↓ 1 callersFunctionmain
()
packages/happy-dom/bin/build-css-properties.cjs:14
↓ 1 callersFunctionmain
()
packages/happy-dom/bin/build-version-file.cjs:7
↓ 1 callersFunctionmain
* Downloads and generates bundled public suffix rules.
packages/happy-dom/bin/build-public-suffix-list.cjs:52
↓ 1 callersMethodmatchAttributes
* Matches attribute. * * @param element Element. * @returns Result.
packages/happy-dom/src/query-selector/SelectorItem.ts:450
↓ 1 callersMethodmatchChildOfElement
* 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 callersMethodmatchClass
* Matches class. * * @param element Element. * @returns Result.
packages/happy-dom/src/query-selector/SelectorItem.ts:487
↓ 1 callersMethodmatchPseudo
* 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 callersMethodmatchPseudoItem
* 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 callersMethodmatchSelector
* 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 callersMethodmatchesAll
* Returns "true" if all matches. * * @returns "true" if all matches.
packages/happy-dom/src/match-media/MediaQueryItem.ts:78
↓ 1 callersMethodmatchesMediaType
* 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 callersMethodmatchesRange
* Returns "true" if the range matches. * * @param range Range. * @returns "true" if the range matches.
packages/happy-dom/src/match-media/MediaQueryItem.ts:127
← previousnext →801–900 of 3,739, ranked by callers