MCPcopy Create free account

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

Functions4,455 in github.com/capricorn86/happy-dom

↓ 9 callersFunctionlistener
()
packages/happy-dom/test/nodes/node/Node.test.ts:1191
↓ 9 callersMethodparse
* Returns a Buffer instance from the given data URI `uri`. * * @param uri Data URI. * @returns Buffer.
packages/happy-dom/src/fetch/data-uri/DataURIParser.ts:14
↓ 9 callersMethodprepend
* Inserts a set of Node objects or DOMString objects before the first child of the ParentNode. DOMString objects are inserted as equivalent Text nodes
packages/happy-dom/src/nodes/parent-node/IParentNode.ts:26
↓ 9 callersMethodreload
* Reloads the current page. * * @param [options] Options. * @returns Response.
packages/happy-dom/src/browser/types/IBrowserPage.ts:109
↓ 9 callersMethodreplaceChildren
* Replaces the existing children of a node with a specified new set of children. * * @param nodes List of Node or DOMString.
packages/happy-dom/src/nodes/parent-node/IParentNode.ts:108
↓ 9 callersMethodserializeToString
* Serializes a node into XML. * * @param root Root node. * @returns Result.
packages/happy-dom/src/xml-serializer/XMLSerializer.ts:26
↓ 9 callersMethodset
(target, property, newValue)
packages/happy-dom/src/nodes/element/HTMLCollection.ts:50
↓ 9 callersMethodwaitForNavigation
* Returns a promise that is resolved when the page has navigated and the response HTML has been written to the document.
packages/happy-dom/src/browser/types/IBrowserPage.ts:39
↓ 8 callersMethodcreateAttribute
* Creates an Attr node. * * @param qualifiedName Name. * @returns Attribute.
packages/happy-dom/src/nodes/document/Document.ts:2049
↓ 8 callersMethodfocus
* Gives focus to the window.
packages/happy-dom/src/window/BrowserWindow.ts:2351
↓ 8 callersMethodgetLength
* Returns length. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:183
↓ 8 callersMethodgetNamedItemNS
* Returns item by name and namespace. * * @param namespace Namespace. * @param localName Local name of the attribute. * @returns Item.
packages/happy-dom/src/nodes/element/NamedNodeMap.ts:108
↓ 8 callersMethodgetOwnPropertyDescriptor
(target, property)
packages/happy-dom/src/storage/Storage.ts:72
↓ 8 callersMethodgetRelativeURL
* Returns relative URL. * * @param frame Frame. * @param url URL. * @returns Relative URL.
packages/happy-dom/src/browser/utilities/BrowserFrameURL.ts:16
↓ 8 callersMethodinitialize
* Replace Token. * * @param newItem New item. * @returns The item being replaced.
packages/happy-dom/src/svg/SVGPointList.ts:189
↓ 8 callersMethodon
(event: string, listener: Function)
packages/happy-dom/test/web-socket/WebSocket.test.ts:29
↓ 8 callersMethodsetViewport
* Sets the viewport. * * @param viewport Viewport.
packages/happy-dom/src/browser/types/IBrowserPage.ts:71
↓ 8 callersMethodtoLowerCase
* Converts a string to lower case. * * @param {string} value Value. * @returns {string} Lower case value.
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/default/utilities/StringUtilityClass.js:18
↓ 8 callersMethodvalues
* Returns an iterator, allowing you to go through all values of the key/value pairs contained in this object. * * @returns Iterator.
packages/happy-dom/src/nodes/node/NodeList.ts:183
↓ 7 callersMethod#getPropertyManager
* Returns property manager. * * @returns Property manager.
packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts:4951
↓ 7 callersMethodaddCookies
* Adds or replaces cookies. * * @param cookies Cookies. * @returns Changed cookies.
packages/happy-dom/src/cookie/ICookieContainer.ts:18
↓ 7 callersMethodafter
* Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode. DOMString objects are inserte
packages/happy-dom/src/nodes/child-node/IChildNode.ts:21
↓ 7 callersMethodbefore
* Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode. DOMString objects are insert
packages/happy-dom/src/nodes/child-node/IChildNode.ts:14
↓ 7 callersMethodblur
* Shifts focus away from the window.
packages/happy-dom/src/window/BrowserWindow.ts:2344
↓ 7 callersMethodcontains
* Returns "true" if this node contains the other node. * * @param otherNode Node to test with. * @returns "true" if this node contains the other
packages/happy-dom/src/nodes/node/Node.ts:335
↓ 7 callersMethoddecode
* Decodes the image. * * @returns Promise.
packages/happy-dom/src/nodes/svg-image-element/SVGImageElement.ts:184
↓ 7 callersMethodgetAssociatedLabelElements
* Returns label elements for a form element. * * @param element Element to get labels for. * @returns Label elements.
packages/happy-dom/src/nodes/html-label-element/HTMLLabelElementUtility.ts:19
↓ 7 callersMethodgetColor
* Returns color. * * @param value Value. * @param important Important. * @returns Property value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:2838
↓ 7 callersMethodgetContext
* Creates a rendering context for a canvas element. * * @param caller Information about the caller, including the canvas element and its associate
packages/happy-dom/src/canvas/ICanvasAdapter.ts:30
↓ 7 callersMethodgetCookies
* Returns cookies. * * @param [url] URL. * @param [clientSide] "true" if "httpOnly" cookies should be filtered out. * @returns Cookies.
packages/happy-dom/src/cookie/ICookieContainer.ts:27
↓ 7 callersMethodgetElementsByClassName
* Returns an elements by class name. * * @param className Tag name. * @returns Matching element.
packages/happy-dom/src/nodes/parent-node/IParentNode.ts:70
↓ 7 callersMethodgetElementsByTagNameNS
* Returns an elements by tag name and namespace. * * @param namespaceURI Namespace URI. * @param tagName Tag name. * @returns Matching element
packages/happy-dom/src/nodes/parent-node/IParentNode.ts:93
↓ 7 callersMethodgoBack
* Navigates back in history. * * @param [options] Options.
packages/happy-dom/src/browser/types/IBrowserPage.ts:86
↓ 7 callersMethodgoForward
* Navigates forward in history. * * @param [options] Options.
packages/happy-dom/src/browser/types/IBrowserPage.ts:93
↓ 7 callersMethodgoSteps
* Navigates a delta in history. * * @param steps Steps. * @param [options] Options.
packages/happy-dom/src/browser/types/IBrowserPage.ts:101
↓ 7 callersMethodinsertRule
* Inserts a rule. * * @see https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule * @param rule Rule. * @param [index] Inde
packages/happy-dom/src/css/CSSStyleSheet.ts:56
↓ 7 callersMethodjson
* Returns json. * * @returns JSON.
packages/happy-dom/src/fetch/Request.ts:422
↓ 7 callersMethodkeys
* Returns an iterator, allowing you to go through all keys of the key/value pairs contained in this object. * * @returns Iterator.
packages/happy-dom/src/nodes/node/NodeList.ts:219
↓ 7 callersMethodkeys
* Returns an iterator, allowing you to go through all keys of the key/value pairs contained in this object. * * @returns Keys.
packages/happy-dom/src/css/style-property-map/StylePropertyMapReadOnly.ts:84
↓ 7 callersMethodmax
* Returns max. * * @returns Max.
packages/happy-dom/src/nodes/html-meter-element/HTMLMeterElement.ts:82
↓ 7 callersMethodmin
* Returns min. * * @returns Min.
packages/happy-dom/src/nodes/html-meter-element/HTMLMeterElement.ts:114
↓ 7 callersMethodnavigate
* Navigates to a page. * * @throws Error if the request can't be resolved (because of SSL error or similar). It will not throw if the response is
packages/happy-dom/src/browser/utilities/BrowserFrameNavigator.ts:33
↓ 7 callersMethodpreventDefault
* Prevents default.
packages/happy-dom/src/event/Event.ts:203
↓ 7 callersMethodregister
* Registers Happy DOM globally. * * @param [options] Options. * @param [options.width] Window width. Defaults to "1024". * @param [options.hei
packages/@happy-dom/global-registrator/src/GlobalRegistrator.ts:30
↓ 7 callersMethodreplaceWith
* The Node.replaceWith() method replaces this Node in the children list of its parent with a set of Node or DOMString objects. * * @param nodes Li
packages/happy-dom/src/nodes/child-node/IChildNode.ts:28
↓ 7 callersMethodresolveWhenComplete
* Resolves when complete.
packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts:226
↓ 6 callersMethod#isSelectionSupported
* Checks is selection is supported. * * @returns "true" if selection is supported.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1508
↓ 6 callersMethodasciiLowerCase
* ASCII lowercase. * * @see https://infra.spec.whatwg.org/#ascii-lowercase * @param text Text. * @returns Lowercase text.
packages/happy-dom/src/utilities/StringUtility.ts:17
↓ 6 callersMethodbuffer
* Returns buffer. * * @returns Buffer.
packages/happy-dom/src/fetch/Request.ts:348
↓ 6 callersMethodcamelCaseToKebab
* Transforms a camel cased string to kebab case. * * @param text Text string. * @returns Kebab cased string.
packages/happy-dom/src/dom/DOMStringMapUtility.ts:28
↓ 6 callersMethodconsumeBodyStream
* Consume and convert an entire Body to a Buffer. * * Based on: * https://github.com/node-fetch/node-fetch/blob/main/src/body.js (MIT) * * @
packages/happy-dom/src/fetch/utilities/FetchBodyUtility.ts:172
↓ 6 callersMethodcreateChildFrame
* Creates a new frame. * * @param parentFrame Parent frame. * @returns Frame.
packages/happy-dom/src/browser/utilities/BrowserFrameFactory.ts:15
↓ 6 callersMethodcreateConfiguration
* Returns server renderer configuration factory. * * @param [configuration] Configuration. * @returns Configuration.
packages/@happy-dom/server-renderer/src/utilities/ServerRendererConfigurationFactory.ts:17
↓ 6 callersMethodcreateDocumentType
* Creates and returns an HTML Document. * * @param qualifiedName Qualified name. * @param publicId Public ID. * @param systemId System ID.
packages/happy-dom/src/dom-implementation/DOMImplementation.ts:68
↓ 6 callersMethoddestroy
* Destroys the manager.
packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts:67
↓ 6 callersMethodevaluateModule
* Evaluates a module in the page's context. * * @param options Options. * @param options.url URL. * @param options.type Module type. * @para
packages/happy-dom/src/browser/types/IBrowserPage.ts:60
↓ 6 callersMethodfilter
* Returns filter. * * @returns Filter.
packages/happy-dom/src/tree-walker/NodeIterator.ts:57
↓ 6 callersMethodgetAutoMeasurement
* Returns measurement or auto, min-content, max-content or fit-content. * * @param value Value. * @returns Parsed value.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueParser.ts:292
↓ 6 callersMethodgetModule
* Fetches the source code of the module from the given URL and creates a new module instance. * * @param url Module URL. * @param [parent] Paren
packages/happy-dom/src/module/ModuleFactory.ts:41
↓ 6 callersMethodgetPaddingLikeProperty
* Returns a padding like property. * * @param properties Properties. * @param position * @param propertyNames * @returns Property value
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.ts:728
↓ 6 callersMethodgetSelectorGroups
* Parses a selector string and returns instances of SelectorItem. * * @param selector Selector. * @returns Selector groups.
packages/happy-dom/src/query-selector/SelectorParser.ts:129
↓ 6 callersMethodisCORS
* Validates request headers. * * @param originURL Origin URL. * @param targetURL Target URL.
packages/happy-dom/src/fetch/utilities/FetchCORSUtility.ts:13
↓ 6 callersMethodquery
* Returns scroll restoration. * * @param permissionDescriptor Permission descriptor. * @param permissionDescriptor.name Permission name. * @pa
packages/happy-dom/src/permissions/Permissions.ts:38
↓ 6 callersMethodrender
* Server renders URLs or HTML strings. * * @param [renderItems] List render items. Each item can be a URL string or an object specifying the URL o
packages/@happy-dom/server-renderer/src/ServerRenderer.ts:54
↓ 6 callersMethodreplaceData
* Replaces the specified amount of characters, starting at the specified offset, with the specified DOMString; when this method returns, data contains
packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts:48
↓ 6 callersMethodserializeToString
* Renders an element as HTML. * * @param root Root element. * @returns Result.
packages/happy-dom/src/html-serializer/HTMLSerializer.ts:70
↓ 6 callersMethodsetCustomValidity
* Sets validation message. * * @param message Message.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1241
↓ 6 callersMethodsetSelectionRange
* Set selection range. * * @param start Start. * @param end End. * @param [direction="none"] Direction.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1267
↓ 6 callersMethodsubstringData
* Returns a DOMString containing the part of CharacterData.data of the specified length and starting at the specified offset. * * @param character
packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts:65
↓ 6 callersMethodtoJSON
* Returns the JSON representation of the object. * * @returns JSON representation.
packages/happy-dom/src/dom/DOMRectReadOnly.ts:107
↓ 5 callersMethodarrayBuffer
*
packages/happy-dom/src/file/Blob.ts:127
↓ 5 callersMethodasciiUpperCase
* ASCII uppercase. * * @see https://infra.spec.whatwg.org/#ascii-uppercase * @param text Text. * @returns Uppercase text.
packages/happy-dom/src/utilities/StringUtility.ts:36
↓ 5 callersMethodclone
* Clones request. * * @returns Clone.
packages/happy-dom/src/fetch/Request.ts:489
↓ 5 callersMethodcreateAttributeNS
* Creates a namespaced Attr node. * * @param namespaceURI Namespace URI. * @param qualifiedName Qualified name. * @returns Element.
packages/happy-dom/src/nodes/document/Document.ts:2070
↓ 5 callersMethoddefineProperty
(target, property, descriptor)
packages/happy-dom/src/storage/Storage.ts:57
↓ 5 callersMethodendTimer
* Ends a timer. * * @param timerID Timer ID.
packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts:102
↓ 5 callersMethodenqueueReaction
* Enqueues a custom element reaction. * * @see https://html.spec.whatwg.org/multipage/custom-elements.html#enqueue-a-custom-element-callback-react
packages/happy-dom/src/custom-element/CustomElementReactionStack.ts:32
↓ 5 callersMethodevaluate
* Evaluates code or a VM Script in the page's context.
packages/happy-dom/src/browser/types/IBrowserPage.ts:49
↓ 5 callersMethodgetAsyncTaskManager
* Returns the async task manager of the window. * * @returns Async task manager.
packages/happy-dom/src/window/WindowBrowserContext.ts:86
↓ 5 callersMethodgetFloat
* Returns float. * * @param value Value. * @param important Important. * @returns Property values
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts:432
↓ 5 callersMethodgetKey
* Returns a key for a preload entry. * * @param options Options. * @param options.url URL. * @param options.destination Destination. * @para
packages/happy-dom/src/fetch/preload/PreloadUtility.ts:20
↓ 5 callersMethodinsertAdjacentElement
* Inserts a node to the given position. * * @param position Position to insert element. * @param element Node to insert. * @returns Inserted n
packages/happy-dom/src/nodes/element/Element.ts:645
↓ 5 callersMethodinsertItemBefore
* Inserts a new item into the list at the specified position. The first item is number 0. If newItem is already in a list, it is removed from its prev
packages/happy-dom/src/svg/SVGPointList.ts:251
↓ 5 callersMethodon
* * @param event * @param listener
packages/@happy-dom/server-renderer/test/MockedWorker.ts:50
↓ 5 callersMethodread
* Reads the buffer. * * @returns Console log entries.
packages/happy-dom/src/console/IVirtualConsolePrinter.ts:49
↓ 5 callersMethodreplaceItem
* Replaces an existing item in the list with a new item. If newItem is already in a list, it is removed from its previous list before it is inserted i
packages/happy-dom/src/svg/SVGPointList.ts:308
↓ 5 callersMethodround
* Rounds the number with 4 decimals. * * @param value Value. * @returns Rounded value.
packages/happy-dom/src/css/declaration/measurement-converter/CSSMeasurementConverter.ts:76
↓ 5 callersMethodset
(target, property, newValue)
packages/happy-dom/src/nodes/html-select-element/HTMLSelectElement.ts:67
↓ 5 callersMethodsetScale
* Set scale. * * @param x X. * @param y Y.
packages/happy-dom/src/svg/SVGTransform.ts:246
↓ 5 callersMethodsupports
* Returns a Boolean indicating if the pair property-value, or the condition, given in parameter is supported. * * TODO: Always returns "true" for
packages/happy-dom/src/css/CSS.ts:50
↓ 5 callersMethodunregister
* Closes the window and unregisters Happy DOM from being global.
packages/@happy-dom/global-registrator/src/GlobalRegistrator.ts:98
↓ 5 callersMethodwarn
* Outputs a warning message to the console. * * @param message Message. * @param args Arguments.
packages/happy-dom/src/console/IConsole.ts:160
↓ 4 callersMethod#onSlotChange
* Triggered when child nodes are changed. * * @param addedOrRemovedNode Changed node.
packages/happy-dom/src/nodes/element/Element.ts:1755
↓ 4 callersMethod#readFile
* Reads a file. * * @param blob Blob. * @param format Format. * @param [encoding] Encoding.
packages/happy-dom/src/file/FileReader.ts:142
↓ 4 callersMethod#removeIdentifierFromWindow
* Removes identifier from the window object. * * @param id Identifier.
packages/happy-dom/src/nodes/element/Element.ts:1707
↓ 4 callersMethod#storeBodyInCache
* Stores body in cache. * * @param buffer Buffer.
packages/happy-dom/src/fetch/Response.ts:364
↓ 4 callersMethodany
* Takes an iterable of abort signals and returns an AbortSignal that is * aborted when any of the input iterable abort signals are aborted. * *
packages/happy-dom/src/fetch/AbortSignal.ts:155
↓ 4 callersFunctionapostrophWrapper
(str)
packages/happy-dom/test/nodes/html-script-element/modules/utilities/apostrophWrapper.js:6
↓ 4 callersFunctionapostrophWrapper
(str)
packages/happy-dom/test/nodes/html-script-element/modules-with-import-map/external-scripts/utilities/apostrophWrapper.js:6
↓ 4 callersMethodappend
* Appends a new value onto an existing key. * * @param name Name. * @param value Value. * @param [filename] Filename.
packages/happy-dom/src/form-data/FormData.ts:132
← previousnext →101–200 of 4,455, ranked by callers