happy-dom 12.10.2 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
- package/README.md +27 -5
- package/cjs/PropertySymbol.cjs +86 -0
- package/cjs/PropertySymbol.cjs.map +1 -0
- package/cjs/PropertySymbol.d.ts +82 -0
- package/cjs/PropertySymbol.d.ts.map +1 -0
- package/cjs/async-task-manager/AsyncTaskManager.cjs +48 -33
- package/cjs/async-task-manager/AsyncTaskManager.cjs.map +1 -1
- package/cjs/async-task-manager/AsyncTaskManager.d.ts +15 -5
- package/cjs/async-task-manager/AsyncTaskManager.d.ts.map +1 -1
- package/cjs/browser/Browser.cjs +97 -0
- package/cjs/browser/Browser.cjs.map +1 -0
- package/cjs/browser/Browser.d.ts +62 -0
- package/cjs/browser/Browser.d.ts.map +1 -0
- package/cjs/browser/BrowserContext.cjs +86 -0
- package/cjs/browser/BrowserContext.cjs.map +1 -0
- package/cjs/browser/BrowserContext.d.ts +45 -0
- package/cjs/browser/BrowserContext.d.ts.map +1 -0
- package/cjs/browser/BrowserFrame.cjs +168 -0
- package/cjs/browser/BrowserFrame.cjs.map +1 -0
- package/cjs/browser/BrowserFrame.d.ts +98 -0
- package/cjs/browser/BrowserFrame.d.ts.map +1 -0
- package/cjs/browser/BrowserPage.cjs +123 -0
- package/cjs/browser/BrowserPage.cjs.map +1 -0
- package/cjs/browser/BrowserPage.d.ts +97 -0
- package/cjs/browser/BrowserPage.d.ts.map +1 -0
- package/cjs/browser/BrowserSettingsFactory.cjs +38 -0
- package/cjs/browser/BrowserSettingsFactory.cjs.map +1 -0
- package/cjs/browser/BrowserSettingsFactory.d.ts +16 -0
- package/cjs/browser/BrowserSettingsFactory.d.ts.map +1 -0
- package/cjs/browser/DefaultBrowserSettings.cjs +34 -0
- package/cjs/browser/DefaultBrowserSettings.cjs.map +1 -0
- package/cjs/browser/DefaultBrowserSettings.d.ts +4 -0
- package/cjs/browser/DefaultBrowserSettings.d.ts.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowser.cjs +92 -0
- package/cjs/browser/detached-browser/DetachedBrowser.cjs.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowser.d.ts +72 -0
- package/cjs/browser/detached-browser/DetachedBrowser.d.ts.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowserContext.cjs +87 -0
- package/cjs/browser/detached-browser/DetachedBrowserContext.cjs.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowserContext.d.ts +45 -0
- package/cjs/browser/detached-browser/DetachedBrowserContext.d.ts.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowserFrame.cjs +182 -0
- package/cjs/browser/detached-browser/DetachedBrowserFrame.cjs.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowserFrame.d.ts +99 -0
- package/cjs/browser/detached-browser/DetachedBrowserFrame.d.ts.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowserPage.cjs +135 -0
- package/cjs/browser/detached-browser/DetachedBrowserPage.cjs.map +1 -0
- package/cjs/browser/detached-browser/DetachedBrowserPage.d.ts +97 -0
- package/cjs/browser/detached-browser/DetachedBrowserPage.d.ts.map +1 -0
- package/cjs/browser/enums/BrowserErrorCaptureEnum.cjs +13 -0
- package/cjs/browser/enums/BrowserErrorCaptureEnum.cjs.map +1 -0
- package/cjs/browser/enums/BrowserErrorCaptureEnum.d.ts +10 -0
- package/cjs/browser/enums/BrowserErrorCaptureEnum.d.ts.map +1 -0
- package/cjs/browser/enums/BrowserNavigationCrossOriginPolicyEnum.cjs +13 -0
- package/cjs/browser/enums/BrowserNavigationCrossOriginPolicyEnum.cjs.map +1 -0
- package/cjs/browser/enums/BrowserNavigationCrossOriginPolicyEnum.d.ts +10 -0
- package/cjs/browser/enums/BrowserNavigationCrossOriginPolicyEnum.d.ts.map +1 -0
- package/cjs/{window/IHappyDOMOptions.cjs → browser/types/IBrowser.cjs} +1 -1
- package/cjs/browser/types/IBrowser.cjs.map +1 -0
- package/cjs/browser/types/IBrowser.d.ts +44 -0
- package/cjs/browser/types/IBrowser.d.ts.map +1 -0
- package/cjs/{window/IHappyDOMSettings.cjs → browser/types/IBrowserContext.cjs} +1 -1
- package/cjs/browser/types/IBrowserContext.cjs.map +1 -0
- package/cjs/browser/types/IBrowserContext.d.ts +38 -0
- package/cjs/browser/types/IBrowserContext.d.ts.map +1 -0
- package/cjs/browser/types/IBrowserFrame.cjs +27 -0
- package/cjs/browser/types/IBrowserFrame.cjs.map +1 -0
- package/cjs/browser/types/IBrowserFrame.d.ts +62 -0
- package/cjs/browser/types/IBrowserFrame.d.ts.map +1 -0
- package/cjs/browser/types/IBrowserPage.cjs +3 -0
- package/cjs/browser/types/IBrowserPage.cjs.map +1 -0
- package/cjs/browser/types/IBrowserPage.d.ts +63 -0
- package/cjs/browser/types/IBrowserPage.d.ts.map +1 -0
- package/cjs/browser/types/IBrowserPageViewport.cjs +3 -0
- package/cjs/browser/types/IBrowserPageViewport.cjs.map +1 -0
- package/cjs/browser/types/IBrowserPageViewport.d.ts +6 -0
- package/cjs/browser/types/IBrowserPageViewport.d.ts.map +1 -0
- package/cjs/browser/types/IBrowserSettings.cjs +3 -0
- package/cjs/browser/types/IBrowserSettings.cjs.map +1 -0
- package/cjs/browser/types/IBrowserSettings.d.ts +81 -0
- package/cjs/browser/types/IBrowserSettings.d.ts.map +1 -0
- package/cjs/browser/types/IGoToOptions.cjs +3 -0
- package/cjs/browser/types/IGoToOptions.cjs.map +1 -0
- package/cjs/browser/types/IGoToOptions.d.ts +16 -0
- package/cjs/browser/types/IGoToOptions.d.ts.map +1 -0
- package/cjs/browser/types/IOptionalBrowserSettings.cjs +3 -0
- package/cjs/browser/types/IOptionalBrowserSettings.cjs.map +1 -0
- package/cjs/browser/types/IOptionalBrowserSettings.d.ts +60 -0
- package/cjs/browser/types/IOptionalBrowserSettings.d.ts.map +1 -0
- package/cjs/browser/types/IReloadOptions.cjs +3 -0
- package/cjs/browser/types/IReloadOptions.cjs.map +1 -0
- package/cjs/browser/types/IReloadOptions.d.ts +14 -0
- package/cjs/browser/types/IReloadOptions.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserFrameExceptionObserver.cjs +76 -0
- package/cjs/browser/utilities/BrowserFrameExceptionObserver.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserFrameExceptionObserver.d.ts +21 -0
- package/cjs/browser/utilities/BrowserFrameExceptionObserver.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserFrameFactory.cjs +87 -0
- package/cjs/browser/utilities/BrowserFrameFactory.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserFrameFactory.d.ts +20 -0
- package/cjs/browser/utilities/BrowserFrameFactory.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserFrameNavigator.cjs +154 -0
- package/cjs/browser/utilities/BrowserFrameNavigator.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserFrameNavigator.d.ts +25 -0
- package/cjs/browser/utilities/BrowserFrameNavigator.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserFrameScriptEvaluator.cjs +24 -0
- package/cjs/browser/utilities/BrowserFrameScriptEvaluator.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserFrameScriptEvaluator.d.ts +17 -0
- package/cjs/browser/utilities/BrowserFrameScriptEvaluator.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserFrameURL.cjs +39 -0
- package/cjs/browser/utilities/BrowserFrameURL.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserFrameURL.d.ts +17 -0
- package/cjs/browser/utilities/BrowserFrameURL.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserFrameValidator.cjs +71 -0
- package/cjs/browser/utilities/BrowserFrameValidator.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserFrameValidator.d.ts +24 -0
- package/cjs/browser/utilities/BrowserFrameValidator.d.ts.map +1 -0
- package/cjs/browser/utilities/BrowserPageUtility.cjs +85 -0
- package/cjs/browser/utilities/BrowserPageUtility.cjs.map +1 -0
- package/cjs/browser/utilities/BrowserPageUtility.d.ts +36 -0
- package/cjs/browser/utilities/BrowserPageUtility.d.ts.map +1 -0
- package/cjs/clipboard/Clipboard.cjs.map +1 -1
- package/cjs/clipboard/Clipboard.d.ts +2 -2
- package/cjs/clipboard/Clipboard.d.ts.map +1 -1
- package/cjs/config/ElementTag.cjs +128 -155
- package/cjs/config/ElementTag.cjs.map +1 -1
- package/cjs/config/ElementTag.d.ts +1 -152
- package/cjs/config/ElementTag.d.ts.map +1 -1
- package/cjs/console/VirtualConsole.cjs +70 -54
- package/cjs/console/VirtualConsole.cjs.map +1 -1
- package/cjs/console/VirtualConsole.d.ts +1 -5
- package/cjs/console/VirtualConsole.d.ts.map +1 -1
- package/cjs/console/VirtualConsolePrinter.cjs +26 -13
- package/cjs/console/VirtualConsolePrinter.cjs.map +1 -1
- package/cjs/console/VirtualConsolePrinter.d.ts +1 -2
- package/cjs/console/VirtualConsolePrinter.d.ts.map +1 -1
- package/cjs/console/types/IVirtualConsolePrinter.d.ts +1 -1
- package/cjs/console/types/IVirtualConsolePrinter.d.ts.map +1 -1
- package/cjs/cookie/CookieContainer.cjs +71 -0
- package/cjs/cookie/CookieContainer.cjs.map +1 -0
- package/cjs/cookie/CookieContainer.d.ts +27 -0
- package/cjs/cookie/CookieContainer.d.ts.map +1 -0
- package/cjs/cookie/enums/CookieSameSiteEnum.cjs.map +1 -0
- package/cjs/cookie/enums/CookieSameSiteEnum.d.ts.map +1 -0
- package/cjs/cookie/types/ICookie.cjs +3 -0
- package/cjs/cookie/types/ICookie.cjs.map +1 -0
- package/cjs/cookie/types/ICookie.d.ts +14 -0
- package/cjs/cookie/types/ICookie.d.ts.map +1 -0
- package/cjs/cookie/types/ICookieContainer.cjs +3 -0
- package/cjs/cookie/types/ICookieContainer.cjs.map +1 -0
- package/cjs/cookie/types/ICookieContainer.d.ts +25 -0
- package/cjs/cookie/types/ICookieContainer.d.ts.map +1 -0
- package/cjs/cookie/urilities/CookieExpireUtility.cjs +18 -0
- package/cjs/cookie/urilities/CookieExpireUtility.cjs.map +1 -0
- package/cjs/cookie/urilities/CookieExpireUtility.d.ts +14 -0
- package/cjs/cookie/urilities/CookieExpireUtility.d.ts.map +1 -0
- package/cjs/cookie/urilities/CookieStringUtility.cjs +107 -0
- package/cjs/cookie/urilities/CookieStringUtility.cjs.map +1 -0
- package/cjs/cookie/urilities/CookieStringUtility.d.ts +23 -0
- package/cjs/cookie/urilities/CookieStringUtility.d.ts.map +1 -0
- package/cjs/cookie/urilities/CookieURLUtility.cjs +28 -0
- package/cjs/cookie/urilities/CookieURLUtility.cjs.map +1 -0
- package/cjs/cookie/urilities/CookieURLUtility.d.ts +16 -0
- package/cjs/cookie/urilities/CookieURLUtility.d.ts.map +1 -0
- package/cjs/css/CSSParser.cjs +25 -1
- package/cjs/css/CSSParser.cjs.map +1 -1
- package/cjs/css/CSSParser.d.ts.map +1 -1
- package/cjs/css/CSSStyleSheet.cjs +16 -3
- package/cjs/css/CSSStyleSheet.cjs.map +1 -1
- package/cjs/css/CSSStyleSheet.d.ts +1 -1
- package/cjs/css/CSSStyleSheet.d.ts.map +1 -1
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.cjs +91 -52
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.cjs.map +1 -1
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.d.ts +1 -6
- package/cjs/css/declaration/AbstractCSSStyleDeclaration.d.ts.map +1 -1
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.cjs +32 -7
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.cjs.map +1 -1
- package/cjs/css/declaration/element-style/CSSStyleDeclarationElementStyle.d.ts.map +1 -1
- package/cjs/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts +2 -2
- package/cjs/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts.map +1 -1
- package/cjs/css/rules/CSSFontFaceRule.cjs +44 -7
- package/cjs/css/rules/CSSFontFaceRule.cjs.map +1 -1
- package/cjs/css/rules/CSSFontFaceRule.d.ts +3 -2
- package/cjs/css/rules/CSSFontFaceRule.d.ts.map +1 -1
- package/cjs/css/rules/CSSKeyframeRule.cjs +44 -7
- package/cjs/css/rules/CSSKeyframeRule.cjs.map +1 -1
- package/cjs/css/rules/CSSKeyframeRule.d.ts +3 -2
- package/cjs/css/rules/CSSKeyframeRule.d.ts.map +1 -1
- package/cjs/css/rules/CSSStyleRule.cjs +44 -7
- package/cjs/css/rules/CSSStyleRule.cjs.map +1 -1
- package/cjs/css/rules/CSSStyleRule.d.ts +3 -2
- package/cjs/css/rules/CSSStyleRule.d.ts.map +1 -1
- package/cjs/custom-element/CustomElementRegistry.cjs +39 -10
- package/cjs/custom-element/CustomElementRegistry.cjs.map +1 -1
- package/cjs/custom-element/CustomElementRegistry.d.ts +3 -2
- package/cjs/custom-element/CustomElementRegistry.d.ts.map +1 -1
- package/cjs/dom-implementation/DOMImplementation.cjs +47 -13
- package/cjs/dom-implementation/DOMImplementation.cjs.map +1 -1
- package/cjs/dom-implementation/DOMImplementation.d.ts +3 -3
- package/cjs/dom-implementation/DOMImplementation.d.ts.map +1 -1
- package/cjs/dom-parser/DOMParser.cjs +63 -39
- package/cjs/dom-parser/DOMParser.cjs.map +1 -1
- package/cjs/dom-parser/DOMParser.d.ts +5 -9
- package/cjs/dom-parser/DOMParser.d.ts.map +1 -1
- package/cjs/dom-token-list/DOMTokenList.cjs +56 -18
- package/cjs/dom-token-list/DOMTokenList.cjs.map +1 -1
- package/cjs/dom-token-list/DOMTokenList.d.ts +3 -3
- package/cjs/dom-token-list/DOMTokenList.d.ts.map +1 -1
- package/cjs/event/Event.cjs +40 -14
- package/cjs/event/Event.cjs.map +1 -1
- package/cjs/event/Event.d.ts +6 -5
- package/cjs/event/Event.d.ts.map +1 -1
- package/cjs/event/EventTarget.cjs +88 -52
- package/cjs/event/EventTarget.cjs.map +1 -1
- package/cjs/event/EventTarget.d.ts +4 -9
- package/cjs/event/EventTarget.d.ts.map +1 -1
- package/cjs/event/IUIEventInit.d.ts +2 -2
- package/cjs/event/IUIEventInit.d.ts.map +1 -1
- package/cjs/event/UIEvent.d.ts +2 -2
- package/cjs/event/UIEvent.d.ts.map +1 -1
- package/cjs/event/events/IMessageEventInit.d.ts +2 -2
- package/cjs/event/events/IMessageEventInit.d.ts.map +1 -1
- package/cjs/event/events/MessageEvent.d.ts +2 -2
- package/cjs/event/events/MessageEvent.d.ts.map +1 -1
- package/cjs/fetch/AbortController.cjs +25 -1
- package/cjs/fetch/AbortController.cjs.map +1 -1
- package/cjs/fetch/AbortController.d.ts.map +1 -1
- package/cjs/fetch/AbortSignal.cjs +25 -1
- package/cjs/fetch/AbortSignal.cjs.map +1 -1
- package/cjs/fetch/AbortSignal.d.ts +2 -1
- package/cjs/fetch/AbortSignal.d.ts.map +1 -1
- package/cjs/fetch/Fetch.cjs +329 -188
- package/cjs/fetch/Fetch.cjs.map +1 -1
- package/cjs/fetch/Fetch.d.ts +40 -35
- package/cjs/fetch/Fetch.d.ts.map +1 -1
- package/cjs/fetch/Headers.cjs +41 -16
- package/cjs/fetch/Headers.cjs.map +1 -1
- package/cjs/fetch/Headers.d.ts +2 -1
- package/cjs/fetch/Headers.d.ts.map +1 -1
- package/cjs/fetch/Request.cjs +88 -46
- package/cjs/fetch/Request.cjs.map +1 -1
- package/cjs/fetch/Request.d.ts +21 -9
- package/cjs/fetch/Request.d.ts.map +1 -1
- package/cjs/fetch/ResourceFetch.cjs +47 -14
- package/cjs/fetch/ResourceFetch.cjs.map +1 -1
- package/cjs/fetch/ResourceFetch.d.ts +17 -5
- package/cjs/fetch/ResourceFetch.d.ts.map +1 -1
- package/cjs/fetch/Response.cjs +121 -63
- package/cjs/fetch/Response.cjs.map +1 -1
- package/cjs/fetch/Response.d.ts +20 -8
- package/cjs/fetch/Response.d.ts.map +1 -1
- package/cjs/fetch/SyncFetch.cjs +459 -0
- package/cjs/fetch/SyncFetch.cjs.map +1 -0
- package/cjs/fetch/SyncFetch.d.ts +80 -0
- package/cjs/fetch/SyncFetch.d.ts.map +1 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightRequest.cjs +3 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightRequest.cjs.map +1 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightRequest.d.ts +7 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightRequest.d.ts.map +1 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightResponse.cjs +3 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightResponse.cjs.map +1 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightResponse.d.ts +7 -0
- package/cjs/fetch/cache/preflight/ICachablePreflightResponse.d.ts.map +1 -0
- package/cjs/fetch/cache/preflight/ICachedPreflightResponse.cjs +3 -0
- package/cjs/fetch/cache/preflight/ICachedPreflightResponse.cjs.map +1 -0
- package/cjs/fetch/cache/preflight/ICachedPreflightResponse.d.ts +6 -0
- package/cjs/fetch/cache/preflight/ICachedPreflightResponse.d.ts.map +1 -0
- package/cjs/fetch/cache/preflight/IPreflightResponseCache.cjs +3 -0
- package/cjs/fetch/cache/preflight/IPreflightResponseCache.cjs.map +1 -0
- package/cjs/fetch/cache/preflight/IPreflightResponseCache.d.ts +28 -0
- package/cjs/fetch/cache/preflight/IPreflightResponseCache.d.ts.map +1 -0
- package/cjs/fetch/cache/preflight/PreflightResponseCache.cjs +90 -0
- package/cjs/fetch/cache/preflight/PreflightResponseCache.cjs.map +1 -0
- package/cjs/fetch/cache/preflight/PreflightResponseCache.d.ts +32 -0
- package/cjs/fetch/cache/preflight/PreflightResponseCache.d.ts.map +1 -0
- package/cjs/fetch/cache/response/CachedResponseStateEnum.cjs +9 -0
- package/cjs/fetch/cache/response/CachedResponseStateEnum.cjs.map +1 -0
- package/cjs/fetch/cache/response/CachedResponseStateEnum.d.ts +6 -0
- package/cjs/fetch/cache/response/CachedResponseStateEnum.d.ts.map +1 -0
- package/cjs/fetch/cache/response/ICachableRequest.cjs +3 -0
- package/cjs/fetch/cache/response/ICachableRequest.cjs.map +1 -0
- package/cjs/fetch/cache/response/ICachableRequest.d.ts +7 -0
- package/cjs/fetch/cache/response/ICachableRequest.d.ts.map +1 -0
- package/cjs/fetch/cache/response/ICachableResponse.cjs +3 -0
- package/cjs/fetch/cache/response/ICachableResponse.cjs.map +1 -0
- package/cjs/fetch/cache/response/ICachableResponse.d.ts +11 -0
- package/cjs/fetch/cache/response/ICachableResponse.d.ts.map +1 -0
- package/cjs/fetch/cache/response/ICachedResponse.cjs +3 -0
- package/cjs/fetch/cache/response/ICachedResponse.cjs.map +1 -0
- package/cjs/fetch/cache/response/ICachedResponse.d.ts +38 -0
- package/cjs/fetch/cache/response/ICachedResponse.d.ts.map +1 -0
- package/cjs/fetch/cache/response/IResponseCache.cjs +3 -0
- package/cjs/fetch/cache/response/IResponseCache.cjs.map +1 -0
- package/cjs/fetch/cache/response/IResponseCache.d.ts +35 -0
- package/cjs/fetch/cache/response/IResponseCache.d.ts.map +1 -0
- package/cjs/fetch/cache/response/ResponseCache.cjs +220 -0
- package/cjs/fetch/cache/response/ResponseCache.cjs.map +1 -0
- package/cjs/fetch/cache/response/ResponseCache.d.ts +40 -0
- package/cjs/fetch/cache/response/ResponseCache.d.ts.map +1 -0
- package/cjs/fetch/certificate/FetchHTTPSCertificate.cjs +55 -0
- package/cjs/fetch/certificate/FetchHTTPSCertificate.cjs.map +1 -0
- package/cjs/fetch/certificate/FetchHTTPSCertificate.d.ts +6 -0
- package/cjs/fetch/certificate/FetchHTTPSCertificate.d.ts.map +1 -0
- package/cjs/fetch/multipart/MultipartFormDataParser.cjs +55 -4
- package/cjs/fetch/multipart/MultipartFormDataParser.cjs.map +1 -1
- package/cjs/fetch/multipart/MultipartFormDataParser.d.ts +4 -1
- package/cjs/fetch/multipart/MultipartFormDataParser.d.ts.map +1 -1
- package/cjs/fetch/types/ISyncResponse.cjs +3 -0
- package/cjs/fetch/types/ISyncResponse.cjs.map +1 -0
- package/cjs/fetch/types/ISyncResponse.d.ts +17 -0
- package/cjs/fetch/types/ISyncResponse.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchBodyUtility.cjs +39 -10
- package/cjs/fetch/utilities/FetchBodyUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchBodyUtility.d.ts +12 -5
- package/cjs/fetch/utilities/FetchBodyUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchCORSUtility.cjs +6 -0
- package/cjs/fetch/utilities/FetchCORSUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchCORSUtility.d.ts +3 -1
- package/cjs/fetch/utilities/FetchCORSUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.cjs +91 -2
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.d.ts +26 -0
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.cjs +83 -44
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.d.ts +19 -12
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchRequestValidationUtility.cjs +53 -0
- package/cjs/fetch/utilities/FetchRequestValidationUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchRequestValidationUtility.d.ts +17 -2
- package/cjs/fetch/utilities/FetchRequestValidationUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchResponseHeaderUtility.cjs +48 -0
- package/cjs/fetch/utilities/FetchResponseHeaderUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchResponseHeaderUtility.d.ts +24 -0
- package/cjs/fetch/utilities/FetchResponseHeaderUtility.d.ts.map +1 -0
- package/cjs/fetch/utilities/FetchResponseRedirectUtility.cjs +29 -0
- package/cjs/fetch/utilities/FetchResponseRedirectUtility.cjs.map +1 -0
- package/cjs/fetch/utilities/FetchResponseRedirectUtility.d.ts +20 -0
- package/cjs/fetch/utilities/FetchResponseRedirectUtility.d.ts.map +1 -0
- package/cjs/fetch/utilities/SyncFetchScriptBuilder.cjs +63 -0
- package/cjs/fetch/utilities/SyncFetchScriptBuilder.cjs.map +1 -0
- package/cjs/fetch/utilities/SyncFetchScriptBuilder.d.ts +26 -0
- package/cjs/fetch/utilities/SyncFetchScriptBuilder.d.ts.map +1 -0
- package/cjs/file/Blob.cjs +34 -8
- package/cjs/file/Blob.cjs.map +1 -1
- package/cjs/file/Blob.d.ts +2 -1
- package/cjs/file/Blob.d.ts.map +1 -1
- package/cjs/file/FileReader.cjs +100 -72
- package/cjs/file/FileReader.cjs.map +1 -1
- package/cjs/file/FileReader.d.ts +5 -15
- package/cjs/file/FileReader.d.ts.map +1 -1
- package/cjs/form-data/FormData.cjs +69 -39
- package/cjs/form-data/FormData.cjs.map +1 -1
- package/cjs/form-data/FormData.d.ts +1 -9
- package/cjs/form-data/FormData.d.ts.map +1 -1
- package/cjs/history/History.cjs +17 -4
- package/cjs/history/History.cjs.map +1 -1
- package/cjs/history/History.d.ts +1 -1
- package/cjs/history/History.d.ts.map +1 -1
- package/cjs/index.cjs +171 -151
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts +143 -130
- package/cjs/index.d.ts.map +1 -1
- package/cjs/location/Location.cjs +27 -24
- package/cjs/location/Location.cjs.map +1 -1
- package/cjs/location/Location.d.ts +9 -9
- package/cjs/location/Location.d.ts.map +1 -1
- package/cjs/match-media/MediaQueryItem.cjs +6 -3
- package/cjs/match-media/MediaQueryItem.cjs.map +1 -1
- package/cjs/match-media/MediaQueryItem.d.ts +2 -2
- package/cjs/match-media/MediaQueryItem.d.ts.map +1 -1
- package/cjs/match-media/MediaQueryList.cjs +62 -25
- package/cjs/match-media/MediaQueryList.cjs.map +1 -1
- package/cjs/match-media/MediaQueryList.d.ts +3 -6
- package/cjs/match-media/MediaQueryList.d.ts.map +1 -1
- package/cjs/match-media/MediaQueryParser.d.ts +2 -2
- package/cjs/match-media/MediaQueryParser.d.ts.map +1 -1
- package/cjs/mutation-observer/MutationListener.cjs +77 -4
- package/cjs/mutation-observer/MutationListener.cjs.map +1 -1
- package/cjs/mutation-observer/MutationListener.d.ts +36 -3
- package/cjs/mutation-observer/MutationListener.d.ts.map +1 -1
- package/cjs/mutation-observer/MutationObserver.cjs +93 -15
- package/cjs/mutation-observer/MutationObserver.cjs.map +1 -1
- package/cjs/mutation-observer/MutationObserver.d.ts +5 -5
- package/cjs/mutation-observer/MutationObserver.d.ts.map +1 -1
- package/cjs/mutation-observer/MutationRecord.cjs +7 -1
- package/cjs/mutation-observer/MutationRecord.cjs.map +1 -1
- package/cjs/mutation-observer/MutationRecord.d.ts +6 -0
- package/cjs/mutation-observer/MutationRecord.d.ts.map +1 -1
- package/cjs/named-node-map/NamedNodeMap.cjs +43 -18
- package/cjs/named-node-map/NamedNodeMap.cjs.map +1 -1
- package/cjs/named-node-map/NamedNodeMap.d.ts +7 -6
- package/cjs/named-node-map/NamedNodeMap.d.ts.map +1 -1
- package/cjs/navigator/Navigator.cjs +3 -2
- package/cjs/navigator/Navigator.cjs.map +1 -1
- package/cjs/navigator/Navigator.d.ts +2 -2
- package/cjs/navigator/Navigator.d.ts.map +1 -1
- package/cjs/nodes/character-data/CharacterData.cjs +43 -17
- package/cjs/nodes/character-data/CharacterData.cjs.map +1 -1
- package/cjs/nodes/character-data/CharacterData.d.ts +2 -1
- package/cjs/nodes/character-data/CharacterData.d.ts.map +1 -1
- package/cjs/nodes/child-node/ChildNodeUtility.cjs +27 -3
- package/cjs/nodes/child-node/ChildNodeUtility.cjs.map +1 -1
- package/cjs/nodes/child-node/ChildNodeUtility.d.ts.map +1 -1
- package/cjs/nodes/document/Document.cjs +143 -105
- package/cjs/nodes/document/Document.cjs.map +1 -1
- package/cjs/nodes/document/Document.d.ts +24 -24
- package/cjs/nodes/document/Document.d.ts.map +1 -1
- package/cjs/nodes/document/DocumentReadyStateManager.cjs +1 -1
- package/cjs/nodes/document/DocumentReadyStateManager.cjs.map +1 -1
- package/cjs/nodes/document/DocumentReadyStateManager.d.ts +3 -3
- package/cjs/nodes/document/DocumentReadyStateManager.d.ts.map +1 -1
- package/cjs/nodes/document/IDocument.cjs +24 -0
- package/cjs/nodes/document/IDocument.cjs.map +1 -1
- package/cjs/nodes/document/IDocument.d.ts +4 -2
- package/cjs/nodes/document/IDocument.d.ts.map +1 -1
- package/cjs/nodes/document/NodeCreationOwnerDocument.cjs +15 -0
- package/cjs/nodes/document/NodeCreationOwnerDocument.cjs.map +1 -0
- package/cjs/nodes/document/NodeCreationOwnerDocument.d.ts +15 -0
- package/cjs/nodes/document/NodeCreationOwnerDocument.d.ts.map +1 -0
- package/cjs/nodes/document-fragment/DocumentFragment.cjs +36 -10
- package/cjs/nodes/document-fragment/DocumentFragment.cjs.map +1 -1
- package/cjs/nodes/document-fragment/DocumentFragment.d.ts +3 -2
- package/cjs/nodes/document-fragment/DocumentFragment.d.ts.map +1 -1
- package/cjs/nodes/element/Dataset.cjs +25 -1
- package/cjs/nodes/element/Dataset.cjs.map +1 -1
- package/cjs/nodes/element/Dataset.d.ts.map +1 -1
- package/cjs/nodes/element/Element.cjs +77 -59
- package/cjs/nodes/element/Element.cjs.map +1 -1
- package/cjs/nodes/element/Element.d.ts +11 -18
- package/cjs/nodes/element/Element.d.ts.map +1 -1
- package/cjs/nodes/element/ElementNamedNodeMap.cjs +74 -50
- package/cjs/nodes/element/ElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/element/ElementNamedNodeMap.d.ts +6 -5
- package/cjs/nodes/element/ElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/element/ElementUtility.cjs +35 -11
- package/cjs/nodes/element/ElementUtility.cjs.map +1 -1
- package/cjs/nodes/element/ElementUtility.d.ts.map +1 -1
- package/cjs/nodes/element/HTMLCollection.cjs +44 -19
- package/cjs/nodes/element/HTMLCollection.cjs.map +1 -1
- package/cjs/nodes/element/HTMLCollection.d.ts +5 -4
- package/cjs/nodes/element/HTMLCollection.d.ts.map +1 -1
- package/cjs/nodes/element/IElement.d.ts +2 -2
- package/cjs/nodes/element/IElement.d.ts.map +1 -1
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.cjs +97 -53
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.cjs.map +1 -1
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.d.ts +8 -2
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.d.ts.map +1 -1
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.cjs +32 -8
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-button-element/HTMLButtonElement.cjs +52 -29
- package/cjs/nodes/html-button-element/HTMLButtonElement.cjs.map +1 -1
- package/cjs/nodes/html-button-element/HTMLButtonElement.d.ts +3 -10
- package/cjs/nodes/html-button-element/HTMLButtonElement.d.ts.map +1 -1
- package/cjs/nodes/html-button-element/HTMLButtonElementNamedNodeMap.cjs +32 -7
- package/cjs/nodes/html-button-element/HTMLButtonElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-button-element/HTMLButtonElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-button-element/HTMLButtonElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-document/HTMLDocument.cjs +19 -0
- package/cjs/nodes/html-document/HTMLDocument.cjs.map +1 -1
- package/cjs/nodes/html-document/HTMLDocument.d.ts +13 -0
- package/cjs/nodes/html-document/HTMLDocument.d.ts.map +1 -1
- package/cjs/nodes/html-element/HTMLElement.cjs +50 -13
- package/cjs/nodes/html-element/HTMLElement.cjs.map +1 -1
- package/cjs/nodes/html-element/HTMLElement.d.ts +3 -2
- package/cjs/nodes/html-element/HTMLElement.d.ts.map +1 -1
- package/cjs/nodes/html-element/HTMLElementNamedNodeMap.cjs +32 -6
- package/cjs/nodes/html-element/HTMLElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-element/HTMLElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-element/HTMLElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-element/HTMLElementUtility.cjs +34 -10
- package/cjs/nodes/html-element/HTMLElementUtility.cjs.map +1 -1
- package/cjs/nodes/html-element/HTMLElementUtility.d.ts.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.cjs +51 -21
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.cjs.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.d.ts +5 -4
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.d.ts.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs +33 -8
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts +4 -3
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs +65 -11
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts +13 -5
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.cjs +25 -2
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.d.ts +10 -2
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.cjs +122 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.cjs.map +1 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.d.ts +35 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.d.ts.map +1 -0
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.d.ts +3 -3
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.d.ts.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs +126 -101
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts +7 -20
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElementDateUtility.cjs +13 -12
- package/cjs/nodes/html-input-element/HTMLInputElementDateUtility.cjs.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElementDateUtility.d.ts +1 -0
- package/cjs/nodes/html-input-element/HTMLInputElementDateUtility.d.ts.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElementNamedNodeMap.cjs +32 -7
- package/cjs/nodes/html-input-element/HTMLInputElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-input-element/HTMLInputElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-label-element/HTMLLabelElement.cjs +25 -1
- package/cjs/nodes/html-label-element/HTMLLabelElement.cjs.map +1 -1
- package/cjs/nodes/html-label-element/HTMLLabelElement.d.ts.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElement.cjs +61 -13
- package/cjs/nodes/html-link-element/HTMLLinkElement.cjs.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElement.d.ts +12 -3
- package/cjs/nodes/html-link-element/HTMLLinkElement.d.ts.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementNamedNodeMap.cjs +61 -9
- package/cjs/nodes/html-link-element/HTMLLinkElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementNamedNodeMap.d.ts +13 -2
- package/cjs/nodes/html-link-element/HTMLLinkElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.cjs +123 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.cjs.map +1 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.d.ts +27 -0
- package/cjs/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.d.ts.map +1 -0
- package/cjs/nodes/html-option-element/HTMLOptionElement.cjs +43 -16
- package/cjs/nodes/html-option-element/HTMLOptionElement.cjs.map +1 -1
- package/cjs/nodes/html-option-element/HTMLOptionElement.d.ts +4 -4
- package/cjs/nodes/html-option-element/HTMLOptionElement.d.ts.map +1 -1
- package/cjs/nodes/html-option-element/HTMLOptionElementNamedNodeMap.cjs +36 -10
- package/cjs/nodes/html-option-element/HTMLOptionElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-option-element/HTMLOptionElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-option-element/HTMLOptionElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElement.cjs +69 -15
- package/cjs/nodes/html-script-element/HTMLScriptElement.cjs.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElement.d.ts +11 -2
- package/cjs/nodes/html-script-element/HTMLScriptElement.d.ts.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementNamedNodeMap.cjs +52 -3
- package/cjs/nodes/html-script-element/HTMLScriptElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementNamedNodeMap.d.ts +11 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementScriptLoader.cjs +141 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementScriptLoader.cjs.map +1 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementScriptLoader.d.ts +26 -0
- package/cjs/nodes/html-script-element/HTMLScriptElementScriptLoader.d.ts.map +1 -0
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.cjs +21 -7
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.cjs.map +1 -1
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.d.ts +1 -1
- package/cjs/nodes/html-select-element/HTMLOptionsCollection.d.ts.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElement.cjs +65 -38
- package/cjs/nodes/html-select-element/HTMLSelectElement.cjs.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts +5 -9
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElementNamedNodeMap.cjs +32 -7
- package/cjs/nodes/html-select-element/HTMLSelectElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-select-element/HTMLSelectElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-slot-element/HTMLSlotElement.cjs +27 -3
- package/cjs/nodes/html-slot-element/HTMLSlotElement.cjs.map +1 -1
- package/cjs/nodes/html-slot-element/HTMLSlotElement.d.ts.map +1 -1
- package/cjs/nodes/html-style-element/HTMLStyleElement.cjs +31 -5
- package/cjs/nodes/html-style-element/HTMLStyleElement.cjs.map +1 -1
- package/cjs/nodes/html-style-element/HTMLStyleElement.d.ts +2 -1
- package/cjs/nodes/html-style-element/HTMLStyleElement.d.ts.map +1 -1
- package/cjs/nodes/html-template-element/HTMLTemplateElement.cjs +26 -2
- package/cjs/nodes/html-template-element/HTMLTemplateElement.cjs.map +1 -1
- package/cjs/nodes/html-template-element/HTMLTemplateElement.d.ts.map +1 -1
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.cjs +88 -53
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.cjs.map +1 -1
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.d.ts +6 -8
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.d.ts.map +1 -1
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.cjs +32 -7
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.cjs +73 -34
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.cjs.map +1 -1
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.d.ts +3 -2
- package/cjs/nodes/html-unknown-element/HTMLUnknownElement.d.ts.map +1 -1
- package/cjs/nodes/node/Node.cjs +100 -61
- package/cjs/nodes/node/Node.cjs.map +1 -1
- package/cjs/nodes/node/Node.d.ts +12 -11
- package/cjs/nodes/node/Node.d.ts.map +1 -1
- package/cjs/nodes/node/NodeUtility.cjs +77 -47
- package/cjs/nodes/node/NodeUtility.cjs.map +1 -1
- package/cjs/nodes/node/NodeUtility.d.ts +1 -1
- package/cjs/nodes/node/NodeUtility.d.ts.map +1 -1
- package/cjs/nodes/parent-node/ParentNodeUtility.cjs +31 -7
- package/cjs/nodes/parent-node/ParentNodeUtility.cjs.map +1 -1
- package/cjs/nodes/parent-node/ParentNodeUtility.d.ts.map +1 -1
- package/cjs/nodes/shadow-root/ShadowRoot.cjs +27 -3
- package/cjs/nodes/shadow-root/ShadowRoot.cjs.map +1 -1
- package/cjs/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
- package/cjs/nodes/svg-element/SVGElement.cjs +43 -6
- package/cjs/nodes/svg-element/SVGElement.cjs.map +1 -1
- package/cjs/nodes/svg-element/SVGElement.d.ts +3 -2
- package/cjs/nodes/svg-element/SVGElement.d.ts.map +1 -1
- package/cjs/nodes/svg-element/SVGElementNamedNodeMap.cjs +32 -6
- package/cjs/nodes/svg-element/SVGElementNamedNodeMap.cjs.map +1 -1
- package/cjs/nodes/svg-element/SVGElementNamedNodeMap.d.ts +3 -2
- package/cjs/nodes/svg-element/SVGElementNamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/text/Text.cjs +35 -11
- package/cjs/nodes/text/Text.cjs.map +1 -1
- package/cjs/nodes/text/Text.d.ts +2 -1
- package/cjs/nodes/text/Text.d.ts.map +1 -1
- package/cjs/query-selector/QuerySelector.cjs +32 -8
- package/cjs/query-selector/QuerySelector.cjs.map +1 -1
- package/cjs/query-selector/QuerySelector.d.ts.map +1 -1
- package/cjs/query-selector/SelectorItem.cjs +28 -2
- package/cjs/query-selector/SelectorItem.cjs.map +1 -1
- package/cjs/query-selector/SelectorItem.d.ts.map +1 -1
- package/cjs/range/Range.cjs +229 -186
- package/cjs/range/Range.cjs.map +1 -1
- package/cjs/range/Range.d.ts +9 -5
- package/cjs/range/Range.d.ts.map +1 -1
- package/cjs/range/RangeUtility.cjs +25 -1
- package/cjs/range/RangeUtility.cjs.map +1 -1
- package/cjs/range/RangeUtility.d.ts.map +1 -1
- package/cjs/selection/Selection.cjs +142 -113
- package/cjs/selection/Selection.cjs.map +1 -1
- package/cjs/selection/Selection.d.ts +2 -11
- package/cjs/selection/Selection.d.ts.map +1 -1
- package/cjs/storage/Storage.cjs +22 -7
- package/cjs/storage/Storage.cjs.map +1 -1
- package/cjs/storage/Storage.d.ts +3 -1
- package/cjs/storage/Storage.d.ts.map +1 -1
- package/cjs/tree-walker/NodeIterator.cjs +17 -3
- package/cjs/tree-walker/NodeIterator.cjs.map +1 -1
- package/cjs/tree-walker/NodeIterator.d.ts +1 -1
- package/cjs/tree-walker/NodeIterator.d.ts.map +1 -1
- package/cjs/tree-walker/TreeWalker.cjs +28 -4
- package/cjs/tree-walker/TreeWalker.cjs.map +1 -1
- package/cjs/tree-walker/TreeWalker.d.ts.map +1 -1
- package/cjs/url/URL.cjs +25 -1
- package/cjs/url/URL.cjs.map +1 -1
- package/cjs/url/URL.d.ts.map +1 -1
- package/cjs/validity-state/ValidityState.cjs +26 -1
- package/cjs/validity-state/ValidityState.cjs.map +1 -1
- package/cjs/validity-state/ValidityState.d.ts.map +1 -1
- package/cjs/version.cjs +1 -1
- package/cjs/window/BrowserWindow.cjs +962 -0
- package/cjs/window/BrowserWindow.cjs.map +1 -0
- package/cjs/window/BrowserWindow.d.ts +684 -0
- package/cjs/window/BrowserWindow.d.ts.map +1 -0
- package/cjs/window/CrossOriginBrowserWindow.cjs +95 -0
- package/cjs/window/CrossOriginBrowserWindow.cjs.map +1 -0
- package/cjs/window/CrossOriginBrowserWindow.d.ts +55 -0
- package/cjs/window/CrossOriginBrowserWindow.d.ts.map +1 -0
- package/cjs/window/DetachedWindowAPI.cjs +126 -0
- package/cjs/window/DetachedWindowAPI.cjs.map +1 -0
- package/cjs/window/DetachedWindowAPI.d.ts +90 -0
- package/cjs/window/DetachedWindowAPI.d.ts.map +1 -0
- package/cjs/window/GlobalWindow.cjs +25 -1
- package/cjs/window/GlobalWindow.cjs.map +1 -1
- package/cjs/window/GlobalWindow.d.ts +2 -1
- package/cjs/window/GlobalWindow.d.ts.map +1 -1
- package/cjs/window/IBrowserWindow.cjs +27 -0
- package/cjs/window/IBrowserWindow.cjs.map +1 -0
- package/cjs/window/IBrowserWindow.d.ts +554 -0
- package/cjs/window/IBrowserWindow.d.ts.map +1 -0
- package/cjs/window/ICrossOriginBrowserWindow.cjs +3 -0
- package/cjs/window/ICrossOriginBrowserWindow.cjs.map +1 -0
- package/cjs/window/ICrossOriginBrowserWindow.d.ts +36 -0
- package/cjs/window/ICrossOriginBrowserWindow.d.ts.map +1 -0
- package/cjs/window/IWindow.d.ts +5 -527
- package/cjs/window/IWindow.d.ts.map +1 -1
- package/cjs/window/VMGlobalPropertyScript.cjs +1 -1
- package/cjs/window/Window.cjs +16 -831
- package/cjs/window/Window.cjs.map +1 -1
- package/cjs/window/Window.d.ts +18 -639
- package/cjs/window/Window.d.ts.map +1 -1
- package/cjs/window/WindowBrowserSettingsReader.cjs +79 -0
- package/cjs/window/WindowBrowserSettingsReader.cjs.map +1 -0
- package/cjs/window/WindowBrowserSettingsReader.d.ts +29 -0
- package/cjs/window/WindowBrowserSettingsReader.d.ts.map +1 -0
- package/cjs/window/WindowErrorUtility.cjs +25 -2
- package/cjs/window/WindowErrorUtility.cjs.map +1 -1
- package/cjs/window/WindowErrorUtility.d.ts +4 -4
- package/cjs/window/WindowErrorUtility.d.ts.map +1 -1
- package/cjs/window/WindowPageOpenUtility.cjs +148 -0
- package/cjs/window/WindowPageOpenUtility.cjs.map +1 -0
- package/cjs/window/WindowPageOpenUtility.d.ts +30 -0
- package/cjs/window/WindowPageOpenUtility.d.ts.map +1 -0
- package/cjs/xml-http-request/XMLHttpRequest.cjs +265 -665
- package/cjs/xml-http-request/XMLHttpRequest.cjs.map +1 -1
- package/cjs/xml-http-request/XMLHttpRequest.d.ts +32 -108
- package/cjs/xml-http-request/XMLHttpRequest.d.ts.map +1 -1
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseDataParser.cjs +69 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseDataParser.cjs.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseDataParser.d.ts +26 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseDataParser.d.ts.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.cjs +29 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.cjs.map +1 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.d.ts +15 -0
- package/cjs/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.d.ts.map +1 -0
- package/cjs/xml-parser/XMLParser.cjs +3 -2
- package/cjs/xml-parser/XMLParser.cjs.map +1 -1
- package/cjs/xml-parser/XMLParser.d.ts.map +1 -1
- package/cjs/xml-serializer/XMLSerializer.cjs +36 -33
- package/cjs/xml-serializer/XMLSerializer.cjs.map +1 -1
- package/cjs/xml-serializer/XMLSerializer.d.ts +1 -11
- package/cjs/xml-serializer/XMLSerializer.d.ts.map +1 -1
- package/lib/PropertySymbol.d.ts +82 -0
- package/lib/PropertySymbol.d.ts.map +1 -0
- package/lib/PropertySymbol.js +82 -0
- package/lib/PropertySymbol.js.map +1 -0
- package/lib/async-task-manager/AsyncTaskManager.d.ts +15 -5
- package/lib/async-task-manager/AsyncTaskManager.d.ts.map +1 -1
- package/lib/async-task-manager/AsyncTaskManager.js +48 -33
- package/lib/async-task-manager/AsyncTaskManager.js.map +1 -1
- package/lib/browser/Browser.d.ts +62 -0
- package/lib/browser/Browser.d.ts.map +1 -0
- package/lib/browser/Browser.js +91 -0
- package/lib/browser/Browser.js.map +1 -0
- package/lib/browser/BrowserContext.d.ts +45 -0
- package/lib/browser/BrowserContext.d.ts.map +1 -0
- package/lib/browser/BrowserContext.js +80 -0
- package/lib/browser/BrowserContext.js.map +1 -0
- package/lib/browser/BrowserFrame.d.ts +98 -0
- package/lib/browser/BrowserFrame.d.ts.map +1 -0
- package/lib/browser/BrowserFrame.js +140 -0
- package/lib/browser/BrowserFrame.js.map +1 -0
- package/lib/browser/BrowserPage.d.ts +97 -0
- package/lib/browser/BrowserPage.d.ts.map +1 -0
- package/lib/browser/BrowserPage.js +117 -0
- package/lib/browser/BrowserPage.js.map +1 -0
- package/lib/browser/BrowserSettingsFactory.d.ts +16 -0
- package/lib/browser/BrowserSettingsFactory.d.ts.map +1 -0
- package/lib/browser/BrowserSettingsFactory.js +32 -0
- package/lib/browser/BrowserSettingsFactory.js.map +1 -0
- package/lib/browser/DefaultBrowserSettings.d.ts +4 -0
- package/lib/browser/DefaultBrowserSettings.d.ts.map +1 -0
- package/lib/browser/DefaultBrowserSettings.js +29 -0
- package/lib/browser/DefaultBrowserSettings.js.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowser.d.ts +72 -0
- package/lib/browser/detached-browser/DetachedBrowser.d.ts.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowser.js +86 -0
- package/lib/browser/detached-browser/DetachedBrowser.js.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowserContext.d.ts +45 -0
- package/lib/browser/detached-browser/DetachedBrowserContext.d.ts.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowserContext.js +81 -0
- package/lib/browser/detached-browser/DetachedBrowserContext.js.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowserFrame.d.ts +99 -0
- package/lib/browser/detached-browser/DetachedBrowserFrame.d.ts.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowserFrame.js +154 -0
- package/lib/browser/detached-browser/DetachedBrowserFrame.js.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowserPage.d.ts +97 -0
- package/lib/browser/detached-browser/DetachedBrowserPage.d.ts.map +1 -0
- package/lib/browser/detached-browser/DetachedBrowserPage.js +129 -0
- package/lib/browser/detached-browser/DetachedBrowserPage.js.map +1 -0
- package/lib/browser/enums/BrowserErrorCaptureEnum.d.ts +10 -0
- package/lib/browser/enums/BrowserErrorCaptureEnum.d.ts.map +1 -0
- package/lib/browser/enums/BrowserErrorCaptureEnum.js +11 -0
- package/lib/browser/enums/BrowserErrorCaptureEnum.js.map +1 -0
- package/lib/browser/enums/BrowserNavigationCrossOriginPolicyEnum.d.ts +10 -0
- package/lib/browser/enums/BrowserNavigationCrossOriginPolicyEnum.d.ts.map +1 -0
- package/lib/browser/enums/BrowserNavigationCrossOriginPolicyEnum.js +11 -0
- package/lib/browser/enums/BrowserNavigationCrossOriginPolicyEnum.js.map +1 -0
- package/lib/browser/types/IBrowser.d.ts +44 -0
- package/lib/browser/types/IBrowser.d.ts.map +1 -0
- package/lib/browser/types/IBrowser.js +2 -0
- package/lib/browser/types/IBrowser.js.map +1 -0
- package/lib/browser/types/IBrowserContext.d.ts +38 -0
- package/lib/browser/types/IBrowserContext.d.ts.map +1 -0
- package/lib/browser/types/IBrowserContext.js +2 -0
- package/lib/browser/types/IBrowserContext.js.map +1 -0
- package/lib/browser/types/IBrowserFrame.d.ts +62 -0
- package/lib/browser/types/IBrowserFrame.d.ts.map +1 -0
- package/lib/browser/types/IBrowserFrame.js +2 -0
- package/lib/browser/types/IBrowserFrame.js.map +1 -0
- package/lib/browser/types/IBrowserPage.d.ts +63 -0
- package/lib/browser/types/IBrowserPage.d.ts.map +1 -0
- package/lib/browser/types/IBrowserPage.js +2 -0
- package/lib/browser/types/IBrowserPage.js.map +1 -0
- package/lib/browser/types/IBrowserPageViewport.d.ts +6 -0
- package/lib/browser/types/IBrowserPageViewport.d.ts.map +1 -0
- package/lib/browser/types/IBrowserPageViewport.js +2 -0
- package/lib/browser/types/IBrowserPageViewport.js.map +1 -0
- package/lib/browser/types/IBrowserSettings.d.ts +81 -0
- package/lib/browser/types/IBrowserSettings.d.ts.map +1 -0
- package/lib/browser/types/IBrowserSettings.js +2 -0
- package/lib/browser/types/IBrowserSettings.js.map +1 -0
- package/lib/browser/types/IGoToOptions.d.ts +16 -0
- package/lib/browser/types/IGoToOptions.d.ts.map +1 -0
- package/lib/browser/types/IGoToOptions.js +2 -0
- package/lib/browser/types/IGoToOptions.js.map +1 -0
- package/lib/browser/types/IOptionalBrowserSettings.d.ts +60 -0
- package/lib/browser/types/IOptionalBrowserSettings.d.ts.map +1 -0
- package/lib/browser/types/IOptionalBrowserSettings.js +2 -0
- package/lib/browser/types/IOptionalBrowserSettings.js.map +1 -0
- package/lib/browser/types/IReloadOptions.d.ts +14 -0
- package/lib/browser/types/IReloadOptions.d.ts.map +1 -0
- package/lib/browser/types/IReloadOptions.js +2 -0
- package/lib/browser/types/IReloadOptions.js.map +1 -0
- package/lib/browser/utilities/BrowserFrameExceptionObserver.d.ts +21 -0
- package/lib/browser/utilities/BrowserFrameExceptionObserver.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserFrameExceptionObserver.js +74 -0
- package/lib/browser/utilities/BrowserFrameExceptionObserver.js.map +1 -0
- package/lib/browser/utilities/BrowserFrameFactory.d.ts +20 -0
- package/lib/browser/utilities/BrowserFrameFactory.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserFrameFactory.js +61 -0
- package/lib/browser/utilities/BrowserFrameFactory.js.map +1 -0
- package/lib/browser/utilities/BrowserFrameNavigator.d.ts +25 -0
- package/lib/browser/utilities/BrowserFrameNavigator.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserFrameNavigator.js +125 -0
- package/lib/browser/utilities/BrowserFrameNavigator.js.map +1 -0
- package/lib/browser/utilities/BrowserFrameScriptEvaluator.d.ts +17 -0
- package/lib/browser/utilities/BrowserFrameScriptEvaluator.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserFrameScriptEvaluator.js +21 -0
- package/lib/browser/utilities/BrowserFrameScriptEvaluator.js.map +1 -0
- package/lib/browser/utilities/BrowserFrameURL.d.ts +17 -0
- package/lib/browser/utilities/BrowserFrameURL.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserFrameURL.js +33 -0
- package/lib/browser/utilities/BrowserFrameURL.js.map +1 -0
- package/lib/browser/utilities/BrowserFrameValidator.d.ts +24 -0
- package/lib/browser/utilities/BrowserFrameValidator.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserFrameValidator.js +65 -0
- package/lib/browser/utilities/BrowserFrameValidator.js.map +1 -0
- package/lib/browser/utilities/BrowserPageUtility.d.ts +36 -0
- package/lib/browser/utilities/BrowserPageUtility.d.ts.map +1 -0
- package/lib/browser/utilities/BrowserPageUtility.js +79 -0
- package/lib/browser/utilities/BrowserPageUtility.js.map +1 -0
- package/lib/clipboard/Clipboard.d.ts +2 -2
- package/lib/clipboard/Clipboard.d.ts.map +1 -1
- package/lib/clipboard/Clipboard.js.map +1 -1
- package/lib/config/ElementTag.d.ts +1 -152
- package/lib/config/ElementTag.d.ts.map +1 -1
- package/lib/config/ElementTag.js +128 -152
- package/lib/config/ElementTag.js.map +1 -1
- package/lib/console/VirtualConsole.d.ts +1 -5
- package/lib/console/VirtualConsole.d.ts.map +1 -1
- package/lib/console/VirtualConsole.js +72 -55
- package/lib/console/VirtualConsole.js.map +1 -1
- package/lib/console/VirtualConsolePrinter.d.ts +1 -2
- package/lib/console/VirtualConsolePrinter.d.ts.map +1 -1
- package/lib/console/VirtualConsolePrinter.js +28 -14
- package/lib/console/VirtualConsolePrinter.js.map +1 -1
- package/lib/console/types/IVirtualConsolePrinter.d.ts +1 -1
- package/lib/console/types/IVirtualConsolePrinter.d.ts.map +1 -1
- package/lib/cookie/CookieContainer.d.ts +27 -0
- package/lib/cookie/CookieContainer.d.ts.map +1 -0
- package/lib/cookie/CookieContainer.js +66 -0
- package/lib/cookie/CookieContainer.js.map +1 -0
- package/lib/cookie/enums/CookieSameSiteEnum.d.ts.map +1 -0
- package/lib/cookie/enums/CookieSameSiteEnum.js.map +1 -0
- package/lib/cookie/types/ICookie.d.ts +14 -0
- package/lib/cookie/types/ICookie.d.ts.map +1 -0
- package/lib/cookie/types/ICookie.js +2 -0
- package/lib/cookie/types/ICookie.js.map +1 -0
- package/lib/cookie/types/ICookieContainer.d.ts +25 -0
- package/lib/cookie/types/ICookieContainer.d.ts.map +1 -0
- package/lib/cookie/types/ICookieContainer.js +2 -0
- package/lib/cookie/types/ICookieContainer.js.map +1 -0
- package/lib/cookie/urilities/CookieExpireUtility.d.ts +14 -0
- package/lib/cookie/urilities/CookieExpireUtility.d.ts.map +1 -0
- package/lib/cookie/urilities/CookieExpireUtility.js +15 -0
- package/lib/cookie/urilities/CookieExpireUtility.js.map +1 -0
- package/lib/cookie/urilities/CookieStringUtility.d.ts +23 -0
- package/lib/cookie/urilities/CookieStringUtility.d.ts.map +1 -0
- package/lib/cookie/urilities/CookieStringUtility.js +101 -0
- package/lib/cookie/urilities/CookieStringUtility.js.map +1 -0
- package/lib/cookie/urilities/CookieURLUtility.d.ts +16 -0
- package/lib/cookie/urilities/CookieURLUtility.d.ts.map +1 -0
- package/lib/cookie/urilities/CookieURLUtility.js +22 -0
- package/lib/cookie/urilities/CookieURLUtility.js.map +1 -0
- package/lib/css/CSSParser.d.ts.map +1 -1
- package/lib/css/CSSParser.js +2 -1
- package/lib/css/CSSParser.js.map +1 -1
- package/lib/css/CSSStyleSheet.d.ts +1 -1
- package/lib/css/CSSStyleSheet.d.ts.map +1 -1
- package/lib/css/CSSStyleSheet.js +18 -4
- package/lib/css/CSSStyleSheet.js.map +1 -1
- package/lib/css/declaration/AbstractCSSStyleDeclaration.d.ts +1 -6
- package/lib/css/declaration/AbstractCSSStyleDeclaration.d.ts.map +1 -1
- package/lib/css/declaration/AbstractCSSStyleDeclaration.js +70 -53
- package/lib/css/declaration/AbstractCSSStyleDeclaration.js.map +1 -1
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.d.ts.map +1 -1
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.js +9 -7
- package/lib/css/declaration/element-style/CSSStyleDeclarationElementStyle.js.map +1 -1
- package/lib/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts +2 -2
- package/lib/css/declaration/measurement-converter/CSSMeasurementConverter.d.ts.map +1 -1
- package/lib/css/rules/CSSFontFaceRule.d.ts +3 -2
- package/lib/css/rules/CSSFontFaceRule.d.ts.map +1 -1
- package/lib/css/rules/CSSFontFaceRule.js +23 -8
- package/lib/css/rules/CSSFontFaceRule.js.map +1 -1
- package/lib/css/rules/CSSKeyframeRule.d.ts +3 -2
- package/lib/css/rules/CSSKeyframeRule.d.ts.map +1 -1
- package/lib/css/rules/CSSKeyframeRule.js +23 -8
- package/lib/css/rules/CSSKeyframeRule.js.map +1 -1
- package/lib/css/rules/CSSStyleRule.d.ts +3 -2
- package/lib/css/rules/CSSStyleRule.d.ts.map +1 -1
- package/lib/css/rules/CSSStyleRule.js +23 -8
- package/lib/css/rules/CSSStyleRule.js.map +1 -1
- package/lib/custom-element/CustomElementRegistry.d.ts +3 -2
- package/lib/custom-element/CustomElementRegistry.d.ts.map +1 -1
- package/lib/custom-element/CustomElementRegistry.js +18 -11
- package/lib/custom-element/CustomElementRegistry.js.map +1 -1
- package/lib/dom-implementation/DOMImplementation.d.ts +3 -3
- package/lib/dom-implementation/DOMImplementation.d.ts.map +1 -1
- package/lib/dom-implementation/DOMImplementation.js +26 -14
- package/lib/dom-implementation/DOMImplementation.js.map +1 -1
- package/lib/dom-parser/DOMParser.d.ts +5 -9
- package/lib/dom-parser/DOMParser.d.ts.map +1 -1
- package/lib/dom-parser/DOMParser.js +40 -39
- package/lib/dom-parser/DOMParser.js.map +1 -1
- package/lib/dom-token-list/DOMTokenList.d.ts +3 -3
- package/lib/dom-token-list/DOMTokenList.d.ts.map +1 -1
- package/lib/dom-token-list/DOMTokenList.js +33 -18
- package/lib/dom-token-list/DOMTokenList.js.map +1 -1
- package/lib/event/Event.d.ts +6 -5
- package/lib/event/Event.d.ts.map +1 -1
- package/lib/event/Event.js +19 -15
- package/lib/event/Event.js.map +1 -1
- package/lib/event/EventTarget.d.ts +4 -9
- package/lib/event/EventTarget.d.ts.map +1 -1
- package/lib/event/EventTarget.js +67 -53
- package/lib/event/EventTarget.js.map +1 -1
- package/lib/event/IUIEventInit.d.ts +2 -2
- package/lib/event/IUIEventInit.d.ts.map +1 -1
- package/lib/event/UIEvent.d.ts +2 -2
- package/lib/event/UIEvent.d.ts.map +1 -1
- package/lib/event/events/IMessageEventInit.d.ts +2 -2
- package/lib/event/events/IMessageEventInit.d.ts.map +1 -1
- package/lib/event/events/MessageEvent.d.ts +2 -2
- package/lib/event/events/MessageEvent.d.ts.map +1 -1
- package/lib/fetch/AbortController.d.ts.map +1 -1
- package/lib/fetch/AbortController.js +2 -1
- package/lib/fetch/AbortController.js.map +1 -1
- package/lib/fetch/AbortSignal.d.ts +2 -1
- package/lib/fetch/AbortSignal.d.ts.map +1 -1
- package/lib/fetch/AbortSignal.js +2 -1
- package/lib/fetch/AbortSignal.js.map +1 -1
- package/lib/fetch/Fetch.d.ts +40 -35
- package/lib/fetch/Fetch.d.ts.map +1 -1
- package/lib/fetch/Fetch.js +308 -189
- package/lib/fetch/Fetch.js.map +1 -1
- package/lib/fetch/Headers.d.ts +2 -1
- package/lib/fetch/Headers.d.ts.map +1 -1
- package/lib/fetch/Headers.js +18 -16
- package/lib/fetch/Headers.js.map +1 -1
- package/lib/fetch/Request.d.ts +21 -9
- package/lib/fetch/Request.d.ts.map +1 -1
- package/lib/fetch/Request.js +66 -48
- package/lib/fetch/Request.js.map +1 -1
- package/lib/fetch/ResourceFetch.d.ts +17 -5
- package/lib/fetch/ResourceFetch.d.ts.map +1 -1
- package/lib/fetch/ResourceFetch.js +49 -15
- package/lib/fetch/ResourceFetch.js.map +1 -1
- package/lib/fetch/Response.d.ts +20 -8
- package/lib/fetch/Response.d.ts.map +1 -1
- package/lib/fetch/Response.js +98 -63
- package/lib/fetch/Response.js.map +1 -1
- package/lib/fetch/SyncFetch.d.ts +80 -0
- package/lib/fetch/SyncFetch.d.ts.map +1 -0
- package/lib/fetch/SyncFetch.js +431 -0
- package/lib/fetch/SyncFetch.js.map +1 -0
- package/lib/fetch/cache/preflight/ICachablePreflightRequest.d.ts +7 -0
- package/lib/fetch/cache/preflight/ICachablePreflightRequest.d.ts.map +1 -0
- package/lib/fetch/cache/preflight/ICachablePreflightRequest.js +2 -0
- package/lib/fetch/cache/preflight/ICachablePreflightRequest.js.map +1 -0
- package/lib/fetch/cache/preflight/ICachablePreflightResponse.d.ts +7 -0
- package/lib/fetch/cache/preflight/ICachablePreflightResponse.d.ts.map +1 -0
- package/lib/fetch/cache/preflight/ICachablePreflightResponse.js +2 -0
- package/lib/fetch/cache/preflight/ICachablePreflightResponse.js.map +1 -0
- package/lib/fetch/cache/preflight/ICachedPreflightResponse.d.ts +6 -0
- package/lib/fetch/cache/preflight/ICachedPreflightResponse.d.ts.map +1 -0
- package/lib/fetch/cache/preflight/ICachedPreflightResponse.js +2 -0
- package/lib/fetch/cache/preflight/ICachedPreflightResponse.js.map +1 -0
- package/lib/fetch/cache/preflight/IPreflightResponseCache.d.ts +28 -0
- package/lib/fetch/cache/preflight/IPreflightResponseCache.d.ts.map +1 -0
- package/lib/fetch/cache/preflight/IPreflightResponseCache.js +2 -0
- package/lib/fetch/cache/preflight/IPreflightResponseCache.js.map +1 -0
- package/lib/fetch/cache/preflight/PreflightResponseCache.d.ts +32 -0
- package/lib/fetch/cache/preflight/PreflightResponseCache.d.ts.map +1 -0
- package/lib/fetch/cache/preflight/PreflightResponseCache.js +88 -0
- package/lib/fetch/cache/preflight/PreflightResponseCache.js.map +1 -0
- package/lib/fetch/cache/response/CachedResponseStateEnum.d.ts +6 -0
- package/lib/fetch/cache/response/CachedResponseStateEnum.d.ts.map +1 -0
- package/lib/fetch/cache/response/CachedResponseStateEnum.js +7 -0
- package/lib/fetch/cache/response/CachedResponseStateEnum.js.map +1 -0
- package/lib/fetch/cache/response/ICachableRequest.d.ts +7 -0
- package/lib/fetch/cache/response/ICachableRequest.d.ts.map +1 -0
- package/lib/fetch/cache/response/ICachableRequest.js +2 -0
- package/lib/fetch/cache/response/ICachableRequest.js.map +1 -0
- package/lib/fetch/cache/response/ICachableResponse.d.ts +11 -0
- package/lib/fetch/cache/response/ICachableResponse.d.ts.map +1 -0
- package/lib/fetch/cache/response/ICachableResponse.js +2 -0
- package/lib/fetch/cache/response/ICachableResponse.js.map +1 -0
- package/lib/fetch/cache/response/ICachedResponse.d.ts +38 -0
- package/lib/fetch/cache/response/ICachedResponse.d.ts.map +1 -0
- package/lib/fetch/cache/response/ICachedResponse.js +2 -0
- package/lib/fetch/cache/response/ICachedResponse.js.map +1 -0
- package/lib/fetch/cache/response/IResponseCache.d.ts +35 -0
- package/lib/fetch/cache/response/IResponseCache.d.ts.map +1 -0
- package/lib/fetch/cache/response/IResponseCache.js +2 -0
- package/lib/fetch/cache/response/IResponseCache.js.map +1 -0
- package/lib/fetch/cache/response/ResponseCache.d.ts +40 -0
- package/lib/fetch/cache/response/ResponseCache.d.ts.map +1 -0
- package/lib/fetch/cache/response/ResponseCache.js +215 -0
- package/lib/fetch/cache/response/ResponseCache.js.map +1 -0
- package/lib/fetch/certificate/FetchHTTPSCertificate.d.ts +6 -0
- package/lib/fetch/certificate/FetchHTTPSCertificate.d.ts.map +1 -0
- package/lib/fetch/certificate/FetchHTTPSCertificate.js +53 -0
- package/lib/fetch/certificate/FetchHTTPSCertificate.js.map +1 -0
- package/lib/fetch/multipart/MultipartFormDataParser.d.ts +4 -1
- package/lib/fetch/multipart/MultipartFormDataParser.d.ts.map +1 -1
- package/lib/fetch/multipart/MultipartFormDataParser.js +32 -4
- package/lib/fetch/multipart/MultipartFormDataParser.js.map +1 -1
- package/lib/fetch/types/ISyncResponse.d.ts +17 -0
- package/lib/fetch/types/ISyncResponse.d.ts.map +1 -0
- package/lib/fetch/types/ISyncResponse.js +2 -0
- package/lib/fetch/types/ISyncResponse.js.map +1 -0
- package/lib/fetch/utilities/FetchBodyUtility.d.ts +12 -5
- package/lib/fetch/utilities/FetchBodyUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchBodyUtility.js +16 -10
- package/lib/fetch/utilities/FetchBodyUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchCORSUtility.d.ts +3 -1
- package/lib/fetch/utilities/FetchCORSUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchCORSUtility.js +6 -0
- package/lib/fetch/utilities/FetchCORSUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.d.ts +26 -0
- package/lib/fetch/utilities/FetchRequestHeaderUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.js +65 -2
- package/lib/fetch/utilities/FetchRequestHeaderUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.d.ts +19 -12
- package/lib/fetch/utilities/FetchRequestReferrerUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.js +60 -44
- package/lib/fetch/utilities/FetchRequestReferrerUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestValidationUtility.d.ts +17 -2
- package/lib/fetch/utilities/FetchRequestValidationUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestValidationUtility.js +30 -0
- package/lib/fetch/utilities/FetchRequestValidationUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchResponseHeaderUtility.d.ts +24 -0
- package/lib/fetch/utilities/FetchResponseHeaderUtility.d.ts.map +1 -0
- package/lib/fetch/utilities/FetchResponseHeaderUtility.js +42 -0
- package/lib/fetch/utilities/FetchResponseHeaderUtility.js.map +1 -0
- package/lib/fetch/utilities/FetchResponseRedirectUtility.d.ts +20 -0
- package/lib/fetch/utilities/FetchResponseRedirectUtility.d.ts.map +1 -0
- package/lib/fetch/utilities/FetchResponseRedirectUtility.js +26 -0
- package/lib/fetch/utilities/FetchResponseRedirectUtility.js.map +1 -0
- package/lib/fetch/utilities/SyncFetchScriptBuilder.d.ts +26 -0
- package/lib/fetch/utilities/SyncFetchScriptBuilder.d.ts.map +1 -0
- package/lib/fetch/utilities/SyncFetchScriptBuilder.js +57 -0
- package/lib/fetch/utilities/SyncFetchScriptBuilder.js.map +1 -0
- package/lib/file/Blob.d.ts +2 -1
- package/lib/file/Blob.d.ts.map +1 -1
- package/lib/file/Blob.js +13 -9
- package/lib/file/Blob.js.map +1 -1
- package/lib/file/FileReader.d.ts +5 -15
- package/lib/file/FileReader.d.ts.map +1 -1
- package/lib/file/FileReader.js +77 -72
- package/lib/file/FileReader.js.map +1 -1
- package/lib/form-data/FormData.d.ts +1 -9
- package/lib/form-data/FormData.d.ts.map +1 -1
- package/lib/form-data/FormData.js +48 -40
- package/lib/form-data/FormData.js.map +1 -1
- package/lib/history/History.d.ts +1 -1
- package/lib/history/History.d.ts.map +1 -1
- package/lib/history/History.js +19 -5
- package/lib/history/History.js.map +1 -1
- package/lib/index.d.ts +143 -130
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +85 -75
- package/lib/index.js.map +1 -1
- package/lib/location/Location.d.ts +9 -9
- package/lib/location/Location.d.ts.map +1 -1
- package/lib/location/Location.js +29 -25
- package/lib/location/Location.js.map +1 -1
- package/lib/match-media/MediaQueryItem.d.ts +2 -2
- package/lib/match-media/MediaQueryItem.d.ts.map +1 -1
- package/lib/match-media/MediaQueryItem.js +6 -3
- package/lib/match-media/MediaQueryItem.js.map +1 -1
- package/lib/match-media/MediaQueryList.d.ts +3 -6
- package/lib/match-media/MediaQueryList.d.ts.map +1 -1
- package/lib/match-media/MediaQueryList.js +41 -26
- package/lib/match-media/MediaQueryList.js.map +1 -1
- package/lib/match-media/MediaQueryParser.d.ts +2 -2
- package/lib/match-media/MediaQueryParser.d.ts.map +1 -1
- package/lib/mutation-observer/MutationListener.d.ts +36 -3
- package/lib/mutation-observer/MutationListener.d.ts.map +1 -1
- package/lib/mutation-observer/MutationListener.js +79 -5
- package/lib/mutation-observer/MutationListener.js.map +1 -1
- package/lib/mutation-observer/MutationObserver.d.ts +5 -5
- package/lib/mutation-observer/MutationObserver.d.ts.map +1 -1
- package/lib/mutation-observer/MutationObserver.js +73 -17
- package/lib/mutation-observer/MutationObserver.js.map +1 -1
- package/lib/mutation-observer/MutationRecord.d.ts +6 -0
- package/lib/mutation-observer/MutationRecord.d.ts.map +1 -1
- package/lib/mutation-observer/MutationRecord.js +7 -1
- package/lib/mutation-observer/MutationRecord.js.map +1 -1
- package/lib/named-node-map/NamedNodeMap.d.ts +7 -6
- package/lib/named-node-map/NamedNodeMap.d.ts.map +1 -1
- package/lib/named-node-map/NamedNodeMap.js +20 -18
- package/lib/named-node-map/NamedNodeMap.js.map +1 -1
- package/lib/navigator/Navigator.d.ts +2 -2
- package/lib/navigator/Navigator.d.ts.map +1 -1
- package/lib/navigator/Navigator.js +3 -2
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/nodes/character-data/CharacterData.d.ts +2 -1
- package/lib/nodes/character-data/CharacterData.d.ts.map +1 -1
- package/lib/nodes/character-data/CharacterData.js +22 -18
- package/lib/nodes/character-data/CharacterData.js.map +1 -1
- package/lib/nodes/child-node/ChildNodeUtility.d.ts.map +1 -1
- package/lib/nodes/child-node/ChildNodeUtility.js +4 -3
- package/lib/nodes/child-node/ChildNodeUtility.js.map +1 -1
- package/lib/nodes/document/Document.d.ts +24 -24
- package/lib/nodes/document/Document.d.ts.map +1 -1
- package/lib/nodes/document/Document.js +120 -105
- package/lib/nodes/document/Document.js.map +1 -1
- package/lib/nodes/document/DocumentReadyStateManager.d.ts +3 -3
- package/lib/nodes/document/DocumentReadyStateManager.d.ts.map +1 -1
- package/lib/nodes/document/DocumentReadyStateManager.js +1 -1
- package/lib/nodes/document/DocumentReadyStateManager.js.map +1 -1
- package/lib/nodes/document/IDocument.d.ts +4 -2
- package/lib/nodes/document/IDocument.d.ts.map +1 -1
- package/lib/nodes/document/IDocument.js +1 -1
- package/lib/nodes/document/IDocument.js.map +1 -1
- package/lib/nodes/document/NodeCreationOwnerDocument.d.ts +15 -0
- package/lib/nodes/document/NodeCreationOwnerDocument.d.ts.map +1 -0
- package/lib/nodes/document/NodeCreationOwnerDocument.js +13 -0
- package/lib/nodes/document/NodeCreationOwnerDocument.js.map +1 -0
- package/lib/nodes/document-fragment/DocumentFragment.d.ts +3 -2
- package/lib/nodes/document-fragment/DocumentFragment.d.ts.map +1 -1
- package/lib/nodes/document-fragment/DocumentFragment.js +15 -11
- package/lib/nodes/document-fragment/DocumentFragment.js.map +1 -1
- package/lib/nodes/element/Dataset.d.ts.map +1 -1
- package/lib/nodes/element/Dataset.js +2 -1
- package/lib/nodes/element/Dataset.js.map +1 -1
- package/lib/nodes/element/Element.d.ts +11 -18
- package/lib/nodes/element/Element.d.ts.map +1 -1
- package/lib/nodes/element/Element.js +56 -60
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/element/ElementNamedNodeMap.d.ts +6 -5
- package/lib/nodes/element/ElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/element/ElementNamedNodeMap.js +51 -50
- package/lib/nodes/element/ElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/element/ElementUtility.d.ts.map +1 -1
- package/lib/nodes/element/ElementUtility.js +12 -11
- package/lib/nodes/element/ElementUtility.js.map +1 -1
- package/lib/nodes/element/HTMLCollection.d.ts +5 -4
- package/lib/nodes/element/HTMLCollection.d.ts.map +1 -1
- package/lib/nodes/element/HTMLCollection.js +21 -19
- package/lib/nodes/element/HTMLCollection.js.map +1 -1
- package/lib/nodes/element/IElement.d.ts +2 -2
- package/lib/nodes/element/IElement.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.d.ts +8 -2
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.js +76 -54
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.js.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.js +9 -8
- package/lib/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElement.d.ts +3 -10
- package/lib/nodes/html-button-element/HTMLButtonElement.d.ts.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElement.js +31 -30
- package/lib/nodes/html-button-element/HTMLButtonElement.js.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-button-element/HTMLButtonElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElementNamedNodeMap.js +9 -7
- package/lib/nodes/html-button-element/HTMLButtonElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-document/HTMLDocument.d.ts +13 -0
- package/lib/nodes/html-document/HTMLDocument.d.ts.map +1 -1
- package/lib/nodes/html-document/HTMLDocument.js +19 -0
- package/lib/nodes/html-document/HTMLDocument.js.map +1 -1
- package/lib/nodes/html-element/HTMLElement.d.ts +3 -2
- package/lib/nodes/html-element/HTMLElement.d.ts.map +1 -1
- package/lib/nodes/html-element/HTMLElement.js +29 -14
- package/lib/nodes/html-element/HTMLElement.js.map +1 -1
- package/lib/nodes/html-element/HTMLElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-element/HTMLElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-element/HTMLElementNamedNodeMap.js +9 -6
- package/lib/nodes/html-element/HTMLElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-element/HTMLElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-element/HTMLElementUtility.js +11 -10
- package/lib/nodes/html-element/HTMLElementUtility.js.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.d.ts +5 -4
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.js +28 -21
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.js.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts +4 -3
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.js +10 -8
- package/lib/nodes/html-form-element/HTMLFormElement.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts +13 -5
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js +42 -11
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.d.ts +10 -2
- package/lib/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.js +27 -3
- package/lib/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.d.ts +35 -0
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.d.ts.map +1 -0
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.js +94 -0
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.js.map +1 -0
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.d.ts +3 -3
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts +7 -20
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.js +105 -102
- package/lib/nodes/html-input-element/HTMLInputElement.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementDateUtility.d.ts +1 -0
- package/lib/nodes/html-input-element/HTMLInputElementDateUtility.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementDateUtility.js +13 -12
- package/lib/nodes/html-input-element/HTMLInputElementDateUtility.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-input-element/HTMLInputElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElementNamedNodeMap.js +9 -7
- package/lib/nodes/html-input-element/HTMLInputElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-label-element/HTMLLabelElement.d.ts.map +1 -1
- package/lib/nodes/html-label-element/HTMLLabelElement.js +2 -1
- package/lib/nodes/html-label-element/HTMLLabelElement.js.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElement.d.ts +12 -3
- package/lib/nodes/html-link-element/HTMLLinkElement.d.ts.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElement.js +38 -13
- package/lib/nodes/html-link-element/HTMLLinkElement.js.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementNamedNodeMap.d.ts +13 -2
- package/lib/nodes/html-link-element/HTMLLinkElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementNamedNodeMap.js +38 -9
- package/lib/nodes/html-link-element/HTMLLinkElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.d.ts +27 -0
- package/lib/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.d.ts.map +1 -0
- package/lib/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.js +95 -0
- package/lib/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.js.map +1 -0
- package/lib/nodes/html-option-element/HTMLOptionElement.d.ts +4 -4
- package/lib/nodes/html-option-element/HTMLOptionElement.d.ts.map +1 -1
- package/lib/nodes/html-option-element/HTMLOptionElement.js +20 -16
- package/lib/nodes/html-option-element/HTMLOptionElement.js.map +1 -1
- package/lib/nodes/html-option-element/HTMLOptionElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-option-element/HTMLOptionElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-option-element/HTMLOptionElementNamedNodeMap.js +13 -10
- package/lib/nodes/html-option-element/HTMLOptionElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.d.ts +11 -2
- package/lib/nodes/html-script-element/HTMLScriptElement.d.ts.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.js +46 -15
- package/lib/nodes/html-script-element/HTMLScriptElement.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementNamedNodeMap.d.ts +11 -1
- package/lib/nodes/html-script-element/HTMLScriptElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementNamedNodeMap.js +31 -4
- package/lib/nodes/html-script-element/HTMLScriptElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementScriptLoader.d.ts +26 -0
- package/lib/nodes/html-script-element/HTMLScriptElementScriptLoader.d.ts.map +1 -0
- package/lib/nodes/html-script-element/HTMLScriptElementScriptLoader.js +113 -0
- package/lib/nodes/html-script-element/HTMLScriptElementScriptLoader.js.map +1 -0
- package/lib/nodes/html-select-element/HTMLOptionsCollection.d.ts +1 -1
- package/lib/nodes/html-select-element/HTMLOptionsCollection.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLOptionsCollection.js +23 -8
- package/lib/nodes/html-select-element/HTMLOptionsCollection.js.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts +5 -9
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.js +44 -39
- package/lib/nodes/html-select-element/HTMLSelectElement.js.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-select-element/HTMLSelectElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElementNamedNodeMap.js +9 -7
- package/lib/nodes/html-select-element/HTMLSelectElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-slot-element/HTMLSlotElement.d.ts.map +1 -1
- package/lib/nodes/html-slot-element/HTMLSlotElement.js +4 -3
- package/lib/nodes/html-slot-element/HTMLSlotElement.js.map +1 -1
- package/lib/nodes/html-style-element/HTMLStyleElement.d.ts +2 -1
- package/lib/nodes/html-style-element/HTMLStyleElement.d.ts.map +1 -1
- package/lib/nodes/html-style-element/HTMLStyleElement.js +10 -6
- package/lib/nodes/html-style-element/HTMLStyleElement.js.map +1 -1
- package/lib/nodes/html-template-element/HTMLTemplateElement.d.ts.map +1 -1
- package/lib/nodes/html-template-element/HTMLTemplateElement.js +3 -2
- package/lib/nodes/html-template-element/HTMLTemplateElement.js.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.d.ts +6 -8
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.d.ts.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js +65 -53
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.js +9 -7
- package/lib/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.d.ts +3 -2
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.d.ts.map +1 -1
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.js +50 -34
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.js.map +1 -1
- package/lib/nodes/node/Node.d.ts +12 -11
- package/lib/nodes/node/Node.d.ts.map +1 -1
- package/lib/nodes/node/Node.js +77 -61
- package/lib/nodes/node/Node.js.map +1 -1
- package/lib/nodes/node/NodeUtility.d.ts +1 -1
- package/lib/nodes/node/NodeUtility.d.ts.map +1 -1
- package/lib/nodes/node/NodeUtility.js +54 -47
- package/lib/nodes/node/NodeUtility.js.map +1 -1
- package/lib/nodes/parent-node/ParentNodeUtility.d.ts.map +1 -1
- package/lib/nodes/parent-node/ParentNodeUtility.js +8 -7
- package/lib/nodes/parent-node/ParentNodeUtility.js.map +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.js +4 -3
- package/lib/nodes/shadow-root/ShadowRoot.js.map +1 -1
- package/lib/nodes/svg-element/SVGElement.d.ts +3 -2
- package/lib/nodes/svg-element/SVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGElement.js +22 -7
- package/lib/nodes/svg-element/SVGElement.js.map +1 -1
- package/lib/nodes/svg-element/SVGElementNamedNodeMap.d.ts +3 -2
- package/lib/nodes/svg-element/SVGElementNamedNodeMap.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGElementNamedNodeMap.js +9 -6
- package/lib/nodes/svg-element/SVGElementNamedNodeMap.js.map +1 -1
- package/lib/nodes/text/Text.d.ts +2 -1
- package/lib/nodes/text/Text.d.ts.map +1 -1
- package/lib/nodes/text/Text.js +12 -11
- package/lib/nodes/text/Text.js.map +1 -1
- package/lib/query-selector/QuerySelector.d.ts.map +1 -1
- package/lib/query-selector/QuerySelector.js +9 -8
- package/lib/query-selector/QuerySelector.js.map +1 -1
- package/lib/query-selector/SelectorItem.d.ts.map +1 -1
- package/lib/query-selector/SelectorItem.js +5 -2
- package/lib/query-selector/SelectorItem.js.map +1 -1
- package/lib/range/Range.d.ts +9 -5
- package/lib/range/Range.d.ts.map +1 -1
- package/lib/range/Range.js +206 -186
- package/lib/range/Range.js.map +1 -1
- package/lib/range/RangeUtility.d.ts.map +1 -1
- package/lib/range/RangeUtility.js +2 -1
- package/lib/range/RangeUtility.js.map +1 -1
- package/lib/selection/Selection.d.ts +2 -11
- package/lib/selection/Selection.d.ts.map +1 -1
- package/lib/selection/Selection.js +121 -114
- package/lib/selection/Selection.js.map +1 -1
- package/lib/storage/Storage.d.ts +3 -1
- package/lib/storage/Storage.d.ts.map +1 -1
- package/lib/storage/Storage.js +24 -8
- package/lib/storage/Storage.js.map +1 -1
- package/lib/tree-walker/NodeIterator.d.ts +1 -1
- package/lib/tree-walker/NodeIterator.d.ts.map +1 -1
- package/lib/tree-walker/NodeIterator.js +19 -4
- package/lib/tree-walker/NodeIterator.js.map +1 -1
- package/lib/tree-walker/TreeWalker.d.ts.map +1 -1
- package/lib/tree-walker/TreeWalker.js +5 -4
- package/lib/tree-walker/TreeWalker.js.map +1 -1
- package/lib/url/URL.d.ts.map +1 -1
- package/lib/url/URL.js +2 -1
- package/lib/url/URL.js.map +1 -1
- package/lib/validity-state/ValidityState.d.ts.map +1 -1
- package/lib/validity-state/ValidityState.js +3 -1
- package/lib/validity-state/ValidityState.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/window/BrowserWindow.d.ts +684 -0
- package/lib/window/BrowserWindow.d.ts.map +1 -0
- package/lib/window/BrowserWindow.js +933 -0
- package/lib/window/BrowserWindow.js.map +1 -0
- package/lib/window/CrossOriginBrowserWindow.d.ts +55 -0
- package/lib/window/CrossOriginBrowserWindow.d.ts.map +1 -0
- package/lib/window/CrossOriginBrowserWindow.js +90 -0
- package/lib/window/CrossOriginBrowserWindow.js.map +1 -0
- package/lib/window/DetachedWindowAPI.d.ts +90 -0
- package/lib/window/DetachedWindowAPI.d.ts.map +1 -0
- package/lib/window/DetachedWindowAPI.js +124 -0
- package/lib/window/DetachedWindowAPI.js.map +1 -0
- package/lib/window/GlobalWindow.d.ts +2 -1
- package/lib/window/GlobalWindow.d.ts.map +1 -1
- package/lib/window/GlobalWindow.js +2 -1
- package/lib/window/GlobalWindow.js.map +1 -1
- package/lib/window/IBrowserWindow.d.ts +554 -0
- package/lib/window/IBrowserWindow.d.ts.map +1 -0
- package/lib/window/IBrowserWindow.js +2 -0
- package/lib/window/IBrowserWindow.js.map +1 -0
- package/lib/window/ICrossOriginBrowserWindow.d.ts +36 -0
- package/lib/window/ICrossOriginBrowserWindow.d.ts.map +1 -0
- package/lib/window/ICrossOriginBrowserWindow.js +2 -0
- package/lib/window/ICrossOriginBrowserWindow.js.map +1 -0
- package/lib/window/IWindow.d.ts +5 -527
- package/lib/window/IWindow.d.ts.map +1 -1
- package/lib/window/VMGlobalPropertyScript.js +1 -1
- package/lib/window/Window.d.ts +18 -639
- package/lib/window/Window.d.ts.map +1 -1
- package/lib/window/Window.js +16 -808
- package/lib/window/Window.js.map +1 -1
- package/lib/window/WindowBrowserSettingsReader.d.ts +29 -0
- package/lib/window/WindowBrowserSettingsReader.d.ts.map +1 -0
- package/lib/window/WindowBrowserSettingsReader.js +54 -0
- package/lib/window/WindowBrowserSettingsReader.js.map +1 -0
- package/lib/window/WindowErrorUtility.d.ts +4 -4
- package/lib/window/WindowErrorUtility.d.ts.map +1 -1
- package/lib/window/WindowErrorUtility.js +2 -2
- package/lib/window/WindowErrorUtility.js.map +1 -1
- package/lib/window/WindowPageOpenUtility.d.ts +30 -0
- package/lib/window/WindowPageOpenUtility.d.ts.map +1 -0
- package/lib/window/WindowPageOpenUtility.js +142 -0
- package/lib/window/WindowPageOpenUtility.js.map +1 -0
- package/lib/xml-http-request/XMLHttpRequest.d.ts +32 -108
- package/lib/xml-http-request/XMLHttpRequest.d.ts.map +1 -1
- package/lib/xml-http-request/XMLHttpRequest.js +242 -665
- package/lib/xml-http-request/XMLHttpRequest.js.map +1 -1
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseDataParser.d.ts +26 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseDataParser.d.ts.map +1 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseDataParser.js +63 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseDataParser.js.map +1 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.d.ts +15 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.d.ts.map +1 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.js +23 -0
- package/lib/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.js.map +1 -0
- package/lib/xml-parser/XMLParser.d.ts.map +1 -1
- package/lib/xml-parser/XMLParser.js +3 -2
- package/lib/xml-parser/XMLParser.js.map +1 -1
- package/lib/xml-serializer/XMLSerializer.d.ts +1 -11
- package/lib/xml-serializer/XMLSerializer.d.ts.map +1 -1
- package/lib/xml-serializer/XMLSerializer.js +38 -34
- package/lib/xml-serializer/XMLSerializer.js.map +1 -1
- package/package.json +2 -12
- package/src/PropertySymbol.ts +81 -0
- package/src/async-task-manager/AsyncTaskManager.ts +56 -39
- package/src/browser/Browser.ts +106 -0
- package/src/browser/BrowserContext.ts +92 -0
- package/src/browser/BrowserFrame.ts +164 -0
- package/src/browser/BrowserPage.ts +141 -0
- package/src/browser/BrowserSettingsFactory.ts +34 -0
- package/src/browser/DefaultBrowserSettings.ts +32 -0
- package/src/browser/detached-browser/DetachedBrowser.ts +113 -0
- package/src/browser/detached-browser/DetachedBrowserContext.ts +94 -0
- package/src/browser/detached-browser/DetachedBrowserFrame.ts +185 -0
- package/src/browser/detached-browser/DetachedBrowserPage.ts +153 -0
- package/src/browser/enums/BrowserErrorCaptureEnum.ts +10 -0
- package/src/browser/enums/BrowserNavigationCrossOriginPolicyEnum.ts +10 -0
- package/src/browser/types/IBrowser.ts +48 -0
- package/src/browser/types/IBrowserContext.ts +42 -0
- package/src/browser/types/IBrowserFrame.ts +65 -0
- package/src/browser/types/IBrowserPage.ts +69 -0
- package/src/browser/types/IBrowserPageViewport.ts +5 -0
- package/src/browser/types/IBrowserSettings.ts +100 -0
- package/src/browser/types/IGoToOptions.ts +17 -0
- package/src/browser/types/IOptionalBrowserSettings.ts +74 -0
- package/src/browser/types/IReloadOptions.ts +14 -0
- package/src/browser/utilities/BrowserFrameExceptionObserver.ts +99 -0
- package/src/browser/utilities/BrowserFrameFactory.ts +70 -0
- package/src/browser/utilities/BrowserFrameNavigator.ts +179 -0
- package/src/browser/utilities/BrowserFrameScriptEvaluator.ts +22 -0
- package/src/browser/utilities/BrowserFrameURL.ts +40 -0
- package/src/browser/utilities/BrowserFrameValidator.ts +83 -0
- package/src/browser/utilities/BrowserPageUtility.ts +94 -0
- package/src/clipboard/Clipboard.ts +3 -3
- package/src/config/ElementTag.ts +129 -154
- package/src/console/VirtualConsole.ts +55 -55
- package/src/console/VirtualConsolePrinter.ts +13 -13
- package/src/console/types/IVirtualConsolePrinter.ts +1 -1
- package/src/cookie/CookieContainer.ts +72 -0
- package/src/cookie/types/ICookie.ts +16 -0
- package/src/cookie/types/ICookieContainer.ts +26 -0
- package/src/cookie/urilities/CookieExpireUtility.ts +16 -0
- package/src/cookie/urilities/CookieStringUtility.ts +116 -0
- package/src/cookie/urilities/CookieURLUtility.ts +26 -0
- package/src/css/CSSParser.ts +2 -1
- package/src/css/CSSStyleSheet.ts +3 -3
- package/src/css/declaration/AbstractCSSStyleDeclaration.ts +60 -57
- package/src/css/declaration/element-style/CSSStyleDeclarationElementStyle.ts +13 -7
- package/src/css/declaration/measurement-converter/CSSMeasurementConverter.ts +2 -2
- package/src/css/rules/CSSFontFaceRule.ts +8 -7
- package/src/css/rules/CSSKeyframeRule.ts +8 -7
- package/src/css/rules/CSSStyleRule.ts +8 -7
- package/src/custom-element/CustomElementRegistry.ts +16 -10
- package/src/dom-implementation/DOMImplementation.ts +11 -12
- package/src/dom-parser/DOMParser.ts +18 -26
- package/src/dom-token-list/DOMTokenList.ts +21 -20
- package/src/event/Event.ts +19 -15
- package/src/event/EventTarget.ts +61 -41
- package/src/event/IUIEventInit.ts +2 -2
- package/src/event/UIEvent.ts +2 -2
- package/src/event/events/IMessageEventInit.ts +2 -2
- package/src/event/events/MessageEvent.ts +2 -2
- package/src/fetch/AbortController.ts +2 -1
- package/src/fetch/AbortSignal.ts +2 -1
- package/src/fetch/Fetch.ts +378 -243
- package/src/fetch/Headers.ts +16 -15
- package/src/fetch/Request.ts +65 -52
- package/src/fetch/ResourceFetch.ts +45 -15
- package/src/fetch/Response.ts +107 -68
- package/src/fetch/SyncFetch.ts +558 -0
- package/src/fetch/cache/preflight/ICachablePreflightRequest.ts +7 -0
- package/src/fetch/cache/preflight/ICachablePreflightResponse.ts +7 -0
- package/src/fetch/cache/preflight/ICachedPreflightResponse.ts +5 -0
- package/src/fetch/cache/preflight/IPreflightResponseCache.ts +33 -0
- package/src/fetch/cache/preflight/PreflightResponseCache.ts +94 -0
- package/src/fetch/cache/response/CachedResponseStateEnum.ts +5 -0
- package/src/fetch/cache/response/ICachableRequest.ts +7 -0
- package/src/fetch/cache/response/ICachableResponse.ts +10 -0
- package/src/fetch/cache/response/ICachedResponse.ts +36 -0
- package/src/fetch/cache/response/IResponseCache.ts +34 -0
- package/src/fetch/cache/response/ResponseCache.ts +221 -0
- package/src/fetch/certificate/FetchHTTPSCertificate.ts +52 -0
- package/src/fetch/multipart/MultipartFormDataParser.ts +44 -5
- package/src/fetch/types/ISyncResponse.ts +16 -0
- package/src/fetch/utilities/FetchBodyUtility.ts +19 -11
- package/src/fetch/utilities/FetchCORSUtility.ts +10 -1
- package/src/fetch/utilities/FetchRequestHeaderUtility.ts +94 -2
- package/src/fetch/utilities/FetchRequestReferrerUtility.ts +74 -57
- package/src/fetch/utilities/FetchRequestValidationUtility.ts +48 -2
- package/src/fetch/utilities/FetchResponseHeaderUtility.ts +47 -0
- package/src/fetch/utilities/FetchResponseRedirectUtility.ts +27 -0
- package/src/fetch/utilities/SyncFetchScriptBuilder.ts +71 -0
- package/src/file/Blob.ts +9 -8
- package/src/file/FileReader.ts +25 -28
- package/src/form-data/FormData.ts +25 -20
- package/src/history/History.ts +4 -4
- package/src/index.ts +288 -260
- package/src/location/Location.ts +16 -28
- package/src/match-media/MediaQueryItem.ts +13 -6
- package/src/match-media/MediaQueryList.ts +33 -25
- package/src/match-media/MediaQueryParser.ts +2 -2
- package/src/mutation-observer/MutationListener.ts +80 -4
- package/src/mutation-observer/MutationObserver.ts +71 -18
- package/src/mutation-observer/MutationRecord.ts +9 -0
- package/src/named-node-map/NamedNodeMap.ts +18 -17
- package/src/navigator/Navigator.ts +6 -5
- package/src/nodes/character-data/CharacterData.ts +20 -17
- package/src/nodes/child-node/ChildNodeUtility.ts +4 -3
- package/src/nodes/document/Document.ts +130 -116
- package/src/nodes/document/DocumentReadyStateManager.ts +4 -4
- package/src/nodes/document/IDocument.ts +4 -2
- package/src/nodes/document/NodeCreationOwnerDocument.ts +14 -0
- package/src/nodes/document-fragment/DocumentFragment.ts +11 -10
- package/src/nodes/element/Dataset.ts +2 -1
- package/src/nodes/element/Element.ts +70 -67
- package/src/nodes/element/ElementNamedNodeMap.ts +81 -58
- package/src/nodes/element/ElementUtility.ts +30 -11
- package/src/nodes/element/HTMLCollection.ts +20 -19
- package/src/nodes/element/IElement.ts +2 -2
- package/src/nodes/html-anchor-element/HTMLAnchorElement.ts +81 -53
- package/src/nodes/html-anchor-element/HTMLAnchorElementNamedNodeMap.ts +11 -10
- package/src/nodes/html-button-element/HTMLButtonElement.ts +39 -32
- package/src/nodes/html-button-element/HTMLButtonElementNamedNodeMap.ts +18 -17
- package/src/nodes/html-document/HTMLDocument.ts +26 -1
- package/src/nodes/html-element/HTMLElement.ts +15 -13
- package/src/nodes/html-element/HTMLElementNamedNodeMap.ts +12 -7
- package/src/nodes/html-element/HTMLElementUtility.ts +11 -10
- package/src/nodes/html-form-element/HTMLFormControlsCollection.ts +27 -21
- package/src/nodes/html-form-element/HTMLFormElement.ts +9 -8
- package/src/nodes/html-iframe-element/HTMLIFrameElement.ts +36 -12
- package/src/nodes/html-iframe-element/HTMLIFrameElementNamedNodeMap.ts +15 -4
- package/src/nodes/html-iframe-element/HTMLIFrameElementPageLoader.ts +106 -0
- package/src/nodes/html-iframe-element/IHTMLIFrameElement.ts +3 -3
- package/src/nodes/html-input-element/HTMLInputElement.ts +83 -74
- package/src/nodes/html-input-element/HTMLInputElementDateUtility.ts +15 -13
- package/src/nodes/html-input-element/HTMLInputElementNamedNodeMap.ts +18 -17
- package/src/nodes/html-label-element/HTMLLabelElement.ts +2 -1
- package/src/nodes/html-link-element/HTMLLinkElement.ts +34 -11
- package/src/nodes/html-link-element/HTMLLinkElementNamedNodeMap.ts +36 -10
- package/src/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.ts +102 -0
- package/src/nodes/html-option-element/HTMLOptionElement.ts +20 -17
- package/src/nodes/html-option-element/HTMLOptionElementNamedNodeMap.ts +20 -11
- package/src/nodes/html-script-element/HTMLScriptElement.ts +49 -14
- package/src/nodes/html-script-element/HTMLScriptElementNamedNodeMap.ts +21 -4
- package/src/nodes/html-script-element/HTMLScriptElementScriptLoader.ts +126 -0
- package/src/nodes/html-select-element/HTMLOptionsCollection.ts +8 -8
- package/src/nodes/html-select-element/HTMLSelectElement.ts +34 -26
- package/src/nodes/html-select-element/HTMLSelectElementNamedNodeMap.ts +18 -17
- package/src/nodes/html-slot-element/HTMLSlotElement.ts +4 -3
- package/src/nodes/html-style-element/HTMLStyleElement.ts +6 -5
- package/src/nodes/html-template-element/HTMLTemplateElement.ts +3 -2
- package/src/nodes/html-text-area-element/HTMLTextAreaElement.ts +56 -49
- package/src/nodes/html-text-area-element/HTMLTextAreaElementNamedNodeMap.ts +18 -17
- package/src/nodes/html-unknown-element/HTMLUnknownElement.ts +49 -34
- package/src/nodes/node/Node.ts +77 -61
- package/src/nodes/node/NodeUtility.ts +62 -53
- package/src/nodes/parent-node/ParentNodeUtility.ts +8 -7
- package/src/nodes/shadow-root/ShadowRoot.ts +4 -3
- package/src/nodes/svg-element/SVGElement.ts +7 -6
- package/src/nodes/svg-element/SVGElementNamedNodeMap.ts +12 -7
- package/src/nodes/text/Text.ts +12 -11
- package/src/query-selector/QuerySelector.ts +18 -8
- package/src/query-selector/SelectorItem.ts +5 -2
- package/src/range/Range.ts +249 -191
- package/src/range/RangeUtility.ts +2 -1
- package/src/selection/Selection.ts +100 -99
- package/src/storage/Storage.ts +9 -7
- package/src/tree-walker/NodeIterator.ts +4 -4
- package/src/tree-walker/TreeWalker.ts +5 -4
- package/src/url/URL.ts +2 -1
- package/src/validity-state/ValidityState.ts +3 -1
- package/src/window/BrowserWindow.ts +1107 -0
- package/src/window/CrossOriginBrowserWindow.ts +102 -0
- package/src/window/DetachedWindowAPI.ts +126 -0
- package/src/window/GlobalWindow.ts +2 -1
- package/src/window/IBrowserWindow.ts +578 -0
- package/src/window/ICrossOriginBrowserWindow.ts +40 -0
- package/src/window/IWindow.ts +6 -539
- package/src/window/VMGlobalPropertyScript.ts +1 -1
- package/src/window/Window.ts +30 -1004
- package/src/window/WindowBrowserSettingsReader.ts +55 -0
- package/src/window/WindowErrorUtility.ts +8 -10
- package/src/window/WindowPageOpenUtility.ts +188 -0
- package/src/xml-http-request/XMLHttpRequest.ts +249 -831
- package/src/xml-http-request/utilities/XMLHttpRequestResponseDataParser.ts +75 -0
- package/src/xml-http-request/utilities/XMLHttpRequestResponseTextDecoder.ts +26 -0
- package/src/xml-parser/XMLParser.ts +3 -2
- package/src/xml-serializer/XMLSerializer.ts +19 -15
- package/vitest.config.ts +2 -1
- package/.eslintrc.cjs +0 -174
- package/cjs/cookie/Cookie.cjs +0 -119
- package/cjs/cookie/Cookie.cjs.map +0 -1
- package/cjs/cookie/Cookie.d.ts +0 -43
- package/cjs/cookie/Cookie.d.ts.map +0 -1
- package/cjs/cookie/CookieJar.cjs +0 -76
- package/cjs/cookie/CookieJar.cjs.map +0 -1
- package/cjs/cookie/CookieJar.d.ts +0 -26
- package/cjs/cookie/CookieJar.d.ts.map +0 -1
- package/cjs/cookie/CookieSameSiteEnum.cjs.map +0 -1
- package/cjs/cookie/CookieSameSiteEnum.d.ts.map +0 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameUtility.cjs +0 -75
- package/cjs/nodes/html-iframe-element/HTMLIFrameUtility.cjs.map +0 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameUtility.d.ts +0 -13
- package/cjs/nodes/html-iframe-element/HTMLIFrameUtility.d.ts.map +0 -1
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.cjs +0 -47
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.cjs.map +0 -1
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts +0 -30
- package/cjs/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts.map +0 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.cjs +0 -61
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.cjs.map +0 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.d.ts +0 -15
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.d.ts.map +0 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.cjs +0 -93
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.cjs.map +0 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.d.ts +0 -15
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.d.ts.map +0 -1
- package/cjs/window/IHappyDOMOptions.cjs.map +0 -1
- package/cjs/window/IHappyDOMOptions.d.ts +0 -35
- package/cjs/window/IHappyDOMOptions.d.ts.map +0 -1
- package/cjs/window/IHappyDOMSettings.cjs.map +0 -1
- package/cjs/window/IHappyDOMSettings.d.ts +0 -20
- package/cjs/window/IHappyDOMSettings.d.ts.map +0 -1
- package/lib/cookie/Cookie.d.ts +0 -43
- package/lib/cookie/Cookie.d.ts.map +0 -1
- package/lib/cookie/Cookie.js +0 -113
- package/lib/cookie/Cookie.js.map +0 -1
- package/lib/cookie/CookieJar.d.ts +0 -26
- package/lib/cookie/CookieJar.d.ts.map +0 -1
- package/lib/cookie/CookieJar.js +0 -70
- package/lib/cookie/CookieJar.js.map +0 -1
- package/lib/cookie/CookieSameSiteEnum.d.ts.map +0 -1
- package/lib/cookie/CookieSameSiteEnum.js.map +0 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameUtility.d.ts +0 -13
- package/lib/nodes/html-iframe-element/HTMLIFrameUtility.d.ts.map +0 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameUtility.js +0 -69
- package/lib/nodes/html-iframe-element/HTMLIFrameUtility.js.map +0 -1
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts +0 -30
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.d.ts.map +0 -1
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.js +0 -41
- package/lib/nodes/html-iframe-element/IFrameCrossOriginWindow.js.map +0 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.d.ts +0 -15
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.d.ts.map +0 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.js +0 -55
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.js.map +0 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.d.ts +0 -15
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.d.ts.map +0 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.js +0 -87
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.js.map +0 -1
- package/lib/window/IHappyDOMOptions.d.ts +0 -35
- package/lib/window/IHappyDOMOptions.d.ts.map +0 -1
- package/lib/window/IHappyDOMOptions.js +0 -2
- package/lib/window/IHappyDOMOptions.js.map +0 -1
- package/lib/window/IHappyDOMSettings.d.ts +0 -20
- package/lib/window/IHappyDOMSettings.d.ts.map +0 -1
- package/lib/window/IHappyDOMSettings.js +0 -2
- package/lib/window/IHappyDOMSettings.js.map +0 -1
- package/src/cookie/Cookie.ts +0 -125
- package/src/cookie/CookieJar.ts +0 -81
- package/src/nodes/html-iframe-element/HTMLIFrameUtility.ts +0 -86
- package/src/nodes/html-iframe-element/IFrameCrossOriginWindow.ts +0 -60
- package/src/nodes/html-link-element/HTMLLinkElementUtility.ts +0 -64
- package/src/nodes/html-script-element/HTMLScriptElementUtility.ts +0 -99
- package/src/window/IHappyDOMOptions.ts +0 -35
- package/src/window/IHappyDOMSettings.ts +0 -19
- /package/cjs/cookie/{CookieSameSiteEnum.cjs → enums/CookieSameSiteEnum.cjs} +0 -0
- /package/cjs/cookie/{CookieSameSiteEnum.d.ts → enums/CookieSameSiteEnum.d.ts} +0 -0
- /package/lib/cookie/{CookieSameSiteEnum.d.ts → enums/CookieSameSiteEnum.d.ts} +0 -0
- /package/lib/cookie/{CookieSameSiteEnum.js → enums/CookieSameSiteEnum.js} +0 -0
- /package/src/cookie/{CookieSameSiteEnum.ts → enums/CookieSameSiteEnum.ts} +0 -0
package/src/window/Window.ts
CHANGED
@@ -1,563 +1,18 @@
|
|
1
|
-
import CustomElementRegistry from '../custom-element/CustomElementRegistry.js';
|
2
|
-
import Document from '../nodes/document/Document.js';
|
3
|
-
import HTMLDocument from '../nodes/html-document/HTMLDocument.js';
|
4
|
-
import XMLDocument from '../nodes/xml-document/XMLDocument.js';
|
5
|
-
import SVGDocument from '../nodes/svg-document/SVGDocument.js';
|
6
|
-
import Node from '../nodes/node/Node.js';
|
7
|
-
import NodeFilter from '../tree-walker/NodeFilter.js';
|
8
|
-
import Text from '../nodes/text/Text.js';
|
9
|
-
import Comment from '../nodes/comment/Comment.js';
|
10
|
-
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.js';
|
11
|
-
import Element from '../nodes/element/Element.js';
|
12
|
-
import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement.js';
|
13
|
-
import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement.js';
|
14
|
-
import HTMLElement from '../nodes/html-element/HTMLElement.js';
|
15
|
-
import HTMLUnknownElement from '../nodes/html-unknown-element/HTMLUnknownElement.js';
|
16
|
-
import HTMLInputElement from '../nodes/html-input-element/HTMLInputElement.js';
|
17
|
-
import HTMLSelectElement from '../nodes/html-select-element/HTMLSelectElement.js';
|
18
|
-
import HTMLTextAreaElement from '../nodes/html-text-area-element/HTMLTextAreaElement.js';
|
19
|
-
import HTMLLinkElement from '../nodes/html-link-element/HTMLLinkElement.js';
|
20
|
-
import HTMLStyleElement from '../nodes/html-style-element/HTMLStyleElement.js';
|
21
|
-
import HTMLSlotElement from '../nodes/html-slot-element/HTMLSlotElement.js';
|
22
|
-
import HTMLLabelElement from '../nodes/html-label-element/HTMLLabelElement.js';
|
23
|
-
import HTMLMetaElement from '../nodes/html-meta-element/HTMLMetaElement.js';
|
24
|
-
import HTMLMediaElement from '../nodes/html-media-element/HTMLMediaElement.js';
|
25
|
-
import HTMLAudioElement from '../nodes/html-audio-element/HTMLAudioElement.js';
|
26
|
-
import AudioImplementation from '../nodes/html-audio-element/Audio.js';
|
27
|
-
import HTMLVideoElement from '../nodes/html-video-element/HTMLVideoElement.js';
|
28
|
-
import HTMLBaseElement from '../nodes/html-base-element/HTMLBaseElement.js';
|
29
|
-
import HTMLIFrameElement from '../nodes/html-iframe-element/HTMLIFrameElement.js';
|
30
|
-
import HTMLDialogElement from '../nodes/html-dialog-element/HTMLDialogElement.js';
|
31
|
-
import SVGSVGElement from '../nodes/svg-element/SVGSVGElement.js';
|
32
|
-
import SVGElement from '../nodes/svg-element/SVGElement.js';
|
33
|
-
import SVGGraphicsElement from '../nodes/svg-element/SVGGraphicsElement.js';
|
34
|
-
import HTMLScriptElement from '../nodes/html-script-element/HTMLScriptElement.js';
|
35
|
-
import HTMLImageElement from '../nodes/html-image-element/HTMLImageElement.js';
|
36
|
-
import ImageImplementation from '../nodes/html-image-element/Image.js';
|
37
|
-
import DocumentFragmentImplementation from '../nodes/document-fragment/DocumentFragment.js';
|
38
|
-
import CharacterData from '../nodes/character-data/CharacterData.js';
|
39
|
-
import NodeIterator from '../tree-walker/NodeIterator.js';
|
40
|
-
import TreeWalker from '../tree-walker/TreeWalker.js';
|
41
|
-
import Event from '../event/Event.js';
|
42
|
-
import CustomEvent from '../event/events/CustomEvent.js';
|
43
|
-
import AnimationEvent from '../event/events/AnimationEvent.js';
|
44
|
-
import KeyboardEvent from '../event/events/KeyboardEvent.js';
|
45
|
-
import MessageEvent from '../event/events/MessageEvent.js';
|
46
|
-
import ProgressEvent from '../event/events/ProgressEvent.js';
|
47
|
-
import MediaQueryListEvent from '../event/events/MediaQueryListEvent.js';
|
48
|
-
import EventTarget from '../event/EventTarget.js';
|
49
|
-
import MessagePort from '../event/MessagePort.js';
|
50
|
-
import { URLSearchParams } from 'url';
|
51
|
-
import URL from '../url/URL.js';
|
52
|
-
import Location from '../location/Location.js';
|
53
|
-
import MutationObserver from '../mutation-observer/MutationObserver.js';
|
54
|
-
import MutationRecord from '../mutation-observer/MutationRecord.js';
|
55
|
-
import DOMParserImplementation from '../dom-parser/DOMParser.js';
|
56
|
-
import XMLSerializer from '../xml-serializer/XMLSerializer.js';
|
57
|
-
import ResizeObserver from '../resize-observer/ResizeObserver.js';
|
58
|
-
import Blob from '../file/Blob.js';
|
59
|
-
import File from '../file/File.js';
|
60
|
-
import DOMException from '../exception/DOMException.js';
|
61
|
-
import FileReaderImplementation from '../file/FileReader.js';
|
62
|
-
import History from '../history/History.js';
|
63
|
-
import CSSStyleSheet from '../css/CSSStyleSheet.js';
|
64
|
-
import CSSStyleDeclaration from '../css/declaration/CSSStyleDeclaration.js';
|
65
|
-
import CSS from '../css/CSS.js';
|
66
|
-
import CSSUnitValue from '../css/CSSUnitValue.js';
|
67
|
-
import CSSRule from '../css/CSSRule.js';
|
68
|
-
import CSSContainerRule from '../css/rules/CSSContainerRule.js';
|
69
|
-
import CSSFontFaceRule from '../css/rules/CSSFontFaceRule.js';
|
70
|
-
import CSSKeyframeRule from '../css/rules/CSSKeyframeRule.js';
|
71
|
-
import CSSKeyframesRule from '../css/rules/CSSKeyframesRule.js';
|
72
|
-
import CSSMediaRule from '../css/rules/CSSMediaRule.js';
|
73
|
-
import CSSStyleRule from '../css/rules/CSSStyleRule.js';
|
74
|
-
import CSSSupportsRule from '../css/rules/CSSSupportsRule.js';
|
75
|
-
import MouseEvent from '../event/events/MouseEvent.js';
|
76
|
-
import PointerEvent from '../event/events/PointerEvent.js';
|
77
|
-
import FocusEvent from '../event/events/FocusEvent.js';
|
78
|
-
import WheelEvent from '../event/events/WheelEvent.js';
|
79
|
-
import DataTransfer from '../event/DataTransfer.js';
|
80
|
-
import DataTransferItem from '../event/DataTransferItem.js';
|
81
|
-
import DataTransferItemList from '../event/DataTransferItemList.js';
|
82
|
-
import InputEvent from '../event/events/InputEvent.js';
|
83
|
-
import UIEvent from '../event/UIEvent.js';
|
84
|
-
import ErrorEvent from '../event/events/ErrorEvent.js';
|
85
|
-
import StorageEvent from '../event/events/StorageEvent.js';
|
86
|
-
import SubmitEvent from '../event/events/SubmitEvent.js';
|
87
|
-
import Screen from '../screen/Screen.js';
|
88
|
-
import AsyncTaskManager from '../async-task-manager/AsyncTaskManager.js';
|
89
|
-
import IResponse from '../fetch/types/IResponse.js';
|
90
|
-
import IResponseInit from '../fetch/types/IResponseInit.js';
|
91
|
-
import IRequest from '../fetch/types/IRequest.js';
|
92
|
-
import IRequestInit from '../fetch/types/IRequestInit.js';
|
93
|
-
import IHeaders from '../fetch/types/IHeaders.js';
|
94
|
-
import IHeadersInit from '../fetch/types/IHeadersInit.js';
|
95
|
-
import Headers from '../fetch/Headers.js';
|
96
|
-
import RequestImplementation from '../fetch/Request.js';
|
97
|
-
import ResponseImplementation from '../fetch/Response.js';
|
98
|
-
import Storage from '../storage/Storage.js';
|
99
1
|
import IWindow from './IWindow.js';
|
100
|
-
import
|
101
|
-
import
|
102
|
-
import
|
103
|
-
import
|
104
|
-
import Selection from '../selection/Selection.js';
|
105
|
-
import Navigator from '../navigator/Navigator.js';
|
106
|
-
import MimeType from '../navigator/MimeType.js';
|
107
|
-
import MimeTypeArray from '../navigator/MimeTypeArray.js';
|
108
|
-
import Plugin from '../navigator/Plugin.js';
|
109
|
-
import PluginArray from '../navigator/PluginArray.js';
|
110
|
-
import Fetch from '../fetch/Fetch.js';
|
111
|
-
import RangeImplementation from '../range/Range.js';
|
112
|
-
import DOMRect from '../nodes/element/DOMRect.js';
|
113
|
-
import VMGlobalPropertyScript from './VMGlobalPropertyScript.js';
|
114
|
-
import * as PerfHooks from 'perf_hooks';
|
115
|
-
import VM from 'vm';
|
116
|
-
import { Buffer } from 'buffer';
|
117
|
-
import { webcrypto } from 'crypto';
|
118
|
-
import XMLHttpRequestImplementation from '../xml-http-request/XMLHttpRequest.js';
|
119
|
-
import XMLHttpRequestUpload from '../xml-http-request/XMLHttpRequestUpload.js';
|
120
|
-
import XMLHttpRequestEventTarget from '../xml-http-request/XMLHttpRequestEventTarget.js';
|
121
|
-
import Base64 from '../base64/Base64.js';
|
122
|
-
import IDocument from '../nodes/document/IDocument.js';
|
123
|
-
import Attr from '../nodes/attr/Attr.js';
|
124
|
-
import NamedNodeMap from '../named-node-map/NamedNodeMap.js';
|
125
|
-
import IElement from '../nodes/element/IElement.js';
|
126
|
-
import ProcessingInstruction from '../nodes/processing-instruction/ProcessingInstruction.js';
|
127
|
-
import RequestInfo from '../fetch/types/IRequestInfo.js';
|
128
|
-
import FileList from '../nodes/html-input-element/FileList.js';
|
129
|
-
import Stream from 'stream';
|
130
|
-
import FormData from '../form-data/FormData.js';
|
131
|
-
import AbortController from '../fetch/AbortController.js';
|
132
|
-
import AbortSignal from '../fetch/AbortSignal.js';
|
133
|
-
import IResponseBody from '../fetch/types/IResponseBody.js';
|
134
|
-
import IRequestInfo from '../fetch/types/IRequestInfo.js';
|
135
|
-
import DOMExceptionNameEnum from '../exception/DOMExceptionNameEnum.js';
|
136
|
-
import IHappyDOMOptions from './IHappyDOMOptions.js';
|
137
|
-
import RadioNodeList from '../nodes/html-form-element/RadioNodeList.js';
|
138
|
-
import ValidityState from '../validity-state/ValidityState.js';
|
139
|
-
import WindowErrorUtility from './WindowErrorUtility.js';
|
140
|
-
import VirtualConsole from '../console/VirtualConsole.js';
|
141
|
-
import VirtualConsolePrinter from '../console/VirtualConsolePrinter.js';
|
142
|
-
import IHappyDOMSettings from './IHappyDOMSettings.js';
|
143
|
-
import PackageVersion from '../version.js';
|
144
|
-
import Permissions from '../permissions/Permissions.js';
|
145
|
-
import PermissionStatus from '../permissions/PermissionStatus.js';
|
146
|
-
import Clipboard from '../clipboard/Clipboard.js';
|
147
|
-
import ClipboardItem from '../clipboard/ClipboardItem.js';
|
148
|
-
import ClipboardEvent from '../event/events/ClipboardEvent.js';
|
149
|
-
|
150
|
-
const ORIGINAL_SET_TIMEOUT = setTimeout;
|
151
|
-
const ORIGINAL_CLEAR_TIMEOUT = clearTimeout;
|
152
|
-
const ORIGINAL_SET_INTERVAL = setInterval;
|
153
|
-
const ORIGINAL_CLEAR_INTERVAL = clearInterval;
|
154
|
-
const ORIGINAL_QUEUE_MICROTASK = queueMicrotask;
|
2
|
+
import DetachedWindowAPI from './DetachedWindowAPI.js';
|
3
|
+
import IOptionalBrowserSettings from '../browser/types/IOptionalBrowserSettings.js';
|
4
|
+
import BrowserWindow from './BrowserWindow.js';
|
5
|
+
import DetachedBrowser from '../browser/detached-browser/DetachedBrowser.js';
|
155
6
|
|
156
7
|
/**
|
157
|
-
*
|
8
|
+
* Window.
|
158
9
|
*
|
159
10
|
* Reference:
|
160
11
|
* https://developer.mozilla.org/en-US/docs/Web/API/Window.
|
161
12
|
*/
|
162
|
-
export default class Window extends
|
163
|
-
//
|
164
|
-
public readonly happyDOM:
|
165
|
-
whenAsyncComplete: () => Promise<void>;
|
166
|
-
cancelAsync: () => void;
|
167
|
-
asyncTaskManager: AsyncTaskManager;
|
168
|
-
setWindowSize: (options: { width?: number; height?: number }) => void;
|
169
|
-
setURL: (url: string) => void;
|
170
|
-
virtualConsolePrinter: VirtualConsolePrinter | null;
|
171
|
-
settings: IHappyDOMSettings;
|
172
|
-
|
173
|
-
/**
|
174
|
-
* @deprecated
|
175
|
-
*/
|
176
|
-
setInnerWidth: (width: number) => void;
|
177
|
-
|
178
|
-
/**
|
179
|
-
* @deprecated
|
180
|
-
*/
|
181
|
-
setInnerHeight: (height: number) => void;
|
182
|
-
} = {
|
183
|
-
whenAsyncComplete: async (): Promise<void> => {
|
184
|
-
return await this.happyDOM.asyncTaskManager.whenComplete();
|
185
|
-
},
|
186
|
-
cancelAsync: (): void => {
|
187
|
-
this.happyDOM.asyncTaskManager.cancelAll();
|
188
|
-
},
|
189
|
-
asyncTaskManager: new AsyncTaskManager(),
|
190
|
-
setWindowSize: (options: { width?: number; height?: number }): void => {
|
191
|
-
if (
|
192
|
-
(options.width !== undefined && this.innerWidth !== options.width) ||
|
193
|
-
(options.height !== undefined && this.innerHeight !== options.height)
|
194
|
-
) {
|
195
|
-
if (options.width !== undefined && this.innerWidth !== options.width) {
|
196
|
-
(<number>this.innerWidth) = options.width;
|
197
|
-
(<number>this.outerWidth) = options.width;
|
198
|
-
}
|
199
|
-
|
200
|
-
if (options.height !== undefined && this.innerHeight !== options.height) {
|
201
|
-
(<number>this.innerHeight) = options.height;
|
202
|
-
(<number>this.outerHeight) = options.height;
|
203
|
-
}
|
204
|
-
|
205
|
-
this.dispatchEvent(new Event('resize'));
|
206
|
-
}
|
207
|
-
},
|
208
|
-
virtualConsolePrinter: null,
|
209
|
-
setURL: (url: string) => {
|
210
|
-
this.location.href = url;
|
211
|
-
},
|
212
|
-
settings: {
|
213
|
-
disableJavaScriptEvaluation: false,
|
214
|
-
disableJavaScriptFileLoading: false,
|
215
|
-
disableCSSFileLoading: false,
|
216
|
-
disableIframePageLoading: false,
|
217
|
-
disableComputedStyleRendering: false,
|
218
|
-
disableErrorCapturing: false,
|
219
|
-
enableFileSystemHttpRequests: false,
|
220
|
-
navigator: {
|
221
|
-
userAgent: `Mozilla/5.0 (X11; ${
|
222
|
-
process.platform.charAt(0).toUpperCase() + process.platform.slice(1) + ' ' + process.arch
|
223
|
-
}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${PackageVersion.version}`
|
224
|
-
},
|
225
|
-
device: {
|
226
|
-
prefersColorScheme: 'light',
|
227
|
-
mediaType: 'screen'
|
228
|
-
}
|
229
|
-
},
|
230
|
-
setInnerWidth: (width: number): void => this.happyDOM.setWindowSize({ width }),
|
231
|
-
setInnerHeight: (height: number): void => this.happyDOM.setWindowSize({ height })
|
232
|
-
};
|
233
|
-
|
234
|
-
// Nodes
|
235
|
-
public readonly Node = Node;
|
236
|
-
public readonly Attr = Attr;
|
237
|
-
public readonly SVGSVGElement = SVGSVGElement;
|
238
|
-
public readonly SVGElement = SVGElement;
|
239
|
-
public readonly SVGGraphicsElement = SVGGraphicsElement;
|
240
|
-
public readonly Text = Text;
|
241
|
-
public readonly Comment = Comment;
|
242
|
-
public readonly ShadowRoot = ShadowRoot;
|
243
|
-
public readonly ProcessingInstruction = ProcessingInstruction;
|
244
|
-
public readonly Element = Element;
|
245
|
-
public readonly CharacterData = CharacterData;
|
246
|
-
public readonly Document = Document;
|
247
|
-
public readonly HTMLDocument = HTMLDocument;
|
248
|
-
public readonly XMLDocument = XMLDocument;
|
249
|
-
public readonly SVGDocument = SVGDocument;
|
250
|
-
|
251
|
-
// Element classes
|
252
|
-
public readonly HTMLElement = HTMLElement;
|
253
|
-
public readonly HTMLUnknownElement = HTMLUnknownElement;
|
254
|
-
public readonly HTMLTemplateElement = HTMLTemplateElement;
|
255
|
-
public readonly HTMLFormElement = HTMLFormElement;
|
256
|
-
public readonly HTMLInputElement = HTMLInputElement;
|
257
|
-
public readonly HTMLSelectElement = HTMLSelectElement;
|
258
|
-
public readonly HTMLTextAreaElement = HTMLTextAreaElement;
|
259
|
-
public readonly HTMLImageElement = HTMLImageElement;
|
260
|
-
public readonly HTMLScriptElement = HTMLScriptElement;
|
261
|
-
public readonly HTMLLinkElement = HTMLLinkElement;
|
262
|
-
public readonly HTMLStyleElement = HTMLStyleElement;
|
263
|
-
public readonly HTMLLabelElement = HTMLLabelElement;
|
264
|
-
public readonly HTMLSlotElement = HTMLSlotElement;
|
265
|
-
public readonly HTMLMetaElement = HTMLMetaElement;
|
266
|
-
public readonly HTMLMediaElement = HTMLMediaElement;
|
267
|
-
public readonly HTMLAudioElement = HTMLAudioElement;
|
268
|
-
public readonly HTMLVideoElement = HTMLVideoElement;
|
269
|
-
public readonly HTMLBaseElement = HTMLBaseElement;
|
270
|
-
public readonly HTMLIFrameElement = HTMLIFrameElement;
|
271
|
-
public readonly HTMLDialogElement = HTMLDialogElement;
|
272
|
-
|
273
|
-
// Non-implemented element classes
|
274
|
-
public readonly HTMLHeadElement = HTMLElement;
|
275
|
-
public readonly HTMLTitleElement = HTMLElement;
|
276
|
-
public readonly HTMLBodyElement = HTMLElement;
|
277
|
-
public readonly HTMLHeadingElement = HTMLElement;
|
278
|
-
public readonly HTMLParagraphElement = HTMLElement;
|
279
|
-
public readonly HTMLHRElement = HTMLElement;
|
280
|
-
public readonly HTMLPreElement = HTMLElement;
|
281
|
-
public readonly HTMLUListElement = HTMLElement;
|
282
|
-
public readonly HTMLOListElement = HTMLElement;
|
283
|
-
public readonly HTMLLIElement = HTMLElement;
|
284
|
-
public readonly HTMLMenuElement = HTMLElement;
|
285
|
-
public readonly HTMLDListElement = HTMLElement;
|
286
|
-
public readonly HTMLDivElement = HTMLElement;
|
287
|
-
public readonly HTMLAnchorElement = HTMLElement;
|
288
|
-
public readonly HTMLAreaElement = HTMLElement;
|
289
|
-
public readonly HTMLBRElement = HTMLElement;
|
290
|
-
public readonly HTMLButtonElement = HTMLElement;
|
291
|
-
public readonly HTMLCanvasElement = HTMLElement;
|
292
|
-
public readonly HTMLDataElement = HTMLElement;
|
293
|
-
public readonly HTMLDataListElement = HTMLElement;
|
294
|
-
public readonly HTMLDetailsElement = HTMLElement;
|
295
|
-
public readonly HTMLDirectoryElement = HTMLElement;
|
296
|
-
public readonly HTMLFieldSetElement = HTMLElement;
|
297
|
-
public readonly HTMLFontElement = HTMLElement;
|
298
|
-
public readonly HTMLHtmlElement = HTMLElement;
|
299
|
-
public readonly HTMLLegendElement = HTMLElement;
|
300
|
-
public readonly HTMLMapElement = HTMLElement;
|
301
|
-
public readonly HTMLMarqueeElement = HTMLElement;
|
302
|
-
public readonly HTMLMeterElement = HTMLElement;
|
303
|
-
public readonly HTMLModElement = HTMLElement;
|
304
|
-
public readonly HTMLOutputElement = HTMLElement;
|
305
|
-
public readonly HTMLPictureElement = HTMLElement;
|
306
|
-
public readonly HTMLProgressElement = HTMLElement;
|
307
|
-
public readonly HTMLQuoteElement = HTMLElement;
|
308
|
-
public readonly HTMLSourceElement = HTMLElement;
|
309
|
-
public readonly HTMLSpanElement = HTMLElement;
|
310
|
-
public readonly HTMLTableCaptionElement = HTMLElement;
|
311
|
-
public readonly HTMLTableCellElement = HTMLElement;
|
312
|
-
public readonly HTMLTableColElement = HTMLElement;
|
313
|
-
public readonly HTMLTableElement = HTMLElement;
|
314
|
-
public readonly HTMLTimeElement = HTMLElement;
|
315
|
-
public readonly HTMLTableRowElement = HTMLElement;
|
316
|
-
public readonly HTMLTableSectionElement = HTMLElement;
|
317
|
-
public readonly HTMLFrameElement = HTMLElement;
|
318
|
-
public readonly HTMLFrameSetElement = HTMLElement;
|
319
|
-
public readonly HTMLEmbedElement = HTMLElement;
|
320
|
-
public readonly HTMLObjectElement = HTMLElement;
|
321
|
-
public readonly HTMLParamElement = HTMLElement;
|
322
|
-
public readonly HTMLTrackElement = HTMLElement;
|
323
|
-
|
324
|
-
// Events classes
|
325
|
-
public readonly Event = Event;
|
326
|
-
public readonly UIEvent = UIEvent;
|
327
|
-
public readonly CustomEvent = CustomEvent;
|
328
|
-
public readonly AnimationEvent = AnimationEvent;
|
329
|
-
public readonly KeyboardEvent = KeyboardEvent;
|
330
|
-
public readonly MessageEvent = MessageEvent;
|
331
|
-
public readonly MouseEvent = MouseEvent;
|
332
|
-
public readonly PointerEvent = PointerEvent;
|
333
|
-
public readonly FocusEvent = FocusEvent;
|
334
|
-
public readonly WheelEvent = WheelEvent;
|
335
|
-
public readonly InputEvent = InputEvent;
|
336
|
-
public readonly ErrorEvent = ErrorEvent;
|
337
|
-
public readonly StorageEvent = StorageEvent;
|
338
|
-
public readonly SubmitEvent = SubmitEvent;
|
339
|
-
public readonly ProgressEvent = ProgressEvent;
|
340
|
-
public readonly MediaQueryListEvent = MediaQueryListEvent;
|
341
|
-
public readonly ClipboardEvent = ClipboardEvent;
|
342
|
-
|
343
|
-
// Non-implemented event classes
|
344
|
-
public readonly AudioProcessingEvent = Event;
|
345
|
-
public readonly BeforeInputEvent = Event;
|
346
|
-
public readonly BeforeUnloadEvent = Event;
|
347
|
-
public readonly BlobEvent = Event;
|
348
|
-
public readonly CloseEvent = Event;
|
349
|
-
public readonly CompositionEvent = Event;
|
350
|
-
public readonly CSSFontFaceLoadEvent = Event;
|
351
|
-
public readonly DeviceLightEvent = Event;
|
352
|
-
public readonly DeviceMotionEvent = Event;
|
353
|
-
public readonly DeviceOrientationEvent = Event;
|
354
|
-
public readonly DeviceProximityEvent = Event;
|
355
|
-
public readonly DOMTransactionEvent = Event;
|
356
|
-
public readonly DragEvent = Event;
|
357
|
-
public readonly EditingBeforeInputEvent = Event;
|
358
|
-
public readonly FetchEvent = Event;
|
359
|
-
public readonly GamepadEvent = Event;
|
360
|
-
public readonly HashChangeEvent = Event;
|
361
|
-
public readonly IDBVersionChangeEvent = Event;
|
362
|
-
public readonly MediaStreamEvent = Event;
|
363
|
-
public readonly MutationEvent = Event;
|
364
|
-
public readonly OfflineAudioCompletionEvent = Event;
|
365
|
-
public readonly OverconstrainedError = Event;
|
366
|
-
public readonly PageTransitionEvent = Event;
|
367
|
-
public readonly PaymentRequestUpdateEvent = Event;
|
368
|
-
public readonly PopStateEvent = Event;
|
369
|
-
public readonly RelatedEvent = Event;
|
370
|
-
public readonly RTCDataChannelEvent = Event;
|
371
|
-
public readonly RTCIdentityErrorEvent = Event;
|
372
|
-
public readonly RTCIdentityEvent = Event;
|
373
|
-
public readonly RTCPeerConnectionIceEvent = Event;
|
374
|
-
public readonly SensorEvent = Event;
|
375
|
-
public readonly SVGEvent = Event;
|
376
|
-
public readonly SVGZoomEvent = Event;
|
377
|
-
public readonly TimeEvent = Event;
|
378
|
-
public readonly TouchEvent = Event;
|
379
|
-
public readonly TrackEvent = Event;
|
380
|
-
public readonly TransitionEvent = Event;
|
381
|
-
public readonly UserProximityEvent = Event;
|
382
|
-
public readonly WebGLContextEvent = Event;
|
383
|
-
public readonly TextEvent = Event;
|
384
|
-
|
385
|
-
// Other classes
|
386
|
-
public readonly NamedNodeMap = NamedNodeMap;
|
387
|
-
public readonly NodeFilter = NodeFilter;
|
388
|
-
public readonly NodeIterator = NodeIterator;
|
389
|
-
public readonly TreeWalker = TreeWalker;
|
390
|
-
public readonly MutationObserver = MutationObserver;
|
391
|
-
public readonly MutationRecord = MutationRecord;
|
392
|
-
public readonly EventTarget = EventTarget;
|
393
|
-
public readonly MessagePort = MessagePort;
|
394
|
-
public readonly DataTransfer = DataTransfer;
|
395
|
-
public readonly DataTransferItem = DataTransferItem;
|
396
|
-
public readonly DataTransferItemList = DataTransferItemList;
|
397
|
-
public readonly URL = URL;
|
398
|
-
public readonly Location = Location;
|
399
|
-
public readonly CustomElementRegistry = CustomElementRegistry;
|
400
|
-
public readonly Window = <typeof Window>this.constructor;
|
401
|
-
public readonly XMLSerializer = XMLSerializer;
|
402
|
-
public readonly ResizeObserver = ResizeObserver;
|
403
|
-
public readonly CSSStyleSheet = CSSStyleSheet;
|
404
|
-
public readonly Blob = Blob;
|
405
|
-
public readonly File = File;
|
406
|
-
public readonly DOMException = DOMException;
|
407
|
-
public readonly History = History;
|
408
|
-
public readonly Screen = Screen;
|
409
|
-
public readonly Storage = Storage;
|
410
|
-
public readonly URLSearchParams = URLSearchParams;
|
411
|
-
public readonly HTMLCollection = HTMLCollection;
|
412
|
-
public readonly HTMLFormControlsCollection = HTMLFormControlsCollection;
|
413
|
-
public readonly NodeList = NodeList;
|
414
|
-
public readonly CSSUnitValue = CSSUnitValue;
|
415
|
-
public readonly CSSRule = CSSRule;
|
416
|
-
public readonly CSSContainerRule = CSSContainerRule;
|
417
|
-
public readonly CSSFontFaceRule = CSSFontFaceRule;
|
418
|
-
public readonly CSSKeyframeRule = CSSKeyframeRule;
|
419
|
-
public readonly CSSKeyframesRule = CSSKeyframesRule;
|
420
|
-
public readonly CSSMediaRule = CSSMediaRule;
|
421
|
-
public readonly CSSStyleRule = CSSStyleRule;
|
422
|
-
public readonly CSSSupportsRule = CSSSupportsRule;
|
423
|
-
public readonly Selection = Selection;
|
424
|
-
public readonly Navigator = Navigator;
|
425
|
-
public readonly MimeType = MimeType;
|
426
|
-
public readonly MimeTypeArray = MimeTypeArray;
|
427
|
-
public readonly Plugin = Plugin;
|
428
|
-
public readonly PluginArray = PluginArray;
|
429
|
-
public readonly FileList = FileList;
|
430
|
-
public readonly Headers: { new (init?: IHeadersInit): IHeaders } = Headers;
|
431
|
-
public readonly DOMRect: typeof DOMRect;
|
432
|
-
public readonly RadioNodeList: typeof RadioNodeList;
|
433
|
-
public readonly ValidityState: typeof ValidityState;
|
434
|
-
public readonly Request: {
|
435
|
-
new (input: IRequestInfo, init?: IRequestInit): IRequest;
|
436
|
-
};
|
437
|
-
public readonly Response: {
|
438
|
-
new (body?: IResponseBody, init?: IResponseInit): IResponse;
|
439
|
-
};
|
440
|
-
public readonly XMLHttpRequestUpload = XMLHttpRequestUpload;
|
441
|
-
public readonly XMLHttpRequestEventTarget = XMLHttpRequestEventTarget;
|
442
|
-
public readonly ReadableStream = Stream.Readable;
|
443
|
-
public readonly WritableStream = Stream.Writable;
|
444
|
-
public readonly TransformStream = Stream.Transform;
|
445
|
-
public readonly AbortController = AbortController;
|
446
|
-
public readonly AbortSignal = AbortSignal;
|
447
|
-
public readonly FormData = FormData;
|
448
|
-
public readonly Permissions = Permissions;
|
449
|
-
public readonly PermissionStatus = PermissionStatus;
|
450
|
-
public readonly Clipboard = Clipboard;
|
451
|
-
public readonly ClipboardItem = ClipboardItem;
|
452
|
-
public readonly XMLHttpRequest;
|
453
|
-
public readonly DOMParser: typeof DOMParserImplementation;
|
454
|
-
public readonly Range;
|
455
|
-
public readonly FileReader;
|
456
|
-
public readonly Image;
|
457
|
-
public readonly DocumentFragment;
|
458
|
-
public readonly Audio;
|
459
|
-
public readonly CSSStyleDeclaration = CSSStyleDeclaration;
|
460
|
-
|
461
|
-
// Events
|
462
|
-
public onload: (event: Event) => void = null;
|
463
|
-
public onerror: (event: ErrorEvent) => void = null;
|
464
|
-
|
465
|
-
// Public properties.
|
466
|
-
public readonly document: Document;
|
467
|
-
public readonly customElements: CustomElementRegistry;
|
468
|
-
public readonly location: Location;
|
469
|
-
public readonly history: History;
|
470
|
-
public readonly navigator: Navigator;
|
471
|
-
public readonly console: Console;
|
472
|
-
public readonly self = this;
|
473
|
-
public readonly top = this;
|
474
|
-
public readonly parent = this;
|
475
|
-
public readonly window = this;
|
476
|
-
public readonly globalThis = this;
|
477
|
-
public readonly screen: Screen;
|
478
|
-
public readonly devicePixelRatio = 1;
|
479
|
-
public readonly sessionStorage: Storage;
|
480
|
-
public readonly localStorage: Storage;
|
481
|
-
public readonly performance = PerfHooks.performance;
|
482
|
-
public readonly innerWidth: number = 1024;
|
483
|
-
public readonly innerHeight: number = 768;
|
484
|
-
public readonly outerWidth: number = 1024;
|
485
|
-
public readonly outerHeight: number = 768;
|
486
|
-
public readonly crypto = webcrypto;
|
487
|
-
|
488
|
-
// Node.js Globals
|
489
|
-
public Array: typeof Array;
|
490
|
-
public ArrayBuffer: typeof ArrayBuffer;
|
491
|
-
public Boolean: typeof Boolean;
|
492
|
-
public Buffer = Buffer;
|
493
|
-
public DataView: typeof DataView;
|
494
|
-
public Date: typeof Date;
|
495
|
-
public Error: typeof Error;
|
496
|
-
public EvalError: typeof EvalError;
|
497
|
-
public Float32Array: typeof Float32Array;
|
498
|
-
public Float64Array: typeof Float64Array;
|
499
|
-
public Function: typeof Function;
|
500
|
-
public Infinity: typeof Infinity;
|
501
|
-
public Int16Array: typeof Int16Array;
|
502
|
-
public Int32Array: typeof Int32Array;
|
503
|
-
public Int8Array: typeof Int8Array;
|
504
|
-
public Intl: typeof Intl;
|
505
|
-
public JSON: typeof JSON;
|
506
|
-
public Map: MapConstructor;
|
507
|
-
public Math: typeof Math;
|
508
|
-
public NaN: typeof NaN;
|
509
|
-
public Number: typeof Number;
|
510
|
-
public Object: typeof Object;
|
511
|
-
public Promise: typeof Promise;
|
512
|
-
public RangeError: typeof RangeError;
|
513
|
-
public ReferenceError: typeof ReferenceError;
|
514
|
-
public RegExp: typeof RegExp;
|
515
|
-
public Set: SetConstructor;
|
516
|
-
public String: typeof String;
|
517
|
-
public Symbol: Function;
|
518
|
-
public SyntaxError: typeof SyntaxError;
|
519
|
-
public TypeError: typeof TypeError;
|
520
|
-
public URIError: typeof URIError;
|
521
|
-
public Uint16Array: typeof Uint16Array;
|
522
|
-
public Uint32Array: typeof Uint32Array;
|
523
|
-
public Uint8Array: typeof Uint8Array;
|
524
|
-
public Uint8ClampedArray: typeof Uint8ClampedArray;
|
525
|
-
public WeakMap: WeakMapConstructor;
|
526
|
-
public WeakSet: WeakSetConstructor;
|
527
|
-
public decodeURI: typeof decodeURI;
|
528
|
-
public decodeURIComponent: typeof decodeURIComponent;
|
529
|
-
public encodeURI: typeof encodeURI;
|
530
|
-
public encodeURIComponent: typeof encodeURIComponent;
|
531
|
-
public eval: typeof eval;
|
532
|
-
/**
|
533
|
-
* @deprecated
|
534
|
-
*/
|
535
|
-
public escape: (str: string) => string;
|
536
|
-
public global: typeof globalThis;
|
537
|
-
public isFinite: typeof isFinite;
|
538
|
-
public isNaN: typeof isNaN;
|
539
|
-
public parseFloat: typeof parseFloat;
|
540
|
-
public parseInt: typeof parseInt;
|
541
|
-
public undefined: typeof undefined;
|
542
|
-
/**
|
543
|
-
* @deprecated
|
544
|
-
*/
|
545
|
-
public unescape: (str: string) => string;
|
546
|
-
public gc: () => void;
|
547
|
-
public v8debug?: unknown;
|
548
|
-
|
549
|
-
// Public internal properties
|
550
|
-
|
551
|
-
// Used for tracking capture event listeners to improve performance when they are not used.
|
552
|
-
// See EventTarget class.
|
553
|
-
public _captureEventListenerCount: { [eventType: string]: number } = {};
|
554
|
-
|
555
|
-
// Private properties
|
556
|
-
private _setTimeout: (callback: Function, delay?: number, ...args: unknown[]) => NodeJS.Timeout;
|
557
|
-
private _clearTimeout: (id: NodeJS.Timeout) => void;
|
558
|
-
private _setInterval: (callback: Function, delay?: number, ...args: unknown[]) => NodeJS.Timeout;
|
559
|
-
private _clearInterval: (id: NodeJS.Timeout) => void;
|
560
|
-
private _queueMicrotask: (callback: Function) => void;
|
13
|
+
export default class Window extends BrowserWindow implements IWindow {
|
14
|
+
// Detached Window API.
|
15
|
+
public readonly happyDOM: DetachedWindowAPI;
|
561
16
|
|
562
17
|
/**
|
563
18
|
* Constructor.
|
@@ -568,463 +23,34 @@ export default class Window extends EventTarget implements IWindow {
|
|
568
23
|
* @param [options.innerWidth] Inner width. Deprecated. Defaults to "1024".
|
569
24
|
* @param [options.innerHeight] Inner height. Deprecated. Defaults to "768".
|
570
25
|
* @param [options.url] URL.
|
26
|
+
* @param [options.console] Console.
|
571
27
|
* @param [options.settings] Settings.
|
572
28
|
*/
|
573
|
-
constructor(options?:
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
this.outerWidth = options.width;
|
588
|
-
} else if (options.innerWidth !== undefined) {
|
589
|
-
this.innerWidth = options.innerWidth;
|
590
|
-
this.outerWidth = options.innerWidth;
|
591
|
-
}
|
592
|
-
|
593
|
-
if (options.height !== undefined) {
|
594
|
-
this.innerHeight = options.height;
|
595
|
-
this.outerHeight = options.height;
|
596
|
-
} else if (options.innerHeight !== undefined) {
|
597
|
-
this.innerHeight = options.innerHeight;
|
598
|
-
this.outerHeight = options.innerHeight;
|
599
|
-
}
|
600
|
-
|
601
|
-
if (options.url !== undefined) {
|
602
|
-
this.location.href = options.url;
|
603
|
-
}
|
604
|
-
|
605
|
-
if (options.settings) {
|
606
|
-
this.happyDOM.settings = {
|
607
|
-
...this.happyDOM.settings,
|
608
|
-
...options.settings,
|
609
|
-
navigator: {
|
610
|
-
...this.happyDOM.settings.navigator,
|
611
|
-
...options.settings.navigator
|
612
|
-
},
|
613
|
-
device: {
|
614
|
-
...this.happyDOM.settings.device,
|
615
|
-
...options.settings.device
|
616
|
-
}
|
617
|
-
};
|
618
|
-
}
|
619
|
-
}
|
620
|
-
|
621
|
-
if (options && options.console) {
|
622
|
-
this.console = options.console;
|
623
|
-
} else {
|
624
|
-
this.happyDOM.virtualConsolePrinter = new VirtualConsolePrinter();
|
625
|
-
this.console = new VirtualConsole(this.happyDOM.virtualConsolePrinter);
|
626
|
-
}
|
627
|
-
|
628
|
-
this._setTimeout = ORIGINAL_SET_TIMEOUT;
|
629
|
-
this._clearTimeout = ORIGINAL_CLEAR_TIMEOUT;
|
630
|
-
this._setInterval = ORIGINAL_SET_INTERVAL;
|
631
|
-
this._clearInterval = ORIGINAL_CLEAR_INTERVAL;
|
632
|
-
this._queueMicrotask = ORIGINAL_QUEUE_MICROTASK;
|
633
|
-
|
634
|
-
// Binds all methods to "this", so that it will use the correct context when called globally.
|
635
|
-
for (const key of Object.getOwnPropertyNames(Window.prototype).concat(
|
636
|
-
Object.getOwnPropertyNames(EventTarget.prototype)
|
637
|
-
)) {
|
638
|
-
if (
|
639
|
-
key !== 'constructor' &&
|
640
|
-
key[0] !== '_' &&
|
641
|
-
key[0] === key[0].toLowerCase() &&
|
642
|
-
typeof this[key] === 'function'
|
643
|
-
) {
|
644
|
-
this[key] = this[key].bind(this);
|
645
|
-
}
|
646
|
-
}
|
647
|
-
|
648
|
-
HTMLDocument._defaultView = this;
|
649
|
-
HTMLDocument._windowClass = Window;
|
650
|
-
|
651
|
-
const document = new HTMLDocument();
|
652
|
-
|
653
|
-
this.document = document;
|
654
|
-
|
655
|
-
// We need to set the correct owner document when the class is constructed.
|
656
|
-
// To achieve this we will extend the original implementation with a class that sets the owner document.
|
657
|
-
|
658
|
-
ResponseImplementation._ownerDocument = document;
|
659
|
-
RequestImplementation._ownerDocument = document;
|
660
|
-
ImageImplementation._ownerDocument = document;
|
661
|
-
DocumentFragmentImplementation._ownerDocument = document;
|
662
|
-
FileReaderImplementation._ownerDocument = document;
|
663
|
-
DOMParserImplementation._ownerDocument = document;
|
664
|
-
RangeImplementation._ownerDocument = document;
|
665
|
-
XMLHttpRequestImplementation._ownerDocument = document;
|
666
|
-
|
667
|
-
/* eslint-disable jsdoc/require-jsdoc */
|
668
|
-
class Response extends ResponseImplementation {
|
669
|
-
public static _ownerDocument: IDocument = document;
|
670
|
-
}
|
671
|
-
class Request extends RequestImplementation {
|
672
|
-
public static _ownerDocument: IDocument = document;
|
673
|
-
}
|
674
|
-
class Image extends ImageImplementation {
|
675
|
-
public static _ownerDocument: IDocument = document;
|
676
|
-
}
|
677
|
-
class DocumentFragment extends DocumentFragmentImplementation {
|
678
|
-
public static _ownerDocument: IDocument = document;
|
679
|
-
}
|
680
|
-
class FileReader extends FileReaderImplementation {
|
681
|
-
public static _ownerDocument: IDocument = document;
|
682
|
-
}
|
683
|
-
class DOMParser extends DOMParserImplementation {
|
684
|
-
public static _ownerDocument: IDocument = document;
|
685
|
-
}
|
686
|
-
class XMLHttpRequest extends XMLHttpRequestImplementation {
|
687
|
-
public static _ownerDocument: IDocument = document;
|
688
|
-
}
|
689
|
-
class Range extends RangeImplementation {
|
690
|
-
public static _ownerDocument: IDocument = document;
|
691
|
-
}
|
692
|
-
class Audio extends AudioImplementation {
|
693
|
-
public static _ownerDocument: IDocument = document;
|
694
|
-
}
|
695
|
-
/* eslint-enable jsdoc/require-jsdoc */
|
696
|
-
|
697
|
-
this.Response = Response;
|
698
|
-
this.Request = Request;
|
699
|
-
this.Image = Image;
|
700
|
-
this.DocumentFragment = DocumentFragment;
|
701
|
-
this.FileReader = FileReader;
|
702
|
-
this.DOMParser = DOMParser;
|
703
|
-
this.XMLHttpRequest = XMLHttpRequest;
|
704
|
-
this.Range = Range;
|
705
|
-
this.Audio = Audio;
|
706
|
-
|
707
|
-
this._setupVMContext();
|
708
|
-
|
709
|
-
this.document._onWindowReady();
|
710
|
-
}
|
711
|
-
|
712
|
-
/**
|
713
|
-
* The number of pixels that the document is currently scrolled horizontally
|
714
|
-
*
|
715
|
-
* @returns number
|
716
|
-
*/
|
717
|
-
public get scrollX(): number {
|
718
|
-
return this.document?.documentElement?.scrollLeft ?? 0;
|
719
|
-
}
|
720
|
-
|
721
|
-
/**
|
722
|
-
* The read-only Window property pageXOffset is an alias for scrollX.
|
723
|
-
*
|
724
|
-
* @returns number
|
725
|
-
*/
|
726
|
-
public get pageXOffset(): number {
|
727
|
-
return this.scrollX;
|
728
|
-
}
|
729
|
-
|
730
|
-
/**
|
731
|
-
* The number of pixels that the document is currently scrolled vertically
|
732
|
-
*
|
733
|
-
* @returns number
|
734
|
-
*/
|
735
|
-
public get scrollY(): number {
|
736
|
-
return this.document?.documentElement?.scrollTop ?? 0;
|
737
|
-
}
|
738
|
-
|
739
|
-
/**
|
740
|
-
* The read-only Window property pageYOffset is an alias for scrollY.
|
741
|
-
*
|
742
|
-
* @returns number
|
743
|
-
*/
|
744
|
-
public get pageYOffset(): number {
|
745
|
-
return this.scrollY;
|
746
|
-
}
|
747
|
-
|
748
|
-
/**
|
749
|
-
* The CSS interface holds useful CSS-related methods.
|
750
|
-
*
|
751
|
-
* @returns CSS interface.
|
752
|
-
*/
|
753
|
-
public get CSS(): CSS {
|
754
|
-
return new CSS();
|
755
|
-
}
|
756
|
-
|
757
|
-
/**
|
758
|
-
* Returns an object containing the values of all CSS properties of an element.
|
759
|
-
*
|
760
|
-
* @param element Element.
|
761
|
-
* @returns CSS style declaration.
|
762
|
-
*/
|
763
|
-
public getComputedStyle(element: IElement): CSSStyleDeclaration {
|
764
|
-
element['_computedStyle'] = element['_computedStyle'] || new CSSStyleDeclaration(element, true);
|
765
|
-
return element['_computedStyle'];
|
766
|
-
}
|
767
|
-
|
768
|
-
/**
|
769
|
-
* Returns selection.
|
770
|
-
*
|
771
|
-
* @returns Selection.
|
772
|
-
*/
|
773
|
-
public getSelection(): Selection {
|
774
|
-
return this.document.getSelection();
|
775
|
-
}
|
776
|
-
|
777
|
-
/**
|
778
|
-
* Scrolls to a particular set of coordinates.
|
779
|
-
*
|
780
|
-
* @param x X position or options object.
|
781
|
-
* @param y Y position.
|
782
|
-
*/
|
783
|
-
public scroll(x: { top?: number; left?: number; behavior?: string } | number, y?: number): void {
|
784
|
-
if (typeof x === 'object') {
|
785
|
-
if (x.behavior === 'smooth') {
|
786
|
-
this.setTimeout(() => {
|
787
|
-
if (x.top !== undefined) {
|
788
|
-
(<number>this.document.documentElement.scrollTop) = x.top;
|
789
|
-
}
|
790
|
-
if (x.left !== undefined) {
|
791
|
-
(<number>this.document.documentElement.scrollLeft) = x.left;
|
792
|
-
}
|
793
|
-
});
|
794
|
-
} else {
|
795
|
-
if (x.top !== undefined) {
|
796
|
-
(<number>this.document.documentElement.scrollTop) = x.top;
|
797
|
-
}
|
798
|
-
if (x.left !== undefined) {
|
799
|
-
(<number>this.document.documentElement.scrollLeft) = x.left;
|
800
|
-
}
|
801
|
-
}
|
802
|
-
} else if (x !== undefined && y !== undefined) {
|
803
|
-
(<number>this.document.documentElement.scrollLeft) = x;
|
804
|
-
(<number>this.document.documentElement.scrollTop) = y;
|
805
|
-
}
|
806
|
-
}
|
807
|
-
|
808
|
-
/**
|
809
|
-
* Scrolls to a particular set of coordinates.
|
810
|
-
*
|
811
|
-
* @param x X position or options object.
|
812
|
-
* @param y Y position.
|
813
|
-
*/
|
814
|
-
public scrollTo(
|
815
|
-
x: { top?: number; left?: number; behavior?: string } | number,
|
816
|
-
y?: number
|
817
|
-
): void {
|
818
|
-
this.scroll(x, y);
|
819
|
-
}
|
820
|
-
|
821
|
-
/**
|
822
|
-
* Returns a new MediaQueryList object that can then be used to determine if the document matches the media query string.
|
823
|
-
*
|
824
|
-
* @param mediaQueryString A string specifying the media query to parse into a MediaQueryList.
|
825
|
-
* @returns A new MediaQueryList.
|
826
|
-
*/
|
827
|
-
public matchMedia(mediaQueryString: string): MediaQueryList {
|
828
|
-
return new MediaQueryList({ ownerWindow: this, media: mediaQueryString });
|
829
|
-
}
|
830
|
-
|
831
|
-
/**
|
832
|
-
* Sets a timer which executes a function once the timer expires.
|
833
|
-
*
|
834
|
-
* @param callback Function to be executed.
|
835
|
-
* @param [delay=0] Delay in ms.
|
836
|
-
* @param args Arguments passed to the callback function.
|
837
|
-
* @returns Timeout ID.
|
838
|
-
*/
|
839
|
-
public setTimeout(callback: Function, delay = 0, ...args: unknown[]): NodeJS.Timeout {
|
840
|
-
const id = this._setTimeout(() => {
|
841
|
-
if (this.happyDOM.settings.disableErrorCapturing) {
|
842
|
-
callback(...args);
|
843
|
-
} else {
|
844
|
-
WindowErrorUtility.captureError(this, () => callback(...args));
|
845
|
-
}
|
846
|
-
this.happyDOM.asyncTaskManager.endTimer(id);
|
847
|
-
}, delay);
|
848
|
-
this.happyDOM.asyncTaskManager.startTimer(id);
|
849
|
-
return id;
|
850
|
-
}
|
851
|
-
|
852
|
-
/**
|
853
|
-
* Cancels a timeout previously established by calling setTimeout().
|
854
|
-
*
|
855
|
-
* @param id ID of the timeout.
|
856
|
-
*/
|
857
|
-
public clearTimeout(id: NodeJS.Timeout): void {
|
858
|
-
this._clearTimeout(id);
|
859
|
-
this.happyDOM.asyncTaskManager.endTimer(id);
|
860
|
-
}
|
861
|
-
|
862
|
-
/**
|
863
|
-
* Calls a function with a fixed time delay between each call.
|
864
|
-
*
|
865
|
-
* @param callback Function to be executed.
|
866
|
-
* @param [delay=0] Delay in ms.
|
867
|
-
* @param args Arguments passed to the callback function.
|
868
|
-
* @returns Interval ID.
|
869
|
-
*/
|
870
|
-
public setInterval(callback: Function, delay = 0, ...args: unknown[]): NodeJS.Timeout {
|
871
|
-
const id = this._setInterval(() => {
|
872
|
-
if (this.happyDOM.settings.disableErrorCapturing) {
|
873
|
-
callback(...args);
|
874
|
-
} else {
|
875
|
-
WindowErrorUtility.captureError(
|
876
|
-
this,
|
877
|
-
() => callback(...args),
|
878
|
-
() => this.clearInterval(id)
|
879
|
-
);
|
880
|
-
}
|
881
|
-
}, delay);
|
882
|
-
this.happyDOM.asyncTaskManager.startTimer(id);
|
883
|
-
return id;
|
884
|
-
}
|
885
|
-
|
886
|
-
/**
|
887
|
-
* Cancels a timed repeating action which was previously established by a call to setInterval().
|
888
|
-
*
|
889
|
-
* @param id ID of the interval.
|
890
|
-
*/
|
891
|
-
public clearInterval(id: NodeJS.Timeout): void {
|
892
|
-
this._clearInterval(id);
|
893
|
-
this.happyDOM.asyncTaskManager.endTimer(id);
|
894
|
-
}
|
895
|
-
|
896
|
-
/**
|
897
|
-
* Mock animation frames with timeouts.
|
898
|
-
*
|
899
|
-
* @param callback Callback.
|
900
|
-
* @returns ID.
|
901
|
-
*/
|
902
|
-
public requestAnimationFrame(callback: (timestamp: number) => void): NodeJS.Immediate {
|
903
|
-
const id = global.setImmediate(() => {
|
904
|
-
if (this.happyDOM.settings.disableErrorCapturing) {
|
905
|
-
callback(this.performance.now());
|
906
|
-
} else {
|
907
|
-
WindowErrorUtility.captureError(this, () => callback(this.performance.now()));
|
908
|
-
}
|
909
|
-
this.happyDOM.asyncTaskManager.endImmediate(id);
|
29
|
+
constructor(options?: {
|
30
|
+
width?: number;
|
31
|
+
height?: number;
|
32
|
+
/** @deprecated Replaced by the "width" property. */
|
33
|
+
innerWidth?: number;
|
34
|
+
/** @deprecated Replaced by the "height" property. */
|
35
|
+
innerHeight?: number;
|
36
|
+
url?: string;
|
37
|
+
console?: Console;
|
38
|
+
settings?: IOptionalBrowserSettings;
|
39
|
+
}) {
|
40
|
+
const browser = new DetachedBrowser(BrowserWindow, {
|
41
|
+
console: options?.console,
|
42
|
+
settings: options?.settings
|
910
43
|
});
|
911
|
-
|
912
|
-
return id;
|
913
|
-
}
|
914
|
-
|
915
|
-
/**
|
916
|
-
* Mock animation frames with timeouts.
|
917
|
-
*
|
918
|
-
* @param id ID.
|
919
|
-
*/
|
920
|
-
public cancelAnimationFrame(id: NodeJS.Immediate): void {
|
921
|
-
global.clearImmediate(id);
|
922
|
-
this.happyDOM.asyncTaskManager.endImmediate(id);
|
923
|
-
}
|
44
|
+
const browserFrame = browser.defaultContext.pages[0].mainFrame;
|
924
45
|
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
*/
|
930
|
-
public queueMicrotask(callback: Function): void {
|
931
|
-
let isAborted = false;
|
932
|
-
const taskId = this.happyDOM.asyncTaskManager.startTask(() => (isAborted = true));
|
933
|
-
this._queueMicrotask(() => {
|
934
|
-
if (!isAborted) {
|
935
|
-
if (this.happyDOM.settings.disableErrorCapturing) {
|
936
|
-
callback();
|
937
|
-
} else {
|
938
|
-
WindowErrorUtility.captureError(this, <() => unknown>callback);
|
939
|
-
}
|
940
|
-
this.happyDOM.asyncTaskManager.endTask(taskId);
|
941
|
-
}
|
46
|
+
super(browserFrame, {
|
47
|
+
url: options?.url,
|
48
|
+
width: options?.width ?? options?.innerWidth,
|
49
|
+
height: options?.height ?? options?.innerHeight
|
942
50
|
});
|
943
|
-
}
|
944
51
|
|
945
|
-
|
946
|
-
* This method provides an easy, logical way to fetch resources asynchronously across the network.
|
947
|
-
*
|
948
|
-
* @param url URL.
|
949
|
-
* @param [init] Init.
|
950
|
-
* @returns Promise.
|
951
|
-
*/
|
952
|
-
public async fetch(url: RequestInfo, init?: IRequestInit): Promise<IResponse> {
|
953
|
-
return await new Fetch({ ownerDocument: this.document, url, init }).send();
|
954
|
-
}
|
955
|
-
|
956
|
-
/**
|
957
|
-
* Creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data).
|
958
|
-
*
|
959
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/btoa
|
960
|
-
* @param data Binay data.
|
961
|
-
* @returns Base64-encoded string.
|
962
|
-
*/
|
963
|
-
public btoa(data: unknown): string {
|
964
|
-
return Base64.btoa(data);
|
965
|
-
}
|
966
|
-
|
967
|
-
/**
|
968
|
-
* Decodes a string of data which has been encoded using Base64 encoding.
|
969
|
-
*
|
970
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/atob
|
971
|
-
* @see https://infra.spec.whatwg.org/#forgiving-base64-encode.
|
972
|
-
* @see Https://html.spec.whatwg.org/multipage/webappapis.html#btoa.
|
973
|
-
* @param data Binay string.
|
974
|
-
* @returns An ASCII string containing decoded data from encodedData.
|
975
|
-
*/
|
976
|
-
public atob(data: unknown): string {
|
977
|
-
return Base64.atob(data);
|
978
|
-
}
|
979
|
-
|
980
|
-
/**
|
981
|
-
* Safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
|
982
|
-
*
|
983
|
-
* @param message Message.
|
984
|
-
* @param [targetOrigin=*] Target origin.
|
985
|
-
* @param _transfer Transfer. Not implemented.
|
986
|
-
*/
|
987
|
-
public postMessage(message: unknown, targetOrigin = '*', _transfer?: unknown[]): void {
|
988
|
-
// TODO: Implement transfer.
|
989
|
-
|
990
|
-
if (targetOrigin && targetOrigin !== '*' && this.location.origin !== targetOrigin) {
|
991
|
-
throw new DOMException(
|
992
|
-
`Failed to execute 'postMessage' on 'Window': The target origin provided ('${targetOrigin}') does not match the recipient window\'s origin ('${this.location.origin}').`,
|
993
|
-
DOMExceptionNameEnum.securityError
|
994
|
-
);
|
995
|
-
}
|
996
|
-
|
997
|
-
try {
|
998
|
-
JSON.stringify(message);
|
999
|
-
} catch (error) {
|
1000
|
-
throw new DOMException(
|
1001
|
-
`Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.`,
|
1002
|
-
DOMExceptionNameEnum.invalidStateError
|
1003
|
-
);
|
1004
|
-
}
|
1005
|
-
|
1006
|
-
this.window.setTimeout(() =>
|
1007
|
-
this.dispatchEvent(
|
1008
|
-
new MessageEvent('message', {
|
1009
|
-
data: message,
|
1010
|
-
origin: this.parent.location.origin,
|
1011
|
-
source: this.parent,
|
1012
|
-
lastEventId: ''
|
1013
|
-
})
|
1014
|
-
)
|
1015
|
-
);
|
1016
|
-
}
|
1017
|
-
|
1018
|
-
/**
|
1019
|
-
* Setup of VM context.
|
1020
|
-
*/
|
1021
|
-
protected _setupVMContext(): void {
|
1022
|
-
if (!VM.isContext(this)) {
|
1023
|
-
VM.createContext(this);
|
52
|
+
browserFrame.window = this;
|
1024
53
|
|
1025
|
-
|
1026
|
-
// Otherwise "this.Array" will be undefined for example.
|
1027
|
-
VMGlobalPropertyScript.runInContext(this);
|
1028
|
-
}
|
54
|
+
this.happyDOM = new DetachedWindowAPI(browserFrame);
|
1029
55
|
}
|
1030
56
|
}
|