happy-dom 12.10.3 → 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/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/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/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
@@ -0,0 +1,933 @@
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
6
|
+
};
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
11
|
+
};
|
12
|
+
var _BrowserWindow_setTimeout, _BrowserWindow_clearTimeout, _BrowserWindow_setInterval, _BrowserWindow_clearInterval, _BrowserWindow_queueMicrotask, _BrowserWindow_browserFrame, _a, _b, _c;
|
13
|
+
import CustomElementRegistry from '../custom-element/CustomElementRegistry.js';
|
14
|
+
import * as PropertySymbol from '../PropertySymbol.js';
|
15
|
+
import DocumentImplementation from '../nodes/document/Document.js';
|
16
|
+
import HTMLDocumentImplementation from '../nodes/html-document/HTMLDocument.js';
|
17
|
+
import XMLDocumentImplementation from '../nodes/xml-document/XMLDocument.js';
|
18
|
+
import SVGDocumentImplementation from '../nodes/svg-document/SVGDocument.js';
|
19
|
+
import Node from '../nodes/node/Node.js';
|
20
|
+
import NodeFilter from '../tree-walker/NodeFilter.js';
|
21
|
+
import Text from '../nodes/text/Text.js';
|
22
|
+
import Comment from '../nodes/comment/Comment.js';
|
23
|
+
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.js';
|
24
|
+
import Element from '../nodes/element/Element.js';
|
25
|
+
import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement.js';
|
26
|
+
import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement.js';
|
27
|
+
import HTMLElement from '../nodes/html-element/HTMLElement.js';
|
28
|
+
import HTMLUnknownElement from '../nodes/html-unknown-element/HTMLUnknownElement.js';
|
29
|
+
import HTMLInputElement from '../nodes/html-input-element/HTMLInputElement.js';
|
30
|
+
import HTMLSelectElement from '../nodes/html-select-element/HTMLSelectElement.js';
|
31
|
+
import HTMLTextAreaElement from '../nodes/html-text-area-element/HTMLTextAreaElement.js';
|
32
|
+
import HTMLLinkElementImplementation from '../nodes/html-link-element/HTMLLinkElement.js';
|
33
|
+
import HTMLStyleElement from '../nodes/html-style-element/HTMLStyleElement.js';
|
34
|
+
import HTMLSlotElement from '../nodes/html-slot-element/HTMLSlotElement.js';
|
35
|
+
import HTMLLabelElement from '../nodes/html-label-element/HTMLLabelElement.js';
|
36
|
+
import HTMLMetaElement from '../nodes/html-meta-element/HTMLMetaElement.js';
|
37
|
+
import HTMLMediaElement from '../nodes/html-media-element/HTMLMediaElement.js';
|
38
|
+
import HTMLAudioElement from '../nodes/html-audio-element/HTMLAudioElement.js';
|
39
|
+
import HTMLVideoElement from '../nodes/html-video-element/HTMLVideoElement.js';
|
40
|
+
import HTMLBaseElement from '../nodes/html-base-element/HTMLBaseElement.js';
|
41
|
+
import HTMLIFrameElementImplementation from '../nodes/html-iframe-element/HTMLIFrameElement.js';
|
42
|
+
import HTMLDialogElement from '../nodes/html-dialog-element/HTMLDialogElement.js';
|
43
|
+
import SVGSVGElement from '../nodes/svg-element/SVGSVGElement.js';
|
44
|
+
import SVGElement from '../nodes/svg-element/SVGElement.js';
|
45
|
+
import SVGGraphicsElement from '../nodes/svg-element/SVGGraphicsElement.js';
|
46
|
+
import HTMLScriptElementImplementation from '../nodes/html-script-element/HTMLScriptElement.js';
|
47
|
+
import HTMLImageElement from '../nodes/html-image-element/HTMLImageElement.js';
|
48
|
+
import CharacterData from '../nodes/character-data/CharacterData.js';
|
49
|
+
import DocumentType from '../nodes/document-type/DocumentType.js';
|
50
|
+
import NodeIterator from '../tree-walker/NodeIterator.js';
|
51
|
+
import TreeWalker from '../tree-walker/TreeWalker.js';
|
52
|
+
import Event from '../event/Event.js';
|
53
|
+
import CustomEvent from '../event/events/CustomEvent.js';
|
54
|
+
import AnimationEvent from '../event/events/AnimationEvent.js';
|
55
|
+
import KeyboardEvent from '../event/events/KeyboardEvent.js';
|
56
|
+
import MessageEvent from '../event/events/MessageEvent.js';
|
57
|
+
import ProgressEvent from '../event/events/ProgressEvent.js';
|
58
|
+
import MediaQueryListEvent from '../event/events/MediaQueryListEvent.js';
|
59
|
+
import EventTarget from '../event/EventTarget.js';
|
60
|
+
import MessagePort from '../event/MessagePort.js';
|
61
|
+
import { URLSearchParams } from 'url';
|
62
|
+
import URL from '../url/URL.js';
|
63
|
+
import Location from '../location/Location.js';
|
64
|
+
import MutationObserver from '../mutation-observer/MutationObserver.js';
|
65
|
+
import MutationRecord from '../mutation-observer/MutationRecord.js';
|
66
|
+
import XMLSerializer from '../xml-serializer/XMLSerializer.js';
|
67
|
+
import ResizeObserver from '../resize-observer/ResizeObserver.js';
|
68
|
+
import Blob from '../file/Blob.js';
|
69
|
+
import File from '../file/File.js';
|
70
|
+
import DOMException from '../exception/DOMException.js';
|
71
|
+
import History from '../history/History.js';
|
72
|
+
import CSSStyleSheet from '../css/CSSStyleSheet.js';
|
73
|
+
import CSSStyleDeclaration from '../css/declaration/CSSStyleDeclaration.js';
|
74
|
+
import CSS from '../css/CSS.js';
|
75
|
+
import CSSUnitValue from '../css/CSSUnitValue.js';
|
76
|
+
import CSSRule from '../css/CSSRule.js';
|
77
|
+
import CSSContainerRule from '../css/rules/CSSContainerRule.js';
|
78
|
+
import CSSFontFaceRule from '../css/rules/CSSFontFaceRule.js';
|
79
|
+
import CSSKeyframeRule from '../css/rules/CSSKeyframeRule.js';
|
80
|
+
import CSSKeyframesRule from '../css/rules/CSSKeyframesRule.js';
|
81
|
+
import CSSMediaRule from '../css/rules/CSSMediaRule.js';
|
82
|
+
import CSSStyleRule from '../css/rules/CSSStyleRule.js';
|
83
|
+
import CSSSupportsRule from '../css/rules/CSSSupportsRule.js';
|
84
|
+
import MouseEvent from '../event/events/MouseEvent.js';
|
85
|
+
import PointerEvent from '../event/events/PointerEvent.js';
|
86
|
+
import FocusEvent from '../event/events/FocusEvent.js';
|
87
|
+
import WheelEvent from '../event/events/WheelEvent.js';
|
88
|
+
import DataTransfer from '../event/DataTransfer.js';
|
89
|
+
import DataTransferItem from '../event/DataTransferItem.js';
|
90
|
+
import DataTransferItemList from '../event/DataTransferItemList.js';
|
91
|
+
import InputEvent from '../event/events/InputEvent.js';
|
92
|
+
import UIEvent from '../event/UIEvent.js';
|
93
|
+
import ErrorEvent from '../event/events/ErrorEvent.js';
|
94
|
+
import StorageEvent from '../event/events/StorageEvent.js';
|
95
|
+
import SubmitEvent from '../event/events/SubmitEvent.js';
|
96
|
+
import Screen from '../screen/Screen.js';
|
97
|
+
import Storage from '../storage/Storage.js';
|
98
|
+
import HTMLCollection from '../nodes/element/HTMLCollection.js';
|
99
|
+
import HTMLFormControlsCollection from '../nodes/html-form-element/HTMLFormControlsCollection.js';
|
100
|
+
import NodeList from '../nodes/node/NodeList.js';
|
101
|
+
import MediaQueryList from '../match-media/MediaQueryList.js';
|
102
|
+
import Selection from '../selection/Selection.js';
|
103
|
+
import Navigator from '../navigator/Navigator.js';
|
104
|
+
import MimeType from '../navigator/MimeType.js';
|
105
|
+
import MimeTypeArray from '../navigator/MimeTypeArray.js';
|
106
|
+
import Plugin from '../navigator/Plugin.js';
|
107
|
+
import PluginArray from '../navigator/PluginArray.js';
|
108
|
+
import Fetch from '../fetch/Fetch.js';
|
109
|
+
import DOMRect from '../nodes/element/DOMRect.js';
|
110
|
+
import VMGlobalPropertyScript from './VMGlobalPropertyScript.js';
|
111
|
+
import * as PerfHooks from 'perf_hooks';
|
112
|
+
import VM from 'vm';
|
113
|
+
import { Buffer } from 'buffer';
|
114
|
+
import { webcrypto } from 'crypto';
|
115
|
+
import XMLHttpRequestUpload from '../xml-http-request/XMLHttpRequestUpload.js';
|
116
|
+
import XMLHttpRequestEventTarget from '../xml-http-request/XMLHttpRequestEventTarget.js';
|
117
|
+
import Base64 from '../base64/Base64.js';
|
118
|
+
import Attr from '../nodes/attr/Attr.js';
|
119
|
+
import NamedNodeMap from '../named-node-map/NamedNodeMap.js';
|
120
|
+
import ProcessingInstruction from '../nodes/processing-instruction/ProcessingInstruction.js';
|
121
|
+
import FileList from '../nodes/html-input-element/FileList.js';
|
122
|
+
import Stream from 'stream';
|
123
|
+
import FormData from '../form-data/FormData.js';
|
124
|
+
import AbortController from '../fetch/AbortController.js';
|
125
|
+
import AbortSignal from '../fetch/AbortSignal.js';
|
126
|
+
import DOMExceptionNameEnum from '../exception/DOMExceptionNameEnum.js';
|
127
|
+
import RadioNodeList from '../nodes/html-form-element/RadioNodeList.js';
|
128
|
+
import ValidityState from '../validity-state/ValidityState.js';
|
129
|
+
import WindowErrorUtility from './WindowErrorUtility.js';
|
130
|
+
import Permissions from '../permissions/Permissions.js';
|
131
|
+
import PermissionStatus from '../permissions/PermissionStatus.js';
|
132
|
+
import Clipboard from '../clipboard/Clipboard.js';
|
133
|
+
import ClipboardItem from '../clipboard/ClipboardItem.js';
|
134
|
+
import ClipboardEvent from '../event/events/ClipboardEvent.js';
|
135
|
+
import Headers from '../fetch/Headers.js';
|
136
|
+
import XMLHttpRequestImplementation from '../xml-http-request/XMLHttpRequest.js';
|
137
|
+
import WindowBrowserSettingsReader from './WindowBrowserSettingsReader.js';
|
138
|
+
import DocumentReadyStateManager from '../nodes/document/DocumentReadyStateManager.js';
|
139
|
+
import DocumentReadyStateEnum from '../nodes/document/DocumentReadyStateEnum.js';
|
140
|
+
import HTMLAnchorElement from '../nodes/html-anchor-element/HTMLAnchorElement.js';
|
141
|
+
import HTMLButtonElement from '../nodes/html-button-element/HTMLButtonElement.js';
|
142
|
+
import HTMLOptionElement from '../nodes/html-option-element/HTMLOptionElement.js';
|
143
|
+
import HTMLOptGroupElement from '../nodes/html-opt-group-element/HTMLOptGroupElement.js';
|
144
|
+
import WindowPageOpenUtility from './WindowPageOpenUtility.js';
|
145
|
+
import BrowserErrorCaptureEnum from '../browser/enums/BrowserErrorCaptureEnum.js';
|
146
|
+
import AudioImplementation from '../nodes/html-audio-element/Audio.js';
|
147
|
+
import ImageImplementation from '../nodes/html-image-element/Image.js';
|
148
|
+
import DocumentFragmentImplementation from '../nodes/document-fragment/DocumentFragment.js';
|
149
|
+
import DOMParserImplementation from '../dom-parser/DOMParser.js';
|
150
|
+
import FileReaderImplementation from '../file/FileReader.js';
|
151
|
+
import RequestImplementation from '../fetch/Request.js';
|
152
|
+
import ResponseImplementation from '../fetch/Response.js';
|
153
|
+
import RangeImplementation from '../range/Range.js';
|
154
|
+
const ORIGINAL_SET_TIMEOUT = setTimeout;
|
155
|
+
const ORIGINAL_CLEAR_TIMEOUT = clearTimeout;
|
156
|
+
const ORIGINAL_SET_INTERVAL = setInterval;
|
157
|
+
const ORIGINAL_CLEAR_INTERVAL = clearInterval;
|
158
|
+
const ORIGINAL_QUEUE_MICROTASK = queueMicrotask;
|
159
|
+
/**
|
160
|
+
* Browser window.
|
161
|
+
*
|
162
|
+
* Reference:
|
163
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Window.
|
164
|
+
*/
|
165
|
+
export default class BrowserWindow extends EventTarget {
|
166
|
+
/**
|
167
|
+
* Constructor.
|
168
|
+
*
|
169
|
+
* @param browserFrame Browser frame.
|
170
|
+
* @param [options] Options.
|
171
|
+
* @param [options.url] URL.
|
172
|
+
* @param [options.width] Window width. Defaults to "1024".
|
173
|
+
* @param [options.height] Window height. Defaults to "768".
|
174
|
+
*/
|
175
|
+
constructor(browserFrame, options) {
|
176
|
+
var _d;
|
177
|
+
super();
|
178
|
+
// Nodes
|
179
|
+
this.Node = Node;
|
180
|
+
this.Attr = Attr;
|
181
|
+
this.SVGSVGElement = SVGSVGElement;
|
182
|
+
this.SVGElement = SVGElement;
|
183
|
+
this.SVGGraphicsElement = SVGGraphicsElement;
|
184
|
+
this.Text = Text;
|
185
|
+
this.Comment = Comment;
|
186
|
+
this.ShadowRoot = ShadowRoot;
|
187
|
+
this.ProcessingInstruction = ProcessingInstruction;
|
188
|
+
this.Element = Element;
|
189
|
+
this.CharacterData = CharacterData;
|
190
|
+
this.DocumentType = DocumentType;
|
191
|
+
// Element classes
|
192
|
+
this.HTMLAnchorElement = HTMLAnchorElement;
|
193
|
+
this.HTMLButtonElement = HTMLButtonElement;
|
194
|
+
this.HTMLOptGroupElement = HTMLOptGroupElement;
|
195
|
+
this.HTMLOptionElement = HTMLOptionElement;
|
196
|
+
this.HTMLElement = HTMLElement;
|
197
|
+
this.HTMLUnknownElement = HTMLUnknownElement;
|
198
|
+
this.HTMLTemplateElement = HTMLTemplateElement;
|
199
|
+
this.HTMLFormElement = HTMLFormElement;
|
200
|
+
this.HTMLInputElement = HTMLInputElement;
|
201
|
+
this.HTMLSelectElement = HTMLSelectElement;
|
202
|
+
this.HTMLTextAreaElement = HTMLTextAreaElement;
|
203
|
+
this.HTMLImageElement = HTMLImageElement;
|
204
|
+
this.HTMLStyleElement = HTMLStyleElement;
|
205
|
+
this.HTMLLabelElement = HTMLLabelElement;
|
206
|
+
this.HTMLSlotElement = HTMLSlotElement;
|
207
|
+
this.HTMLMetaElement = HTMLMetaElement;
|
208
|
+
this.HTMLMediaElement = HTMLMediaElement;
|
209
|
+
this.HTMLAudioElement = HTMLAudioElement;
|
210
|
+
this.HTMLVideoElement = HTMLVideoElement;
|
211
|
+
this.HTMLBaseElement = HTMLBaseElement;
|
212
|
+
this.HTMLDialogElement = HTMLDialogElement;
|
213
|
+
// Non-implemented element classes
|
214
|
+
this.HTMLHeadElement = HTMLElement;
|
215
|
+
this.HTMLTitleElement = HTMLElement;
|
216
|
+
this.HTMLBodyElement = HTMLElement;
|
217
|
+
this.HTMLHeadingElement = HTMLElement;
|
218
|
+
this.HTMLParagraphElement = HTMLElement;
|
219
|
+
this.HTMLHRElement = HTMLElement;
|
220
|
+
this.HTMLPreElement = HTMLElement;
|
221
|
+
this.HTMLUListElement = HTMLElement;
|
222
|
+
this.HTMLOListElement = HTMLElement;
|
223
|
+
this.HTMLLIElement = HTMLElement;
|
224
|
+
this.HTMLMenuElement = HTMLElement;
|
225
|
+
this.HTMLDListElement = HTMLElement;
|
226
|
+
this.HTMLDivElement = HTMLElement;
|
227
|
+
this.HTMLAreaElement = HTMLElement;
|
228
|
+
this.HTMLBRElement = HTMLElement;
|
229
|
+
this.HTMLCanvasElement = HTMLElement;
|
230
|
+
this.HTMLDataElement = HTMLElement;
|
231
|
+
this.HTMLDataListElement = HTMLElement;
|
232
|
+
this.HTMLDetailsElement = HTMLElement;
|
233
|
+
this.HTMLDirectoryElement = HTMLElement;
|
234
|
+
this.HTMLFieldSetElement = HTMLElement;
|
235
|
+
this.HTMLFontElement = HTMLElement;
|
236
|
+
this.HTMLHtmlElement = HTMLElement;
|
237
|
+
this.HTMLLegendElement = HTMLElement;
|
238
|
+
this.HTMLMapElement = HTMLElement;
|
239
|
+
this.HTMLMarqueeElement = HTMLElement;
|
240
|
+
this.HTMLMeterElement = HTMLElement;
|
241
|
+
this.HTMLModElement = HTMLElement;
|
242
|
+
this.HTMLOutputElement = HTMLElement;
|
243
|
+
this.HTMLPictureElement = HTMLElement;
|
244
|
+
this.HTMLProgressElement = HTMLElement;
|
245
|
+
this.HTMLQuoteElement = HTMLElement;
|
246
|
+
this.HTMLSourceElement = HTMLElement;
|
247
|
+
this.HTMLSpanElement = HTMLElement;
|
248
|
+
this.HTMLTableCaptionElement = HTMLElement;
|
249
|
+
this.HTMLTableCellElement = HTMLElement;
|
250
|
+
this.HTMLTableColElement = HTMLElement;
|
251
|
+
this.HTMLTableElement = HTMLElement;
|
252
|
+
this.HTMLTimeElement = HTMLElement;
|
253
|
+
this.HTMLTableRowElement = HTMLElement;
|
254
|
+
this.HTMLTableSectionElement = HTMLElement;
|
255
|
+
this.HTMLFrameElement = HTMLElement;
|
256
|
+
this.HTMLFrameSetElement = HTMLElement;
|
257
|
+
this.HTMLEmbedElement = HTMLElement;
|
258
|
+
this.HTMLObjectElement = HTMLElement;
|
259
|
+
this.HTMLParamElement = HTMLElement;
|
260
|
+
this.HTMLTrackElement = HTMLElement;
|
261
|
+
// Events classes
|
262
|
+
this.Event = Event;
|
263
|
+
this.UIEvent = UIEvent;
|
264
|
+
this.CustomEvent = CustomEvent;
|
265
|
+
this.AnimationEvent = AnimationEvent;
|
266
|
+
this.KeyboardEvent = KeyboardEvent;
|
267
|
+
this.MessageEvent = MessageEvent;
|
268
|
+
this.MouseEvent = MouseEvent;
|
269
|
+
this.PointerEvent = PointerEvent;
|
270
|
+
this.FocusEvent = FocusEvent;
|
271
|
+
this.WheelEvent = WheelEvent;
|
272
|
+
this.InputEvent = InputEvent;
|
273
|
+
this.ErrorEvent = ErrorEvent;
|
274
|
+
this.StorageEvent = StorageEvent;
|
275
|
+
this.SubmitEvent = SubmitEvent;
|
276
|
+
this.ProgressEvent = ProgressEvent;
|
277
|
+
this.MediaQueryListEvent = MediaQueryListEvent;
|
278
|
+
this.ClipboardEvent = ClipboardEvent;
|
279
|
+
// Non-implemented event classes
|
280
|
+
this.AudioProcessingEvent = Event;
|
281
|
+
this.BeforeInputEvent = Event;
|
282
|
+
this.BeforeUnloadEvent = Event;
|
283
|
+
this.BlobEvent = Event;
|
284
|
+
this.CloseEvent = Event;
|
285
|
+
this.CompositionEvent = Event;
|
286
|
+
this.CSSFontFaceLoadEvent = Event;
|
287
|
+
this.DeviceLightEvent = Event;
|
288
|
+
this.DeviceMotionEvent = Event;
|
289
|
+
this.DeviceOrientationEvent = Event;
|
290
|
+
this.DeviceProximityEvent = Event;
|
291
|
+
this.DOMTransactionEvent = Event;
|
292
|
+
this.DragEvent = Event;
|
293
|
+
this.EditingBeforeInputEvent = Event;
|
294
|
+
this.FetchEvent = Event;
|
295
|
+
this.GamepadEvent = Event;
|
296
|
+
this.HashChangeEvent = Event;
|
297
|
+
this.IDBVersionChangeEvent = Event;
|
298
|
+
this.MediaStreamEvent = Event;
|
299
|
+
this.MutationEvent = Event;
|
300
|
+
this.OfflineAudioCompletionEvent = Event;
|
301
|
+
this.OverconstrainedError = Event;
|
302
|
+
this.PageTransitionEvent = Event;
|
303
|
+
this.PaymentRequestUpdateEvent = Event;
|
304
|
+
this.PopStateEvent = Event;
|
305
|
+
this.RelatedEvent = Event;
|
306
|
+
this.RTCDataChannelEvent = Event;
|
307
|
+
this.RTCIdentityErrorEvent = Event;
|
308
|
+
this.RTCIdentityEvent = Event;
|
309
|
+
this.RTCPeerConnectionIceEvent = Event;
|
310
|
+
this.SensorEvent = Event;
|
311
|
+
this.SVGEvent = Event;
|
312
|
+
this.SVGZoomEvent = Event;
|
313
|
+
this.TimeEvent = Event;
|
314
|
+
this.TouchEvent = Event;
|
315
|
+
this.TrackEvent = Event;
|
316
|
+
this.TransitionEvent = Event;
|
317
|
+
this.UserProximityEvent = Event;
|
318
|
+
this.WebGLContextEvent = Event;
|
319
|
+
this.TextEvent = Event;
|
320
|
+
// Other classes
|
321
|
+
this.NamedNodeMap = NamedNodeMap;
|
322
|
+
this.NodeFilter = NodeFilter;
|
323
|
+
this.NodeIterator = NodeIterator;
|
324
|
+
this.TreeWalker = TreeWalker;
|
325
|
+
this.MutationObserver = MutationObserver;
|
326
|
+
this.MutationRecord = MutationRecord;
|
327
|
+
this.CSSStyleDeclaration = CSSStyleDeclaration;
|
328
|
+
this.EventTarget = EventTarget;
|
329
|
+
this.MessagePort = MessagePort;
|
330
|
+
this.DataTransfer = DataTransfer;
|
331
|
+
this.DataTransferItem = DataTransferItem;
|
332
|
+
this.DataTransferItemList = DataTransferItemList;
|
333
|
+
this.URL = URL;
|
334
|
+
this.Location = Location;
|
335
|
+
this.CustomElementRegistry = CustomElementRegistry;
|
336
|
+
this.Window = this.constructor;
|
337
|
+
this.XMLSerializer = XMLSerializer;
|
338
|
+
this.ResizeObserver = ResizeObserver;
|
339
|
+
this.CSSStyleSheet = CSSStyleSheet;
|
340
|
+
this.Blob = Blob;
|
341
|
+
this.File = File;
|
342
|
+
this.DOMException = DOMException;
|
343
|
+
this.History = History;
|
344
|
+
this.Screen = Screen;
|
345
|
+
this.Storage = Storage;
|
346
|
+
this.URLSearchParams = URLSearchParams;
|
347
|
+
this.HTMLCollection = HTMLCollection;
|
348
|
+
this.HTMLFormControlsCollection = HTMLFormControlsCollection;
|
349
|
+
this.NodeList = NodeList;
|
350
|
+
this.CSSUnitValue = CSSUnitValue;
|
351
|
+
this.CSSRule = CSSRule;
|
352
|
+
this.CSSContainerRule = CSSContainerRule;
|
353
|
+
this.CSSFontFaceRule = CSSFontFaceRule;
|
354
|
+
this.CSSKeyframeRule = CSSKeyframeRule;
|
355
|
+
this.CSSKeyframesRule = CSSKeyframesRule;
|
356
|
+
this.CSSMediaRule = CSSMediaRule;
|
357
|
+
this.CSSStyleRule = CSSStyleRule;
|
358
|
+
this.CSSSupportsRule = CSSSupportsRule;
|
359
|
+
this.Selection = Selection;
|
360
|
+
this.Navigator = Navigator;
|
361
|
+
this.MimeType = MimeType;
|
362
|
+
this.MimeTypeArray = MimeTypeArray;
|
363
|
+
this.Plugin = Plugin;
|
364
|
+
this.PluginArray = PluginArray;
|
365
|
+
this.FileList = FileList;
|
366
|
+
this.DOMRect = DOMRect;
|
367
|
+
this.RadioNodeList = RadioNodeList;
|
368
|
+
this.ValidityState = ValidityState;
|
369
|
+
this.Headers = Headers;
|
370
|
+
this.XMLHttpRequestUpload = XMLHttpRequestUpload;
|
371
|
+
this.XMLHttpRequestEventTarget = XMLHttpRequestEventTarget;
|
372
|
+
this.ReadableStream = Stream.Readable;
|
373
|
+
this.WritableStream = Stream.Writable;
|
374
|
+
this.TransformStream = Stream.Transform;
|
375
|
+
this.AbortController = AbortController;
|
376
|
+
this.AbortSignal = AbortSignal;
|
377
|
+
this.FormData = FormData;
|
378
|
+
this.Permissions = Permissions;
|
379
|
+
this.PermissionStatus = PermissionStatus;
|
380
|
+
this.Clipboard = Clipboard;
|
381
|
+
this.ClipboardItem = ClipboardItem;
|
382
|
+
// Events
|
383
|
+
this.onload = null;
|
384
|
+
this.onerror = null;
|
385
|
+
this.opener = null;
|
386
|
+
this.self = this;
|
387
|
+
this.top = this;
|
388
|
+
this.parent = this;
|
389
|
+
this.window = this;
|
390
|
+
this.globalThis = this;
|
391
|
+
this.devicePixelRatio = 1;
|
392
|
+
this.performance = PerfHooks.performance;
|
393
|
+
this.innerWidth = 1024;
|
394
|
+
this.innerHeight = 768;
|
395
|
+
this.outerWidth = 1024;
|
396
|
+
this.outerHeight = 768;
|
397
|
+
this.screenLeft = 0;
|
398
|
+
this.screenTop = 0;
|
399
|
+
this.screenX = 0;
|
400
|
+
this.screenY = 0;
|
401
|
+
this.crypto = webcrypto;
|
402
|
+
this.closed = false;
|
403
|
+
this.name = '';
|
404
|
+
this.Buffer = Buffer;
|
405
|
+
// Public internal properties
|
406
|
+
// Used for tracking capture event listeners to improve performance when they are not used.
|
407
|
+
// See EventTarget class.
|
408
|
+
this[_a] = {};
|
409
|
+
this[_b] = [];
|
410
|
+
this[_c] = new DocumentReadyStateManager(this);
|
411
|
+
// Private properties
|
412
|
+
_BrowserWindow_setTimeout.set(this, void 0);
|
413
|
+
_BrowserWindow_clearTimeout.set(this, void 0);
|
414
|
+
_BrowserWindow_setInterval.set(this, void 0);
|
415
|
+
_BrowserWindow_clearInterval.set(this, void 0);
|
416
|
+
_BrowserWindow_queueMicrotask.set(this, void 0);
|
417
|
+
_BrowserWindow_browserFrame.set(this, void 0);
|
418
|
+
__classPrivateFieldSet(this, _BrowserWindow_browserFrame, browserFrame, "f");
|
419
|
+
__classPrivateFieldSet(this, _BrowserWindow_setTimeout, ORIGINAL_SET_TIMEOUT, "f");
|
420
|
+
__classPrivateFieldSet(this, _BrowserWindow_clearTimeout, ORIGINAL_CLEAR_TIMEOUT, "f");
|
421
|
+
__classPrivateFieldSet(this, _BrowserWindow_setInterval, ORIGINAL_SET_INTERVAL, "f");
|
422
|
+
__classPrivateFieldSet(this, _BrowserWindow_clearInterval, ORIGINAL_CLEAR_INTERVAL, "f");
|
423
|
+
__classPrivateFieldSet(this, _BrowserWindow_queueMicrotask, ORIGINAL_QUEUE_MICROTASK, "f");
|
424
|
+
this.customElements = new CustomElementRegistry();
|
425
|
+
this.navigator = new Navigator(this);
|
426
|
+
this.history = new History();
|
427
|
+
this.screen = new Screen();
|
428
|
+
this.sessionStorage = new Storage();
|
429
|
+
this.localStorage = new Storage();
|
430
|
+
this.location = new Location(__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f"), options?.url ?? 'about:blank');
|
431
|
+
this.console = browserFrame.page.console;
|
432
|
+
WindowBrowserSettingsReader.setSettings(this, __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page.context.browser.settings);
|
433
|
+
if (options) {
|
434
|
+
if (options.width !== undefined) {
|
435
|
+
if (options.width !== undefined && this.innerWidth !== options.width) {
|
436
|
+
this.innerWidth = options.width;
|
437
|
+
this.outerWidth = options.width;
|
438
|
+
}
|
439
|
+
}
|
440
|
+
if (options.height !== undefined && this.innerHeight !== options.height) {
|
441
|
+
this.innerHeight = options.height;
|
442
|
+
this.outerHeight = options.height;
|
443
|
+
}
|
444
|
+
}
|
445
|
+
// Binds all methods to "this", so that it will use the correct context when called globally.
|
446
|
+
for (const key of Object.getOwnPropertyNames(BrowserWindow.prototype).concat(Object.getOwnPropertyNames(EventTarget.prototype))) {
|
447
|
+
if (key !== 'constructor' &&
|
448
|
+
key[0] !== '_' &&
|
449
|
+
key[0] === key[0].toLowerCase() &&
|
450
|
+
typeof this[key] === 'function' &&
|
451
|
+
!this[key].toString().startsWith('class ')) {
|
452
|
+
this[key] = this[key].bind(this);
|
453
|
+
}
|
454
|
+
}
|
455
|
+
const window = this;
|
456
|
+
const asyncTaskManager = __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager];
|
457
|
+
this[PropertySymbol.setupVMContext]();
|
458
|
+
// Class overrides
|
459
|
+
// For classes that need to be bound to the correct context.
|
460
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
461
|
+
class Request extends RequestImplementation {
|
462
|
+
constructor(input, init) {
|
463
|
+
super({ window, asyncTaskManager }, input, init);
|
464
|
+
}
|
465
|
+
}
|
466
|
+
class Response extends ResponseImplementation {
|
467
|
+
constructor(body, init) {
|
468
|
+
super({ window, browserFrame }, body, init);
|
469
|
+
}
|
470
|
+
}
|
471
|
+
_d = PropertySymbol.window;
|
472
|
+
Response[_d] = window;
|
473
|
+
class XMLHttpRequest extends XMLHttpRequestImplementation {
|
474
|
+
constructor() {
|
475
|
+
super({ window, browserFrame });
|
476
|
+
}
|
477
|
+
}
|
478
|
+
class FileReader extends FileReaderImplementation {
|
479
|
+
constructor() {
|
480
|
+
super(window);
|
481
|
+
}
|
482
|
+
}
|
483
|
+
class DOMParser extends DOMParserImplementation {
|
484
|
+
constructor() {
|
485
|
+
super(window);
|
486
|
+
}
|
487
|
+
}
|
488
|
+
class Range extends RangeImplementation {
|
489
|
+
constructor() {
|
490
|
+
super(window);
|
491
|
+
}
|
492
|
+
}
|
493
|
+
class HTMLScriptElement extends HTMLScriptElementImplementation {
|
494
|
+
constructor() {
|
495
|
+
super(browserFrame);
|
496
|
+
}
|
497
|
+
}
|
498
|
+
class HTMLLinkElement extends HTMLLinkElementImplementation {
|
499
|
+
constructor() {
|
500
|
+
super(browserFrame);
|
501
|
+
}
|
502
|
+
}
|
503
|
+
class HTMLIFrameElement extends HTMLIFrameElementImplementation {
|
504
|
+
constructor() {
|
505
|
+
super(browserFrame);
|
506
|
+
}
|
507
|
+
}
|
508
|
+
class Document extends DocumentImplementation {
|
509
|
+
constructor() {
|
510
|
+
super({ window, browserFrame });
|
511
|
+
}
|
512
|
+
}
|
513
|
+
class HTMLDocument extends HTMLDocumentImplementation {
|
514
|
+
constructor() {
|
515
|
+
super({ window, browserFrame });
|
516
|
+
}
|
517
|
+
}
|
518
|
+
class XMLDocument extends XMLDocumentImplementation {
|
519
|
+
constructor() {
|
520
|
+
super({ window, browserFrame });
|
521
|
+
}
|
522
|
+
}
|
523
|
+
class SVGDocument extends SVGDocumentImplementation {
|
524
|
+
constructor() {
|
525
|
+
super({ window, browserFrame });
|
526
|
+
}
|
527
|
+
}
|
528
|
+
class Audio extends AudioImplementation {
|
529
|
+
}
|
530
|
+
class Image extends ImageImplementation {
|
531
|
+
}
|
532
|
+
class DocumentFragment extends DocumentFragmentImplementation {
|
533
|
+
}
|
534
|
+
/* eslint-enable jsdoc/require-jsdoc */
|
535
|
+
this.Response = Response;
|
536
|
+
this.Request = Request;
|
537
|
+
this.Image = Image;
|
538
|
+
this.DocumentFragment = DocumentFragment;
|
539
|
+
this.FileReader = FileReader;
|
540
|
+
this.DOMParser = DOMParser;
|
541
|
+
this.XMLHttpRequest = XMLHttpRequest;
|
542
|
+
this.Range = Range;
|
543
|
+
this.Audio = Audio;
|
544
|
+
this.HTMLScriptElement = HTMLScriptElement;
|
545
|
+
this.HTMLLinkElement = HTMLLinkElement;
|
546
|
+
this.HTMLIFrameElement = HTMLIFrameElement;
|
547
|
+
this.Document = Document;
|
548
|
+
this.HTMLDocument = HTMLDocument;
|
549
|
+
this.XMLDocument = XMLDocument;
|
550
|
+
this.SVGDocument = SVGDocument;
|
551
|
+
// Document
|
552
|
+
this.document = new HTMLDocument();
|
553
|
+
this.document.defaultView = this;
|
554
|
+
// Override owner document
|
555
|
+
this.Audio[PropertySymbol.ownerDocument] = this.document;
|
556
|
+
this.Image[PropertySymbol.ownerDocument] = this.document;
|
557
|
+
this.DocumentFragment[PropertySymbol.ownerDocument] = this.document;
|
558
|
+
// Ready state manager
|
559
|
+
this[PropertySymbol.readyStateManager].waitUntilComplete().then(() => {
|
560
|
+
this.document.readyState = DocumentReadyStateEnum.complete;
|
561
|
+
this.document.dispatchEvent(new Event('readystatechange'));
|
562
|
+
this.document.dispatchEvent(new Event('load', { bubbles: true }));
|
563
|
+
});
|
564
|
+
}
|
565
|
+
/**
|
566
|
+
* The number of pixels that the document is currently scrolled horizontally.
|
567
|
+
*
|
568
|
+
* @returns Scroll X.
|
569
|
+
*/
|
570
|
+
get scrollX() {
|
571
|
+
return this.document?.documentElement?.scrollLeft ?? 0;
|
572
|
+
}
|
573
|
+
/**
|
574
|
+
* The read-only Window property pageXOffset is an alias for scrollX.
|
575
|
+
*
|
576
|
+
* @returns Scroll X.
|
577
|
+
*/
|
578
|
+
get pageXOffset() {
|
579
|
+
return this.scrollX;
|
580
|
+
}
|
581
|
+
/**
|
582
|
+
* The number of pixels that the document is currently scrolled vertically.
|
583
|
+
*
|
584
|
+
* @returns Scroll Y.
|
585
|
+
*/
|
586
|
+
get scrollY() {
|
587
|
+
return this.document?.documentElement?.scrollTop ?? 0;
|
588
|
+
}
|
589
|
+
/**
|
590
|
+
* The read-only Window property pageYOffset is an alias for scrollY.
|
591
|
+
*
|
592
|
+
* @returns Scroll Y.
|
593
|
+
*/
|
594
|
+
get pageYOffset() {
|
595
|
+
return this.scrollY;
|
596
|
+
}
|
597
|
+
/**
|
598
|
+
* The CSS interface holds useful CSS-related methods.
|
599
|
+
*
|
600
|
+
* @returns CSS interface.
|
601
|
+
*/
|
602
|
+
get CSS() {
|
603
|
+
return new CSS();
|
604
|
+
}
|
605
|
+
/**
|
606
|
+
* Returns an object containing the values of all CSS properties of an element.
|
607
|
+
*
|
608
|
+
* @param element Element.
|
609
|
+
* @returns CSS style declaration.
|
610
|
+
*/
|
611
|
+
getComputedStyle(element) {
|
612
|
+
element[PropertySymbol.computedStyle] =
|
613
|
+
element[PropertySymbol.computedStyle] || new CSSStyleDeclaration(element, true);
|
614
|
+
return element[PropertySymbol.computedStyle];
|
615
|
+
}
|
616
|
+
/**
|
617
|
+
* Returns selection.
|
618
|
+
*
|
619
|
+
* @returns Selection.
|
620
|
+
*/
|
621
|
+
getSelection() {
|
622
|
+
return this.document.getSelection();
|
623
|
+
}
|
624
|
+
/**
|
625
|
+
* Scrolls to a particular set of coordinates.
|
626
|
+
*
|
627
|
+
* @param x X position or options object.
|
628
|
+
* @param y Y position.
|
629
|
+
*/
|
630
|
+
scroll(x, y) {
|
631
|
+
if (typeof x === 'object') {
|
632
|
+
if (x.behavior === 'smooth') {
|
633
|
+
this.setTimeout(() => {
|
634
|
+
if (x.top !== undefined) {
|
635
|
+
this.document.documentElement.scrollTop = x.top;
|
636
|
+
}
|
637
|
+
if (x.left !== undefined) {
|
638
|
+
this.document.documentElement.scrollLeft = x.left;
|
639
|
+
}
|
640
|
+
});
|
641
|
+
}
|
642
|
+
else {
|
643
|
+
if (x.top !== undefined) {
|
644
|
+
this.document.documentElement.scrollTop = x.top;
|
645
|
+
}
|
646
|
+
if (x.left !== undefined) {
|
647
|
+
this.document.documentElement.scrollLeft = x.left;
|
648
|
+
}
|
649
|
+
}
|
650
|
+
}
|
651
|
+
else if (x !== undefined && y !== undefined) {
|
652
|
+
this.document.documentElement.scrollLeft = x;
|
653
|
+
this.document.documentElement.scrollTop = y;
|
654
|
+
}
|
655
|
+
}
|
656
|
+
/**
|
657
|
+
* Scrolls to a particular set of coordinates.
|
658
|
+
*
|
659
|
+
* @param x X position or options object.
|
660
|
+
* @param y Y position.
|
661
|
+
*/
|
662
|
+
scrollTo(x, y) {
|
663
|
+
this.scroll(x, y);
|
664
|
+
}
|
665
|
+
/**
|
666
|
+
* Shifts focus away from the window.
|
667
|
+
*/
|
668
|
+
blur() {
|
669
|
+
// TODO: Implement.
|
670
|
+
}
|
671
|
+
/**
|
672
|
+
* Gives focus to the window.
|
673
|
+
*/
|
674
|
+
focus() {
|
675
|
+
// TODO: Implement.
|
676
|
+
}
|
677
|
+
/**
|
678
|
+
* Loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
|
679
|
+
*
|
680
|
+
* @param [url] URL.
|
681
|
+
* @param [target] Target.
|
682
|
+
* @param [features] Window features.
|
683
|
+
* @returns Window.
|
684
|
+
*/
|
685
|
+
open(url, target, features) {
|
686
|
+
return WindowPageOpenUtility.openPage(__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f"), {
|
687
|
+
url,
|
688
|
+
target,
|
689
|
+
features
|
690
|
+
});
|
691
|
+
}
|
692
|
+
/**
|
693
|
+
* Closes the window.
|
694
|
+
*/
|
695
|
+
close() {
|
696
|
+
// When using a Window instance directly, the Window instance is the main frame and we will close the page and destroy the browser.
|
697
|
+
// When using the Browser API we should only close the page when the Window instance is connected to the main frame (we should not close child frames such as iframes).
|
698
|
+
if (__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page?.mainFrame === __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")) {
|
699
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page.close();
|
700
|
+
}
|
701
|
+
}
|
702
|
+
/**
|
703
|
+
* Returns a new MediaQueryList object that can then be used to determine if the document matches the media query string.
|
704
|
+
*
|
705
|
+
* @param mediaQueryString A string specifying the media query to parse into a MediaQueryList.
|
706
|
+
* @returns A new MediaQueryList.
|
707
|
+
*/
|
708
|
+
matchMedia(mediaQueryString) {
|
709
|
+
return new MediaQueryList({ ownerWindow: this, media: mediaQueryString });
|
710
|
+
}
|
711
|
+
/**
|
712
|
+
* Sets a timer which executes a function once the timer expires.
|
713
|
+
*
|
714
|
+
* @param callback Function to be executed.
|
715
|
+
* @param [delay=0] Delay in ms.
|
716
|
+
* @param args Arguments passed to the callback function.
|
717
|
+
* @returns Timeout ID.
|
718
|
+
*/
|
719
|
+
setTimeout(callback, delay = 0, ...args) {
|
720
|
+
const settings = __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page?.context?.browser?.settings;
|
721
|
+
const useTryCatch = !settings ||
|
722
|
+
!settings.disableErrorCapturing ||
|
723
|
+
settings.errorCapture === BrowserErrorCaptureEnum.tryAndCatch;
|
724
|
+
const id = __classPrivateFieldGet(this, _BrowserWindow_setTimeout, "f").call(this, () => {
|
725
|
+
if (useTryCatch) {
|
726
|
+
WindowErrorUtility.captureError(this, () => callback(...args));
|
727
|
+
}
|
728
|
+
else {
|
729
|
+
callback(...args);
|
730
|
+
}
|
731
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].endTimer(id);
|
732
|
+
}, delay);
|
733
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].startTimer(id);
|
734
|
+
return id;
|
735
|
+
}
|
736
|
+
/**
|
737
|
+
* Cancels a timeout previously established by calling setTimeout().
|
738
|
+
*
|
739
|
+
* @param id ID of the timeout.
|
740
|
+
*/
|
741
|
+
clearTimeout(id) {
|
742
|
+
__classPrivateFieldGet(this, _BrowserWindow_clearTimeout, "f").call(this, id);
|
743
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].endTimer(id);
|
744
|
+
}
|
745
|
+
/**
|
746
|
+
* Calls a function with a fixed time delay between each call.
|
747
|
+
*
|
748
|
+
* @param callback Function to be executed.
|
749
|
+
* @param [delay=0] Delay in ms.
|
750
|
+
* @param args Arguments passed to the callback function.
|
751
|
+
* @returns Interval ID.
|
752
|
+
*/
|
753
|
+
setInterval(callback, delay = 0, ...args) {
|
754
|
+
const settings = __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page?.context?.browser?.settings;
|
755
|
+
const useTryCatch = !settings ||
|
756
|
+
!settings.disableErrorCapturing ||
|
757
|
+
settings.errorCapture === BrowserErrorCaptureEnum.tryAndCatch;
|
758
|
+
const id = __classPrivateFieldGet(this, _BrowserWindow_setInterval, "f").call(this, () => {
|
759
|
+
if (useTryCatch) {
|
760
|
+
WindowErrorUtility.captureError(this, () => callback(...args), () => this.clearInterval(id));
|
761
|
+
}
|
762
|
+
else {
|
763
|
+
callback(...args);
|
764
|
+
}
|
765
|
+
}, delay);
|
766
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].startTimer(id);
|
767
|
+
return id;
|
768
|
+
}
|
769
|
+
/**
|
770
|
+
* Cancels a timed repeating action which was previously established by a call to setInterval().
|
771
|
+
*
|
772
|
+
* @param id ID of the interval.
|
773
|
+
*/
|
774
|
+
clearInterval(id) {
|
775
|
+
__classPrivateFieldGet(this, _BrowserWindow_clearInterval, "f").call(this, id);
|
776
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].endTimer(id);
|
777
|
+
}
|
778
|
+
/**
|
779
|
+
* Mock animation frames with timeouts.
|
780
|
+
*
|
781
|
+
* @param callback Callback.
|
782
|
+
* @returns ID.
|
783
|
+
*/
|
784
|
+
requestAnimationFrame(callback) {
|
785
|
+
const settings = __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page?.context?.browser?.settings;
|
786
|
+
const useTryCatch = !settings ||
|
787
|
+
!settings.disableErrorCapturing ||
|
788
|
+
settings.errorCapture === BrowserErrorCaptureEnum.tryAndCatch;
|
789
|
+
const id = global.setImmediate(() => {
|
790
|
+
if (useTryCatch) {
|
791
|
+
WindowErrorUtility.captureError(this, () => callback(this.performance.now()));
|
792
|
+
}
|
793
|
+
else {
|
794
|
+
callback(this.performance.now());
|
795
|
+
}
|
796
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].endImmediate(id);
|
797
|
+
});
|
798
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].startImmediate(id);
|
799
|
+
return id;
|
800
|
+
}
|
801
|
+
/**
|
802
|
+
* Mock animation frames with timeouts.
|
803
|
+
*
|
804
|
+
* @param id ID.
|
805
|
+
*/
|
806
|
+
cancelAnimationFrame(id) {
|
807
|
+
global.clearImmediate(id);
|
808
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].endImmediate(id);
|
809
|
+
}
|
810
|
+
/**
|
811
|
+
* Queues a microtask to be executed at a safe time prior to control returning to the browser's event loop.
|
812
|
+
*
|
813
|
+
* @param callback Function to be executed.
|
814
|
+
*/
|
815
|
+
queueMicrotask(callback) {
|
816
|
+
let isAborted = false;
|
817
|
+
const taskId = __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].startTask(() => (isAborted = true));
|
818
|
+
const settings = __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").page?.context?.browser?.settings;
|
819
|
+
const useTryCatch = !settings ||
|
820
|
+
!settings.disableErrorCapturing ||
|
821
|
+
settings.errorCapture === BrowserErrorCaptureEnum.tryAndCatch;
|
822
|
+
__classPrivateFieldGet(this, _BrowserWindow_queueMicrotask, "f").call(this, () => {
|
823
|
+
if (!isAborted) {
|
824
|
+
if (useTryCatch) {
|
825
|
+
WindowErrorUtility.captureError(this, callback);
|
826
|
+
}
|
827
|
+
else {
|
828
|
+
callback();
|
829
|
+
}
|
830
|
+
__classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f")[PropertySymbol.asyncTaskManager].endTask(taskId);
|
831
|
+
}
|
832
|
+
});
|
833
|
+
}
|
834
|
+
/**
|
835
|
+
* This method provides an easy, logical way to fetch resources asynchronously across the network.
|
836
|
+
*
|
837
|
+
* @param url URL.
|
838
|
+
* @param [init] Init.
|
839
|
+
* @returns Promise.
|
840
|
+
*/
|
841
|
+
async fetch(url, init) {
|
842
|
+
return await new Fetch({
|
843
|
+
browserFrame: __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f"),
|
844
|
+
window: this,
|
845
|
+
url,
|
846
|
+
init
|
847
|
+
}).send();
|
848
|
+
}
|
849
|
+
/**
|
850
|
+
* 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).
|
851
|
+
*
|
852
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/btoa
|
853
|
+
* @param data Binay data.
|
854
|
+
* @returns Base64-encoded string.
|
855
|
+
*/
|
856
|
+
btoa(data) {
|
857
|
+
return Base64.btoa(data);
|
858
|
+
}
|
859
|
+
/**
|
860
|
+
* Decodes a string of data which has been encoded using Base64 encoding.
|
861
|
+
*
|
862
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/atob
|
863
|
+
* @see https://infra.spec.whatwg.org/#forgiving-base64-encode.
|
864
|
+
* @see Https://html.spec.whatwg.org/multipage/webappapis.html#btoa.
|
865
|
+
* @param data Binay string.
|
866
|
+
* @returns An ASCII string containing decoded data from encodedData.
|
867
|
+
*/
|
868
|
+
atob(data) {
|
869
|
+
return Base64.atob(data);
|
870
|
+
}
|
871
|
+
/**
|
872
|
+
* 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.
|
873
|
+
*
|
874
|
+
* @param message Message.
|
875
|
+
* @param [targetOrigin=*] Target origin.
|
876
|
+
* @param _transfer Transfer. Not implemented.
|
877
|
+
*/
|
878
|
+
postMessage(message, targetOrigin = '*', _transfer) {
|
879
|
+
// TODO: Implement transfer.
|
880
|
+
if (targetOrigin && targetOrigin !== '*' && this.location.origin !== targetOrigin) {
|
881
|
+
throw new DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${targetOrigin}') does not match the recipient window\'s origin ('${this.location.origin}').`, DOMExceptionNameEnum.securityError);
|
882
|
+
}
|
883
|
+
try {
|
884
|
+
JSON.stringify(message);
|
885
|
+
}
|
886
|
+
catch (error) {
|
887
|
+
throw new DOMException(`Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.`, DOMExceptionNameEnum.invalidStateError);
|
888
|
+
}
|
889
|
+
this.setTimeout(() => this.dispatchEvent(new MessageEvent('message', {
|
890
|
+
data: message,
|
891
|
+
origin: __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").parentFrame
|
892
|
+
? __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").parentFrame.window.location.origin
|
893
|
+
: __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").window.location.origin,
|
894
|
+
source: __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").parentFrame
|
895
|
+
? __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").parentFrame.window
|
896
|
+
: __classPrivateFieldGet(this, _BrowserWindow_browserFrame, "f").window,
|
897
|
+
lastEventId: ''
|
898
|
+
})));
|
899
|
+
}
|
900
|
+
/**
|
901
|
+
* Setup of VM context.
|
902
|
+
*/
|
903
|
+
[(_BrowserWindow_setTimeout = new WeakMap(), _BrowserWindow_clearTimeout = new WeakMap(), _BrowserWindow_setInterval = new WeakMap(), _BrowserWindow_clearInterval = new WeakMap(), _BrowserWindow_queueMicrotask = new WeakMap(), _BrowserWindow_browserFrame = new WeakMap(), _a = PropertySymbol.captureEventListenerCount, _b = PropertySymbol.mutationObservers, _c = PropertySymbol.readyStateManager, PropertySymbol.setupVMContext)]() {
|
904
|
+
if (!VM.isContext(this)) {
|
905
|
+
VM.createContext(this);
|
906
|
+
// Sets global properties from the VM to the Window object.
|
907
|
+
// Otherwise "this.Array" will be undefined for example.
|
908
|
+
VMGlobalPropertyScript.runInContext(this);
|
909
|
+
}
|
910
|
+
}
|
911
|
+
/**
|
912
|
+
* Destroys the window.
|
913
|
+
*/
|
914
|
+
[PropertySymbol.destroy]() {
|
915
|
+
this.closed = true;
|
916
|
+
this.Audio[PropertySymbol.ownerDocument] = null;
|
917
|
+
this.Image[PropertySymbol.ownerDocument] = null;
|
918
|
+
this.DocumentFragment[PropertySymbol.ownerDocument] = null;
|
919
|
+
for (const mutationObserver of this[PropertySymbol.mutationObservers]) {
|
920
|
+
mutationObserver.disconnect();
|
921
|
+
}
|
922
|
+
// Disconnects nodes from the document, so that they can be garbage collected.
|
923
|
+
for (const node of this.document[PropertySymbol.childNodes].slice()) {
|
924
|
+
this.document.removeChild(node);
|
925
|
+
}
|
926
|
+
this.document[PropertySymbol.activeElement] = null;
|
927
|
+
this.document[PropertySymbol.nextActiveElement] = null;
|
928
|
+
this.document[PropertySymbol.currentScript] = null;
|
929
|
+
this.document[PropertySymbol.selection] = null;
|
930
|
+
WindowBrowserSettingsReader.removeSettings(this);
|
931
|
+
}
|
932
|
+
}
|
933
|
+
//# sourceMappingURL=BrowserWindow.js.map
|