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
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:691
↓ 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:191
↓ 1 callers
Method
deleteCaption
* Removes the first <caption> that is a child of the element.
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:255
↓ 1 callers
Method
deleteCell
* Removes the cell corresponding to index. If index is -1, the last cell of the row is removed. If index is less than -1 or greater than the amount of
packages/happy-dom/src/nodes/html-table-row-element/HTMLTableRowElement.ts:116
↓ 1 callers
Method
deleteFromDocument
* Deletes the selected text from the document's DOM. * * @see https://w3c.github.io/selection-api/#dom-selection-deletefromdocument
packages/happy-dom/src/selection/Selection.ts:380
↓ 1 callers
Method
deleteMedium
* Deletes a medium. * * @param medium Medium.
packages/happy-dom/src/css/MediaList.ts:156
↓ 1 callers
Method
deleteTFoot
* Removes the first <tfoot> that is a child of the element.
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:215
↓ 1 callers
Method
deleteTHead
* Removes the first <thead> that is a child of the element.
packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts:193
↓ 1 callers
Method
deselectAll
* Unselects any selected objects, including any selections of text strings and type-in bars.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:424
↓ 1 callers
Method
destroy
* Destroys the listener.
packages/happy-dom/src/mutation-observer/MutationObserverListener.ts:101
↓ 1 callers
Method
detach
* Does nothing. It used to disable the Range object and enable the browser to release associated resources. The method has been kept for compatibility
packages/happy-dom/src/range/Range.ts:553
↓ 1 callers
Method
detachEvent
* Removes an event listener. * * TODO: * Was used by IE8- and Opera. React believed Happy DOM was a legacy browser and used them, but that is no
packages/happy-dom/src/event/EventTarget.ts:193
↓ 1 callers
Method
dir
* Displays an interactive list of the properties of the specified JavaScript object. * * @param data Data.
packages/happy-dom/src/console/IConsole.ts:48
↓ 1 callers
Method
dirxml
* Displays an interactive tree of the descendant elements of the specified XML/HTML element. * * @param data Data.
packages/happy-dom/src/console/IConsole.ts:55
↓ 1 callers
Method
disconnect
* Disconnects.
packages/happy-dom/src/mutation-observer/MutationObserver.ts:135
↓ 1 callers
Method
dispatchEvent
* @override
packages/happy-dom/src/nodes/html-button-element/HTMLButtonElement.ts:373
↓ 1 callers
Method
elementFromPoint
* Get element at a given point. * * @param _x horizontal coordinate * @param _y vertical coordinate * @returns Always returns null since Happy
packages/happy-dom/src/nodes/document/Document.ts:2261
↓ 1 callers
Method
encodeHTMLAttributeValue
* Encodes attribute value. * * @param value Value. * @returns Escaped value.
packages/happy-dom/src/utilities/XMLEncodeUtility.ts:77
↓ 1 callers
Method
encodeXMLAttributeValue
* Encodes attribute value. * * @param value Value. * @returns Escaped value.
packages/happy-dom/src/utilities/XMLEncodeUtility.ts:49
↓ 1 callers
Method
entries
* Returns an iterator, allowing you to go through all key/value pairs contained in this object. * * @returns Entries.
packages/happy-dom/src/css/style-property-map/StylePropertyMapReadOnly.ts:51
↓ 1 callers
Method
error
* Outputs an error message to the console. * * @param message Message. * @param args Arguments.
packages/happy-dom/src/console/VirtualConsole.ts:138
↓ 1 callers
Method
escapeName
* Escapes a form data entry name. * * @param name Name. * @param filename Whether it is a filename. * @returns Escaped name.
packages/happy-dom/src/fetch/multipart/MultipartFormDataParser.ts:168
↓ 1 callers
Method
evaluate
* Compiles and evaluates the module. * * @param [parentUrls] Parent modules URLs to detect circular imports. * @param [circularResolver] Resolve
packages/happy-dom/src/module/ECMAScriptModule.ts:47
↓ 1 callers
Method
evaluate
* Compiles and evaluates the module. * * @returns Module exports.
packages/happy-dom/src/module/CSSModule.ts:32
↓ 1 callers
Method
evaluate
* Compiles and evaluates the module. * * @returns Module exports.
packages/happy-dom/src/module/JSONModule.ts:31
↓ 1 callers
Function
eventListener
()
packages/@happy-dom/jest-environment/test/javascript/JavaScript.test.ts:144
↓ 1 callers
Method
exception
* Alias for error(). * * @deprecated * @alias error() * @param args Arguments.
packages/happy-dom/src/console/VirtualConsole.ts:154
↓ 1 callers
Method
extend
* Moves the focus of the selection to a specified point. * * @see https://w3c.github.io/selection-api/#dom-selection-extend * @param node Node.
packages/happy-dom/src/selection/Selection.ts:393
↓ 1 callers
Method
extendClasses
* Extends classes with a "window" property. * * @param window Window.
packages/happy-dom/src/window/WindowContextClassExtender.ts:60
↓ 1 callers
Method
fastSeek
* Quickly seeks the media to the new time with precision tradeoff. * * @param _time Time.
packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts:860
↓ 1 callers
Method
fillRect
(x: number, y: number, w: number, h: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:114
↓ 1 callers
Method
findAll
* Finds elements based on a query selector for a part of a list of selectors separated with comma. * * @param options Options. * @param options.
packages/happy-dom/src/query-selector/QuerySelector.ts:593
↓ 1 callers
Method
findFirst
* Finds an element based on a query selector for a part of a list of selectors separated with comma. * * @param options Options. * @param option
packages/happy-dom/src/query-selector/QuerySelector.ts:719
↓ 1 callers
Method
findFrames
* Returns all frames. * * @param parentFrame Parent frame. * @returns Frames, including the parent.
packages/happy-dom/src/browser/utilities/BrowserPageUtility.ts:49
↓ 1 callers
Method
findRule
* Finds a rule. * * @param rule Rule. E.g. "0%". * @returns Rule.
packages/happy-dom/src/css/rules/CSSKeyframesRule.ts:133
↓ 1 callers
Method
firstChild
* First child. * * @returns Node.
packages/happy-dom/src/nodes/node/Node.ts:298
↓ 1 callers
Method
formDataToStream
* Converts a FormData object to a ReadableStream. * * @param formData FormData. * @returns Stream and type.
packages/happy-dom/src/fetch/multipart/MultipartFormDataParser.ts:106
↓ 1 callers
Method
forward
* Goes to the next page in session history.
packages/happy-dom/src/history/History.ts:92
↓ 1 callers
Method
fromMatrix
* Returns a new `DOMMatrix` instance given an existing matrix. * * @param matrix Matrix.
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts:1308
↓ 1 callers
Method
fromPoint
* Returns a new DOMPointReadOnly object. * * @param [otherPoint] Other point. * @returns Cloned object.
packages/happy-dom/src/dom/DOMPointReadOnly.ts:91
↓ 1 callers
Function
generate
()
packages/happy-dom/test/fetch/Response.test.ts:579
↓ 1 callers
Function
generate
()
packages/happy-dom/test/window/DetachedWindowAPI.test.ts:59
↓ 1 callers
Function
generate2
()
packages/happy-dom/test/fetch/Fetch.test.ts:1926
↓ 1 callers
Method
get
* Returns cached response. * * @param request Request. * @returns Cached response.
packages/happy-dom/src/fetch/cache/response/ResponseCache.ts:34
↓ 1 callers
Method
get
* Returns a defined element class. * * @param name Tag name of element. * @returns HTMLElement Class defined or undefined.
packages/happy-dom/src/custom-element/CustomElementRegistry.ts:112
↓ 1 callers
Method
get
* Returns property value. * * @param name Property name. * @returns Property value.
packages/happy-dom/src/css/declaration/property-manager/CSSPropertyManager.ts:47
↓ 1 callers
Method
getAll
* Returns all cookies. * * @param [nameOrOptions] Name or options. * @returns Cookies.
packages/happy-dom/src/cookie-store/CookieStore.ts:58
↓ 1 callers
Method
getAllResponseHeaders
* Gets all the response headers. * * @returns A string with all response headers separated by CR+LF.
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:286
↓ 1 callers
Function
getArgs
(scope: any, args: string[] = [], parentKey: string = '')
packages/@happy-dom/server-renderer/test/utilities/ProcessArgumentsParser.test.ts:481
↓ 1 callers
Method
getAspectRatio
* Returns aspect ratio. * * @param value Value. * @param important Important. * @returns Property
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2910
↓ 1 callers
Method
getAttributeNames
* Returns attribute names. * * @returns Attribute names.
packages/happy-dom/src/nodes/element/Element.ts:807
↓ 1 callers
Method
getAttributeRegExp
* Returns attribute RegExp. * * @param attribute Attribute. * @param attribute.value Attribute value. * @param attribute.operator Attribute op
packages/happy-dom/src/query-selector/SelectorParser.ts:493
↓ 1 callers
Method
getAttributes
* Returns attributes as a string. * * @param element Element. * @returns Attributes.
packages/happy-dom/src/html-serializer/HTMLSerializer.ts:153
↓ 1 callers
Method
getBBox
* Returns DOM rect. * * @returns DOM rect.
packages/happy-dom/src/nodes/svg-graphics-element/SVGGraphicsElement.ts:113
↓ 1 callers
Method
getBackgroundClip
* Returns background clip. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2208
↓ 1 callers
Method
getBackgroundOrigin
* Returns background origin. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2188
↓ 1 callers
Method
getBackgroundPosition
* Returns background position. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2268
↓ 1 callers
Method
getBackgroundSize
* Returns background size. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:2137
↓ 1 callers
Method
getBorderCollapse
* Returns border collapse. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:129
↓ 1 callers
Method
getBorderColor
* Returns border color. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:675
↓ 1 callers
Method
getBorderImage
* Returns border image. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:717
↓ 1 callers
Method
getBorderStyle
* Returns border style. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:633
↓ 1 callers
Method
getBorderWidth
* Returns border width. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:592
↓ 1 callers
Method
getBottom
* Returns top. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:291
↓ 1 callers
Method
getBoundingClientRect
* Returns the size of an element and its position relative to the viewport. * * @returns DOM rect.
packages/happy-dom/src/nodes/element/Element.ts:999
↓ 1 callers
Method
getBrowserPage
* Returns the browser page. * * @returns Browser page.
packages/happy-dom/src/window/WindowBrowserContext.ts:52
↓ 1 callers
Method
getCSSFloat
* Returns float. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:394
↓ 1 callers
Method
getCTM
* Returns CTM. * * @returns CTM.
packages/happy-dom/src/nodes/svg-graphics-element/SVGGraphicsElement.ts:122
↓ 1 callers
Method
getCachedPropertyManager
* Gets the cached property manager for a node. * * @param node Node. * @returns CSS property manager or null if not available.
packages/happy-dom/src/css/declaration/computed-style/CSSComputedStyle.ts:496
↓ 1 callers
Method
getCachedResponse
* Returns cached response. * * @returns Response.
packages/happy-dom/src/fetch/SyncFetch.ts:211
↓ 1 callers
Method
getCachedResponse
* Returns cached response. * * @returns Response.
packages/happy-dom/src/fetch/Fetch.ts:265
↓ 1 callers
Method
getCharNumAtPosition
* Returns a long representing the character which caused a text glyph to be rendered at a given position in the coordinate system. Because the relatio
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:139
↓ 1 callers
Method
getClear
* Returns clear. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:321
↓ 1 callers
Method
getClientRects
* The Range.getClientRects() method returns a list of DOMRect objects representing the area of the screen occupied by the range. This is created by ag
packages/happy-dom/src/range/Range.ts:765
↓ 1 callers
Method
getClip
* Returns clip * * Based on: * https://github.com/jsdom/cssstyle/blob/master/lib/properties/clip.js * * @param value Value. * @param impor
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:343
↓ 1 callers
Method
getComputedStyle
* Returns style sheets. * * @param element Element. * @returns Style sheets.
packages/happy-dom/src/css/declaration/computed-style/CSSComputedStyle.ts:58
↓ 1 callers
Method
getComputedTextLength
* Returns a float representing the computed length for the text within the element. * * @returns Computed text length.
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:78
↓ 1 callers
Method
getConstraints
* Returns constraints. * * @returns Constraints.
packages/happy-dom/src/nodes/html-media-element/MediaStreamTrack.ts:114
↓ 1 callers
Method
getContentDisposition
* Returns content disposition. * * @param headerValue Header value. * @returns Content disposition.
packages/happy-dom/src/fetch/multipart/MultipartReader.ts:205
↓ 1 callers
Method
getContext
* Returns context. * * @param contextType Context type. * @param [contextAttributes] Context attributes. * @returns Context.
packages/happy-dom/src/canvas/OffscreenCanvas.ts:43
↓ 1 callers
Method
getCueAsHTML
* Returns the cue as HTML. * * @returns DocumentFragment
packages/happy-dom/src/nodes/html-media-element/VTTCue.ts:74
↓ 1 callers
Method
getCueById
* Returns the first TextTrackCue object with the identifier passed to it. * * @param id Text track cue identifier.
packages/happy-dom/src/nodes/html-media-element/TextTrackCueList.ts:29
↓ 1 callers
Method
getCurrentTime
* Returns the current time in seconds relative to the start time for the current SVG document fragment. * * @returns Current time in seconds.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:366
↓ 1 callers
Function
getData
()
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/external-scripts/utilities/stringUtility.js:13
↓ 1 callers
Method
getData
* Gets the data. * * @param format Format. * @returns Data.
packages/happy-dom/src/event/DataTransfer.ts:81
↓ 1 callers
Method
getDefault
* Returns border collapse. * * @param name Name. * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:112
↓ 1 callers
Method
getDegree
* Returns degree. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts:218
↓ 1 callers
Method
getDirection
* Returns direction. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:167
↓ 1 callers
Method
getDisplay
* Returns display. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts:148
↓ 1 callers
Method
getDocumentType
* Returns document type. * * @param value Value. * @returns Document type.
packages/happy-dom/src/html-parser/HTMLParser.ts:890
↓ 1 callers
Method
getDocumentType
* Returns document type. * * @param value Value. * @returns Document type.
packages/happy-dom/src/xml-parser/XMLParser.ts:714
↓ 1 callers
Method
getElementsByName
* Returns an element by Name. * * @returns Matching element. * @param name
packages/happy-dom/src/nodes/document/Document.ts:1720
↓ 1 callers
Method
getElementsByTagName
* Returns an elements by tag name. * * @param tagName Tag name. * @returns Matching element.
packages/happy-dom/src/nodes/document/Document.ts:1656
↓ 1 callers
Method
getEnclosureList
* Returns enclousure list. * * @param _rect SVG Rect. * @param _element SVG Element. * @returns Enclousure list.
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts:395
↓ 1 callers
Method
getEndPositionOfChar
* Returns a SVGPoint representing the trailing position of a typographic character after text layout has been performed. * * @param _charnum The i
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:109
↓ 1 callers
Method
getError
* Returns error. * * @param moduleURL Module URL. * @param code Code. * @param sourceURL Source URL. * @returns Error.
packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts:812
↓ 1 callers
Method
getExtentOfChar
* Returns a SVGRect representing the computed tight bounding box of the glyph cell that corresponds to a given typographic character. * * @param _
packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts:119
← previous
next →
701–800 of 3,739, ranked by callers