buninu-browser 0.0.2
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.
- package/AGENTS.md +13 -0
- package/Architecture.md +601 -0
- package/LICENSE +21 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/BSD-3-Clause-Skia.txt +29 -0
- package/LICENSES/Bitstream-Vera.txt +44 -0
- package/LICENSES/CC-BY-4.0.txt +396 -0
- package/LICENSES/OFL-1.1.txt +91 -0
- package/LICENSES/README.md +9 -0
- package/LICENSES/acorn.txt +21 -0
- package/LICENSES/chromium.txt +27 -0
- package/LICENSES/dropflow.txt +19 -0
- package/LICENSES/emscripten.txt +102 -0
- package/LICENSES/freetype.txt +169 -0
- package/LICENSES/happy-dom.txt +22 -0
- package/LICENSES/harfbuzz.txt +42 -0
- package/LICENSES/icu.txt +512 -0
- package/LICENSES/libjpeg-ijg.txt +260 -0
- package/LICENSES/libjpeg-turbo.txt +147 -0
- package/LICENSES/libpng.txt +134 -0
- package/LICENSES/libwebp.txt +30 -0
- package/LICENSES/ses-aura.txt +16 -0
- package/LICENSES/ses-caja.txt +13 -0
- package/LICENSES/ses-corejs.txt +19 -0
- package/LICENSES/ses-v8.txt +9 -0
- package/LICENSES/ses.txt +201 -0
- package/LICENSES/termdom.txt +21 -0
- package/LICENSES/wasmpeg.txt +501 -0
- package/LICENSES/woff2.txt +19 -0
- package/LICENSES/wuffs.txt +211 -0
- package/LICENSES/zlib.txt +22 -0
- package/Linux +0 -0
- package/PORTING.md +825 -0
- package/README.md +283 -0
- package/THIRD_PARTY_NOTICES.md +224 -0
- package/bunfig.toml +2 -0
- package/buninu-browser.js +65 -0
- package/index.js +149 -0
- package/lib/cdp-server.js +1424 -0
- package/lib/cdp.js +203 -0
- package/lib/happy-dom/entities-adapter.js +51 -0
- package/lib/happy-dom/image-size-adapter.js +8 -0
- package/lib/happy-dom/mime-type-adapter.js +27 -0
- package/lib/happy-dom/parser.js +53 -0
- package/lib/happy-dom/websocket-adapter.js +62 -0
- package/lib/headless-shell.js +362 -0
- package/lib/input/hit-test.js +78 -0
- package/lib/layout/scroll-viewport.js +53 -0
- package/lib/layout/text-layout.js +2236 -0
- package/lib/log.js +85 -0
- package/lib/network/cookie-jar.js +178 -0
- package/lib/network/network-service.js +268 -0
- package/lib/network/resolver.js +97 -0
- package/lib/paint/display-list.js +359 -0
- package/lib/paint/frame.js +88 -0
- package/lib/paint/gradient.js +207 -0
- package/lib/render-tree/index.js +263 -0
- package/lib/render-tree/svg.js +210 -0
- package/lib/renderer/bindings.js +1291 -0
- package/lib/renderer/compositor.js +123 -0
- package/lib/renderer/flags.js +20 -0
- package/lib/renderer/host.js +503 -0
- package/lib/renderer/main.js +234 -0
- package/lib/renderer/module-transform.js +399 -0
- package/lib/renderer/page-realm.js +1471 -0
- package/lib/renderer/page-renderer.js +1691 -0
- package/lib/renderer/script-rewrite.js +232 -0
- package/lib/renderer/seccomp.js +215 -0
- package/lib/renderer/syscall-numbers.js +139 -0
- package/lib/style/computed-style.js +2053 -0
- package/package.json +39 -0
- package/patches/happy-dom/0001-use-bun-entity-adapter.patch +15 -0
- package/patches/happy-dom/0002-use-bun-platform-adapters.patch +69 -0
- package/patches/happy-dom/README.md +38 -0
- package/test/chromium-headless-shell +5 -0
- package/test/compositor.test.js +154 -0
- package/test/computed-style.test.js +434 -0
- package/test/display-list.test.js +128 -0
- package/test/entities-adapter.test.js +43 -0
- package/test/fixtures/fake-renderer.js +26 -0
- package/test/fixtures/seccomp-child.js +32 -0
- package/test/fixtures/video.mp4 +0 -0
- package/test/flex.test.js +150 -0
- package/test/gradient.test.js +56 -0
- package/test/grid.test.js +253 -0
- package/test/happy-dom-platform-adapters.test.js +18 -0
- package/test/headless-shell.test.js +318 -0
- package/test/hit-test.test.js +49 -0
- package/test/html-parser.test.js +40 -0
- package/test/index.test.js +29 -0
- package/test/log.test.js +40 -0
- package/test/mobile.test.js +85 -0
- package/test/network-service.test.js +214 -0
- package/test/page-scripts.test.js +552 -0
- package/test/poc-backend.js +189 -0
- package/test/poc-backend.test.js +154 -0
- package/test/positioning.test.js +112 -0
- package/test/render-tree.test.js +103 -0
- package/test/renderer-host.test.js +69 -0
- package/test/resolver.test.js +51 -0
- package/test/script-rewrite.test.js +31 -0
- package/test/scroll-viewport.test.js +25 -0
- package/test/seccomp.test.js +71 -0
- package/test/site-isolation.test.js +74 -0
- package/test/svg.test.js +61 -0
- package/test/text-layout.test.js +419 -0
- package/usr/README.md +20 -0
- package/usr/lib/canvaskit/LICENSE +29 -0
- package/usr/lib/canvaskit/canvaskit.js +264 -0
- package/usr/lib/canvaskit/canvaskit.wasm +0 -0
- package/usr/share/fonts/DejaVuSansMono-Bold.ttf +0 -0
- package/usr/share/fonts/DejaVuSansMono.ttf +0 -0
- package/usr/share/fonts/LICENSE-Apache-2.0.txt +202 -0
- package/usr/share/fonts/LICENSE-DejaVu.txt +44 -0
- package/usr/share/fonts/LICENSE-OFL-1.1.txt +91 -0
- package/usr/share/fonts/NotoColorEmoji.ttf +0 -0
- package/usr/share/fonts/NotoColorEmojiFlags.ttf +0 -0
- package/usr/share/fonts/NotoSansCJK-Regular.ttc +0 -0
- package/usr/share/fonts/NotoSansSymbols-Regular-Subsetted.ttf +0 -0
- package/usr/share/fonts/NotoSansSymbols-Regular-Subsetted2.ttf +0 -0
- package/usr/share/fonts/Roboto-Regular.ttf +0 -0
- package/usr/share/fonts/fonts.json +28 -0
- package/vendor/acorn/LICENSE +21 -0
- package/vendor/acorn/README.md +309 -0
- package/vendor/acorn/dist/acorn.mjs +6313 -0
- package/vendor/acorn/package.json +50 -0
- package/vendor/happy-dom/.editorconfig +8 -0
- package/vendor/happy-dom/.eslintignore +6 -0
- package/vendor/happy-dom/.eslintrc.cjs +188 -0
- package/vendor/happy-dom/.github/CODEOWNERS +2 -0
- package/vendor/happy-dom/.github/FUNDING.yml +1 -0
- package/vendor/happy-dom/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/vendor/happy-dom/.github/ISSUE_TEMPLATE/custom.md +10 -0
- package/vendor/happy-dom/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/vendor/happy-dom/.github/PULL_REQUEST_TEMPLATE.md +27 -0
- package/vendor/happy-dom/.github/workflows/auto-assign.yml +23 -0
- package/vendor/happy-dom/.github/workflows/pull_request.yml +53 -0
- package/vendor/happy-dom/.github/workflows/release.yml +143 -0
- package/vendor/happy-dom/.husky/pre-commit +1 -0
- package/vendor/happy-dom/.prettierignore +1 -0
- package/vendor/happy-dom/.prettierrc.cjs +6 -0
- package/vendor/happy-dom/.vscode/extensions.json +3 -0
- package/vendor/happy-dom/CODE_OF_CONDUCT.md +128 -0
- package/vendor/happy-dom/CONTRIBUTING.md +147 -0
- package/vendor/happy-dom/LICENSE +21 -0
- package/vendor/happy-dom/README.md +62 -0
- package/vendor/happy-dom/SECURITY.md +12 -0
- package/vendor/happy-dom/cspell.json +34 -0
- package/vendor/happy-dom/docs/happy-dom-logo.jpg +0 -0
- package/vendor/happy-dom/integration-test/.editorconfig +8 -0
- package/vendor/happy-dom/integration-test/LICENSE +21 -0
- package/vendor/happy-dom/integration-test/README.md +1 -0
- package/vendor/happy-dom/integration-test/package.json +24 -0
- package/vendor/happy-dom/package-lock.json +15520 -0
- package/vendor/happy-dom/package.json +55 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/LICENSE +21 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/README.md +60 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/package.json +52 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/register.js +2 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/src/GlobalRegistrator.ts +121 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/src/index.ts +3 -0
- package/vendor/happy-dom/packages/@happy-dom/global-registrator/tsconfig.json +30 -0
- package/vendor/happy-dom/packages/@happy-dom/jest-environment/LICENSE +21 -0
- package/vendor/happy-dom/packages/@happy-dom/jest-environment/README.md +71 -0
- package/vendor/happy-dom/packages/@happy-dom/jest-environment/package.json +93 -0
- package/vendor/happy-dom/packages/@happy-dom/jest-environment/src/index.ts +192 -0
- package/vendor/happy-dom/packages/@happy-dom/jest-environment/tsconfig.json +30 -0
- package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/README.md +48 -0
- package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/package.json +41 -0
- package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/src/CanvasAdapter.ts +275 -0
- package/vendor/happy-dom/packages/@happy-dom/node-canvas-adapter/src/index.ts +1 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/LICENSE +21 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/README.md +100 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/bin/src/happy-dom-sr.ts +30 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/package.json +62 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRenderer.ts +368 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererBrowser.ts +142 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererBrowserWorker.ts +29 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererPage.ts +305 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererPageWorker.ts +55 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/ServerRendererServer.ts +332 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/config/DefaultServerRendererConfiguration.ts +47 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/enums/ServerRendererLogLevelEnum.ts +9 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/enums/ServerRendererModeEnum.ts +8 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/index.ts +19 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IOptionalServerRendererConfiguration.ts +127 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IServerRendererConfiguration.ts +126 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IServerRendererItem.ts +6 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/types/IServerRendererResult.ts +11 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/BrowserWindowPolyfill.ts +138 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/HelpPrinter.ts +36 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/HelpPrinterRows.ts +288 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/PackageVersion.ts +12 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/ProcessArgumentsParser.ts +387 -0
- package/vendor/happy-dom/packages/@happy-dom/server-renderer/src/utilities/ServerRendererConfigurationFactory.ts +91 -0
- package/vendor/happy-dom/packages/happy-dom/LICENSE +21 -0
- package/vendor/happy-dom/packages/happy-dom/README.md +42 -0
- package/vendor/happy-dom/packages/happy-dom/package.json +58 -0
- package/vendor/happy-dom/packages/happy-dom/src/PropertySymbol.ts +431 -0
- package/vendor/happy-dom/packages/happy-dom/src/animation/Animation.ts +273 -0
- package/vendor/happy-dom/packages/happy-dom/src/animation/AnimationTimeline.ts +15 -0
- package/vendor/happy-dom/packages/happy-dom/src/animation/DocumentTimeline.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/animation/KeyframeEffect.ts +295 -0
- package/vendor/happy-dom/packages/happy-dom/src/async-task-manager/AsyncTaskManager.ts +340 -0
- package/vendor/happy-dom/packages/happy-dom/src/async-task-manager/AsyncTaskManagerDebugError.ts +14 -0
- package/vendor/happy-dom/packages/happy-dom/src/base64/Base64.ts +97 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/Browser.ts +123 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserContext.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserFrame.ts +232 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserPage.ts +205 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/BrowserSettingsFactory.ts +96 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/DefaultBrowserSettings.ts +67 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowser.ts +129 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowserContext.ts +103 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowserFrame.ts +250 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/detached-browser/DetachedBrowserPage.ts +218 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/enums/BrowserErrorCaptureEnum.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/enums/BrowserNavigationCrossOriginPolicyEnum.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowser.ts +51 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserContext.ts +44 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserFrame.ts +112 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserPage.ts +110 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserPageViewport.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IBrowserSettings.ts +194 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IGoToOptions.ts +17 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IOptionalBrowserPageViewport.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IOptionalBrowserSettings.ts +190 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/types/IReloadOptions.ts +27 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserExceptionObserver.ts +123 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameFactory.ts +106 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameNavigator.ts +574 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameScriptEvaluator.ts +71 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameURL.ts +30 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserFrameValidator.ts +84 -0
- package/vendor/happy-dom/packages/happy-dom/src/browser/utilities/BrowserPageUtility.ts +56 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasAdapter.ts +63 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasAdapterCaller.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasGradient.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasPattern.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts +162 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ICanvasShape.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/IImageBitmapOptions.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ITextMetrics.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ImageBitmap.ts +162 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/ImageData.ts +83 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/OffscreenCanvas.ts +162 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/TCanvasImage.ts +14 -0
- package/vendor/happy-dom/packages/happy-dom/src/canvas/TImageBitmapSource.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/clipboard/Clipboard.ts +108 -0
- package/vendor/happy-dom/packages/happy-dom/src/clipboard/ClipboardItem.ts +57 -0
- package/vendor/happy-dom/packages/happy-dom/src/config/HTMLElementConfig.ts +536 -0
- package/vendor/happy-dom/packages/happy-dom/src/config/HTMLElementConfigContentModelEnum.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/config/IHTMLElementTagNameMap.ts +181 -0
- package/vendor/happy-dom/packages/happy-dom/src/config/ISVGElementTagNameMap.ts +127 -0
- package/vendor/happy-dom/packages/happy-dom/src/config/NamespaceURI.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/config/SVGElementConfig.ts +70 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/IConsole.ts +161 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/IVirtualConsoleLogEntry.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/IVirtualConsoleLogGroup.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/IVirtualConsolePrinter.ts +58 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/VirtualConsole.ts +363 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/VirtualConsolePrinter.ts +148 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/enums/VirtualConsoleLogLevelEnum.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/enums/VirtualConsoleLogTypeEnum.ts +29 -0
- package/vendor/happy-dom/packages/happy-dom/src/console/utilities/VirtualConsoleLogEntryStringifier.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/CookieContainer.ts +91 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/DefaultCookie.ts +17 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/ICookie.ts +14 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/ICookieContainer.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/IOptionalCookie.ts +16 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/enums/CookieSameSiteEnum.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/urilities/CookieExpireUtility.ts +16 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/urilities/CookieStringUtility.ts +119 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie/urilities/CookieURLUtility.ts +27 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie-store/CookieStore.ts +226 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreDeleteOptions.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreGetOptions.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreItem.ts +13 -0
- package/vendor/happy-dom/packages/happy-dom/src/cookie-store/ICookieStoreSetOptions.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/CSS.ts +63 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/CSSRule.ts +84 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/CSSRuleTypeEnum.ts +18 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/CSSStyleSheet.ts +141 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/CSSUnitValue.ts +26 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/CSSUnits.ts +31 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/MediaList.ts +177 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/CSSPropertyList.ts +1273 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts +355 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/ICSSStyleDeclaration.ts +1178 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/CSSComputedStyle.ts +502 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/config/CSSComputedStyleElementDefault.ts +133 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/config/CSSComputedStyleInheritedProperties.ts +39 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/computed-style/config/CSSComputedStyleMeasurementProperties.ts +41 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/CSSPropertyManager.ts +641 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertyGetParser.ts +741 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/parsers/CSSPropertySetParser.ts +2955 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/types/ICSSPropertyMap.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/types/ICSSPropertyValue.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/utilities/CSSStringUtility.ts +90 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/utilities/CSSValueFormatter.ts +447 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/property-manager/utilities/CSSVariableFormatter.ts +76 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/utilities/CSSMeasurementConverter.ts +79 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/declaration/utilities/CSSTextParser.ts +44 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSConditionRule.ts +20 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSContainerRule.ts +34 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSFontFaceRule.ts +45 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSGroupingRule.ts +84 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSKeyframeRule.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSKeyframesRule.ts +147 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSMediaRule.ts +50 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSScopeRule.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSStyleRule.ts +73 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/rules/CSSSupportsRule.ts +30 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/CSSKeywordValue.ts +35 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/CSSStyleValue.ts +37 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/StylePropertyMap.ts +45 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/style-property-map/StylePropertyMapReadOnly.ts +128 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/utilities/CSSEscaper.ts +87 -0
- package/vendor/happy-dom/packages/happy-dom/src/css/utilities/CSSRuleParser.ts +315 -0
- package/vendor/happy-dom/packages/happy-dom/src/custom-element/CustomElementReactionStack.ts +91 -0
- package/vendor/happy-dom/packages/happy-dom/src/custom-element/CustomElementRegistry.ts +186 -0
- package/vendor/happy-dom/packages/happy-dom/src/custom-element/CustomElementUtility.ts +34 -0
- package/vendor/happy-dom/packages/happy-dom/src/custom-element/ICustomElementDefinition.ts +16 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMPoint.ts +84 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMPointReadOnly.ts +117 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMRect.ts +92 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMRectList.ts +34 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMRectReadOnly.ts +129 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMStringMap.ts +93 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMStringMapUtility.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/DOMTokenList.ts +363 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/IDOMPointInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/IDOMRectInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts +526 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts +1608 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/IDOMMatrixCompatibleObject.ts +24 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/IDOMMatrixJSON.ts +26 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/TDOMMatrix2DArray.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/TDOMMatrix3DArray.ts +20 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom/dom-matrix/TDOMMatrixInit.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom-implementation/DOMImplementation.ts +81 -0
- package/vendor/happy-dom/packages/happy-dom/src/dom-parser/DOMParser.ts +47 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/DataTransfer.ts +128 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/DataTransferItem.ts +47 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/DataTransferItemList.ts +44 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/Event.ts +222 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/EventPhaseEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/EventTarget.ts +396 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/IEventInit.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/IEventListenerOptions.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/ITouchInit.ts +16 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/IUIEventInit.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/MessagePort.ts +32 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/TEventListener.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/TEventListenerFunction.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/TEventListenerObject.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/Touch.ts +40 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/UIEvent.ts +32 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/AnimationEvent.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ClipboardEvent.ts +22 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/CloseEvent.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/CookieChangeEvent.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/CustomEvent.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ErrorEvent.ts +29 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/FocusEvent.ts +22 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/HashChangeEvent.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IAnimationEventInit.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IClipboardEventInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ICloseEventInit.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ICookieChangeEventInit.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ICustomEventInit.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IErrorEventInit.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IFocusEventInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IHashChangeEventInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IInputEventInit.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IKeyboardEventInit.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IMediaQueryListEventInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IMediaQueryListInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IMessageEventInit.ts +11 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IMouseEventInit.ts +21 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IPointerEventInit.ts +19 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IPopStateEventInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IProgressEventInit.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IStorageEventInit.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ISubmitEventInit.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ITouchEventInit.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/IWheelEventInit.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/InputEvent.ts +28 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/KeyboardEvent.ts +80 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/MediaQueryListEvent.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/MediaStreamTrackEvent.ts +22 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/MessageEvent.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/MouseEvent.ts +52 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/PointerEvent.ts +51 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/PopStateEvent.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/ProgressEvent.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/StorageEvent.ts +30 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/SubmitEvent.ts +22 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/TouchEvent.ts +34 -0
- package/vendor/happy-dom/packages/happy-dom/src/event/events/WheelEvent.ts +30 -0
- package/vendor/happy-dom/packages/happy-dom/src/exception/DOMException.ts +21 -0
- package/vendor/happy-dom/packages/happy-dom/src/exception/DOMExceptionNameEnum.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/AbortController.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/AbortSignal.ts +182 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/Fetch.ts +1072 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/Headers.ts +177 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/ReadableStreamWrapper.ts +30 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/Request.ts +492 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/ResourceFetch.ts +190 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/Response.ts +439 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/SyncFetch.ts +717 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/ICacheablePreflightRequest.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/ICacheablePreflightResponse.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/ICachedPreflightResponse.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/IPreflightResponseCache.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/preflight/PreflightResponseCache.ts +94 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/CachedResponseStateEnum.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ICacheableRequest.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ICacheableResponse.ts +11 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ICachedResponse.ts +40 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/IResponseCache.ts +37 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/IResponseCacheFileSystem.ts +18 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ResponseCache.ts +248 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/cache/response/ResponseCacheFileSystem.ts +175 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/certificate/FetchHTTPSCertificate.ts +52 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/data-uri/DataURIParser.ts +66 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/multipart/MultipartFormDataParser.ts +174 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/multipart/MultipartReader.ts +216 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/preload/PreloadEntry.ts +50 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/preload/PreloadUtility.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IFetchInterceptor.ts +60 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IFetchRequestHeaders.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IRequestInit.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IResourceFetchResponse.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IResponseInit.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/ISyncResponse.ts +18 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/IVirtualServer.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/THeadersInit.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestBody.ts +14 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestCredentials.ts +1 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestInfo.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestMode.ts +1 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestRedirect.ts +1 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TRequestReferrerPolicy.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/types/TResponseBody.ts +14 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchBodyUtility.ts +284 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchCORSUtility.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts +141 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts +259 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts +128 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchResponseHeaderUtility.ts +48 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/FetchResponseRedirectUtility.ts +27 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/SyncFetchScriptBuilder.ts +77 -0
- package/vendor/happy-dom/packages/happy-dom/src/fetch/utilities/VirtualServerUtility.ts +114 -0
- package/vendor/happy-dom/packages/happy-dom/src/file/Blob.ts +163 -0
- package/vendor/happy-dom/packages/happy-dom/src/file/File.ts +43 -0
- package/vendor/happy-dom/packages/happy-dom/src/file/FileReader.ts +211 -0
- package/vendor/happy-dom/packages/happy-dom/src/file/FileReaderEventTypeEnum.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/file/FileReaderFormatEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/file/FileReaderReadyStateEnum.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/form-data/FormData.ts +291 -0
- package/vendor/happy-dom/packages/happy-dom/src/history/History.ts +220 -0
- package/vendor/happy-dom/packages/happy-dom/src/history/HistoryItemList.ts +72 -0
- package/vendor/happy-dom/packages/happy-dom/src/history/HistoryScrollRestorationEnum.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/history/IHistoryItem.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/html-parser/HTMLParser.ts +920 -0
- package/vendor/happy-dom/packages/happy-dom/src/html-serializer/HTMLSerializer.ts +172 -0
- package/vendor/happy-dom/packages/happy-dom/src/index.ts +495 -0
- package/vendor/happy-dom/packages/happy-dom/src/intersection-observer/IIntersectionObserverInit.ts +16 -0
- package/vendor/happy-dom/packages/happy-dom/src/intersection-observer/IntersectionObserver.ts +64 -0
- package/vendor/happy-dom/packages/happy-dom/src/intersection-observer/IntersectionObserverEntry.ts +26 -0
- package/vendor/happy-dom/packages/happy-dom/src/javascript/IJavaScriptCompiledResult.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/javascript/JavaScriptCompiler.ts +381 -0
- package/vendor/happy-dom/packages/happy-dom/src/location/Location.ts +319 -0
- package/vendor/happy-dom/packages/happy-dom/src/match-media/IMediaQueryRange.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/match-media/IMediaQueryRule.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryItem.ts +354 -0
- package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryList.ts +133 -0
- package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryParser.ts +113 -0
- package/vendor/happy-dom/packages/happy-dom/src/match-media/MediaQueryTypeEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/CSSModule.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/ECMAScriptModule.ts +194 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts +961 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/JSONModule.ts +58 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/ModuleFactory.ts +148 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/ModuleURLUtility.ts +199 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/UnresolvedModule.ts +81 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/enums/ECMAScriptModuleEvaluateStateEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleCachedResult.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleCompiledResult.ts +19 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleImport.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IECMAScriptModuleInit.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IModule.ts +20 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleImportMap.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleImportMapRule.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleImportMapScope.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IModuleInit.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/module/types/IResolveNodeModules.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/IMutationListener.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/IMutationObserverInit.ts +14 -0
- package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationObserver.ts +175 -0
- package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationObserverListener.ts +115 -0
- package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationRecord.ts +55 -0
- package/vendor/happy-dom/packages/happy-dom/src/mutation-observer/MutationTypeEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/navigator/MimeType.ts +35 -0
- package/vendor/happy-dom/packages/happy-dom/src/navigator/MimeTypeArray.ts +48 -0
- package/vendor/happy-dom/packages/happy-dom/src/navigator/Navigator.ts +247 -0
- package/vendor/happy-dom/packages/happy-dom/src/navigator/Plugin.ts +61 -0
- package/vendor/happy-dom/packages/happy-dom/src/navigator/PluginArray.ts +58 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/NodeFactory.ts +38 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/attr/Attr.ts +119 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/character-data/CharacterData.ts +218 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/character-data/CharacterDataUtility.ts +68 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/ChildNodeUtility.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/IChildNode.ts +29 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/INonDocumentTypeChildNode.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/child-node/NonDocumentChildNodeUtility.ts +37 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/comment/Comment.ts +36 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/document/Document.ts +2310 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/document/DocumentReadyStateEnum.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/document/DocumentReadyStateManager.ts +52 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/document/VisibilityStateEnum.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/document-fragment/DocumentFragment.ts +208 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/document-type/DocumentType.ts +70 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/Element.ts +1842 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/ElementEventAttributeUtility.ts +96 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/HTMLCollection.ts +228 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/NamedNodeMap.ts +274 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/NamedNodeMapProxyFactory.ts +127 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/THTMLCollectionListener.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/element/TNamedNodeMapListener.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-anchor-element/HTMLAnchorElement.ts +439 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-area-element/HTMLAreaElement.ts +426 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-audio-element/Audio.ts +28 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-audio-element/HTMLAudioElement.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-base-element/HTMLBaseElement.ts +64 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-body-element/HTMLBodyElement.ts +161 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-br-element/HTMLBRElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-button-element/HTMLButtonElement.ts +406 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-canvas-element/CanvasCaptureMediaStreamTrack.ts +51 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-canvas-element/HTMLCanvasElement.ts +304 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-d-list-element/HTMLDListElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-data-element/HTMLDataElement.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-data-list-element/HTMLDataListElement.ts +28 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-details-element/HTMLDetailsElement.ts +112 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-dialog-element/HTMLDialogElement.ts +104 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-div-element/HTMLDivElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-document/HTMLDocument.ts +82 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-element/HTMLElement.ts +1149 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-element/HTMLElementUtility.ts +119 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-embed-element/HTMLEmbedElement.ts +90 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-field-set-element/HTMLFieldSetElement.ts +165 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/HTMLFormControlsCollection.ts +35 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts +675 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/RadioNodeList.ts +25 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-form-element/THTMLFormControlElement.ts +16 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-head-element/HTMLHeadElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-heading-element/HTMLHeadingElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-hr-element/HTMLHRElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-html-element/HTMLHtmlElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts +329 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-hyperlink-element/IHTMLHyperlinkElement.ts +19 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-iframe-element/HTMLIFrameElement.ts +460 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-image-element/HTMLImageElement.ts +500 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-image-element/Image.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/FileList.ts +34 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts +1550 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementDateUtility.ts +50 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementSelectionDirectionEnum.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementSelectionModeEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts +211 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueStepping.ts +92 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-label-element/HTMLLabelElement.ts +128 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-label-element/HTMLLabelElementUtility.ts +45 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-legend-element/HTMLLegendElement.ts +27 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-li-element/HTMLLIElement.ts +31 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-link-element/HTMLLinkElement.ts +501 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-map-element/HTMLMapElement.ts +47 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts +906 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/IMediaTrackCapabilities.ts +21 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/IMediaTrackSettings.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/MediaStream.ts +114 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/MediaStreamTrack.ts +182 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/RemotePlayback.ts +47 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrack.ts +156 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackCue.ts +51 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackCueList.ts +37 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackKindEnum.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TextTrackList.ts +182 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/TimeRanges.ts +73 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/VTTCue.ts +80 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-media-element/VTTRegion.ts +15 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-menu-element/HTMLMenuElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-meta-element/HTMLMetaElement.ts +80 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-meter-element/HTMLMeterElement.ts +216 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-mod-element/HTMLModElement.ts +54 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-o-list-element/HTMLOListElement.ts +83 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-object-element/HTMLObjectElement.ts +223 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-opt-group-element/HTMLOptGroupElement.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-option-element/HTMLOptionElement.ts +192 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-output-element/HTMLOutputElement.ts +179 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-paragraph-element/HTMLParagraphElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-param-element/HTMLParamElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-picture-element/HTMLPictureElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-pre-element/HTMLPreElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-progress-element/HTMLProgressElement.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-quote-element/HTMLQuoteElement.ts +36 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-script-element/HTMLScriptElement.ts +735 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-select-element/HTMLOptionsCollection.ts +69 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-select-element/HTMLSelectElement.ts +779 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-slot-element/HTMLSlotElement.ts +249 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-source-element/HTMLSourceElement.ts +148 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-span-element/HTMLSpanElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-style-element/HTMLStyleElement.ts +125 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-caption-element/HTMLTableCaptionElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-cell-element/HTMLTableCellElement.ts +125 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-col-element/HTMLTableColElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-element/HTMLTableElement.ts +343 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-row-element/HTMLTableRowElement.ts +149 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-table-section-element/HTMLTableSectionElement.ts +88 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-template-element/HTMLTemplateElement.ts +154 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-text-area-element/HTMLTextAreaElement.ts +649 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-time-element/HTMLTimeElement.ts +27 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-title-element/HTMLTitleElement.ts +48 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-track-element/HTMLTrackElement.ts +164 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-u-list-element/HTMLUListElement.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-unknown-element/HTMLUnknownElement.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/html-video-element/HTMLVideoElement.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedComputedStyleResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedElementByIdResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedElementByTagNameResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedElementsByTagNameResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedMatchesResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedQuerySelectorAllResult.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedQuerySelectorResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedResult.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/ICachedStyleResult.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/Node.ts +1373 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeDocumentPositionEnum.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeList.ts +224 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeTypeEnum.ts +13 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/NodeUtility.ts +330 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/node/TNodeListListener.ts +1 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/parent-node/IParentNode.ts +109 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/parent-node/ParentNodeUtility.ts +334 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/processing-instruction/ProcessingInstruction.ts +22 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/shadow-root/ShadowRoot.ts +290 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animate-element/SVGAnimateElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animate-motion-element/SVGAnimateMotionElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animate-transform-element/SVGAnimateTransformElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-animation-element/SVGAnimationElement.ts +94 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-circle-element/SVGCircleElement.ts +72 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-clip-path-element/SVGClipPathElement.ts +34 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-component-transfer-function-element/SVGComponentTransferFunctionElement.ts +167 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-defs-element/SVGDefsElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-desc-element/SVGDescElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-element/SVGElement.ts +828 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-ellipse-element/SVGEllipseElement.ts +92 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-blend-element/SVGFEBlendElement.ts +192 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-color-matrix-element/SVGFEColorMatrixElement.ts +204 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-component-transfer-element/SVGFEComponentTransferElement.ts +133 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-composite-element/SVGFECompositeElement.ts +186 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-convolve-matrix-element/SVGFEConvolveMatrixElement.ts +366 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-diffuse-lighting-element/SVGFEDiffuseLightingElement.ts +214 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-displacement-map-element/SVGFEDisplacementMapElement.ts +226 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-distant-light-element/SVGFEDistantLightElement.ts +52 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-drop-shadow-element/SVGFEDropShadowElement.ts +227 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-flood-element/SVGFEFloodElement.ts +113 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-a-element/SVGFEFuncAElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-b-element/SVGFEFuncBElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-g-element/SVGFEFuncGElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-func-r-element/SVGFEFuncRElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-gaussian-blur-element/SVGFEGaussianBlurElement.ts +214 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-image-element/SVGFEImageElement.ts +173 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-merge-element/SVGFEMergeElement.ts +113 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-merge-node-element/SVGFEMergeNodeElement.ts +32 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-morphology-element/SVGFEMorphologyElement.ts +202 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-offset-element/SVGFEOffsetElement.ts +174 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-point-light-element/SVGFEPointLightElement.ts +72 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-specular-lighting-element/SVGFESpecularLightingElement.ts +237 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-spot-light-element/SVGFESpotLightElement.ts +173 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-tile-element/SVGFETileElement.ts +133 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-fe-turbulence-element/SVGFETurbulenceElement.ts +249 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-filter-element/SVGFilterElement.ts +158 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-foreign-object-element/SVGForeignObjectElement.ts +92 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-g-element/SVGGElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-geometry-element/SVGGeometryElement.ts +94 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-gradient-element/SVGGradientElement.ts +104 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-graphics-element/SVGGraphicsElement.ts +134 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-image-element/SVGImageElement.ts +188 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-line-element/SVGLineElement.ts +92 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-linear-gradient-element/SVGLinearGradientElement.ts +92 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-m-path-element/SVGMPathElement.ts +32 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-marker-element/SVGMarkerElement.ts +230 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-mask-element/SVGMaskElement.ts +137 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-metadata-element/SVGMetadataElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-path-element/SVGPathElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-pattern-element/SVGPatternElement.ts +179 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-polygon-element/SVGPolygonElement.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-polyline-element/SVGPolylineElement.ts +53 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-radial-gradient-element/SVGRadialGradientElement.ts +112 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-rect-element/SVGRectElement.ts +132 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-script-element/SVGScriptElement.ts +50 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-set-element/SVGSetElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-stop-element/SVGStopElement.ts +32 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-style-element/SVGStyleElement.ts +143 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts +601 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-switch-element/SVGSwitchElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-symbol-element/SVGSymbolElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-t-span-element/SVGTSpanElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-content-element/SVGTextContentElement.ts +143 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-element/SVGTextElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-path-element/SVGTextPathElement.ts +106 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-text-positioning-element/SVGTextPositioningElement.ts +113 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-title-element/SVGTitleElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-use-element/SVGUseElement.ts +113 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/svg-view-element/SVGViewElement.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/text/Text.ts +154 -0
- package/vendor/happy-dom/packages/happy-dom/src/nodes/xml-document/XMLDocument.ts +10 -0
- package/vendor/happy-dom/packages/happy-dom/src/permissions/PermissionNameEnum.ts +32 -0
- package/vendor/happy-dom/packages/happy-dom/src/permissions/PermissionStatus.ts +23 -0
- package/vendor/happy-dom/packages/happy-dom/src/permissions/Permissions.ts +59 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/ISelectorAttribute.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/ISelectorMatch.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/ISelectorPseudo.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/QuerySelector.ts +849 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/SelectorCombinatorEnum.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/SelectorItem.ts +575 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/SelectorParser.ts +699 -0
- package/vendor/happy-dom/packages/happy-dom/src/query-selector/TGlobalMatchFunction.ts +12 -0
- package/vendor/happy-dom/packages/happy-dom/src/range/IRangeBoundaryPoint.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/range/Range.ts +1161 -0
- package/vendor/happy-dom/packages/happy-dom/src/range/RangeHowEnum.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/range/RangeUtility.ts +118 -0
- package/vendor/happy-dom/packages/happy-dom/src/resize-observer/ResizeObserver.ts +33 -0
- package/vendor/happy-dom/packages/happy-dom/src/screen/Screen.ts +19 -0
- package/vendor/happy-dom/packages/happy-dom/src/screen/ScreenDetailed.ts +17 -0
- package/vendor/happy-dom/packages/happy-dom/src/screen/ScreenDetails.ts +27 -0
- package/vendor/happy-dom/packages/happy-dom/src/selection/Selection.ts +556 -0
- package/vendor/happy-dom/packages/happy-dom/src/selection/SelectionDirectionEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/storage/Storage.ts +149 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAngle.ts +310 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAngleTypeEnum.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedAngle.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedBoolean.ts +80 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedEnumeration.ts +119 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedInteger.ts +97 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedLength.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedLengthList.ts +101 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedNumber.ts +101 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedNumberList.ts +101 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedPreserveAspectRatio.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedRect.ts +100 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedString.ts +83 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGAnimatedTransformList.ts +101 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGLength.ts +375 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGLengthList.ts +489 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGLengthTypeEnum.ts +15 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGMatrix.ts +429 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGNumber.ts +83 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGNumberList.ts +522 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPoint.ts +114 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPointList.ts +526 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPreserveAspectRatio.ts +176 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPreserveAspectRatioAlignEnum.ts +15 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGPreserveAspectRatioMeetOrSliceEnum.ts +7 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGRect.ts +200 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGStringList.ts +422 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGTransform.ts +369 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGTransformList.ts +531 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGTransformTypeEnum.ts +11 -0
- package/vendor/happy-dom/packages/happy-dom/src/svg/SVGUnitTypes.ts +26 -0
- package/vendor/happy-dom/packages/happy-dom/src/tree-walker/NodeFilter.ts +18 -0
- package/vendor/happy-dom/packages/happy-dom/src/tree-walker/NodeFilterMask.ts +28 -0
- package/vendor/happy-dom/packages/happy-dom/src/tree-walker/NodeIterator.ts +85 -0
- package/vendor/happy-dom/packages/happy-dom/src/tree-walker/TNodeFilter.ts +3 -0
- package/vendor/happy-dom/packages/happy-dom/src/tree-walker/TreeWalker.ts +339 -0
- package/vendor/happy-dom/packages/happy-dom/src/url/URL.ts +45 -0
- package/vendor/happy-dom/packages/happy-dom/src/utilities/AttributeUtility.ts +43 -0
- package/vendor/happy-dom/packages/happy-dom/src/utilities/ClassMethodBinder.ts +71 -0
- package/vendor/happy-dom/packages/happy-dom/src/utilities/StringUtility.ts +47 -0
- package/vendor/happy-dom/packages/happy-dom/src/utilities/XMLEncodeUtility.ts +166 -0
- package/vendor/happy-dom/packages/happy-dom/src/validity-state/ValidityState.ts +234 -0
- package/vendor/happy-dom/packages/happy-dom/src/version.ts +1 -0
- package/vendor/happy-dom/packages/happy-dom/src/web-socket/WebSocket.ts +408 -0
- package/vendor/happy-dom/packages/happy-dom/src/web-socket/WebSocketReadyStateEnum.ts +8 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/BrowserWindow.ts +3074 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/CrossOriginBrowserWindow.ts +152 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/DetachedWindowAPI.ts +133 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/GlobalWindow.ts +90 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/INodeJSGlobal.ts +76 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/IOptionalTimerLoopsLimit.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/IScrollToOptions.ts +5 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/ITimerLoopsLimit.ts +4 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/VMGlobalPropertyScript.ts +59 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/Window.ts +67 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/WindowBrowserContext.ts +117 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/WindowContextClassExtender.ts +288 -0
- package/vendor/happy-dom/packages/happy-dom/src/window/WindowPageOpenUtility.ts +200 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts +577 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestEventTarget.ts +88 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestReadyStateEnum.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestResponseDataParser.ts +70 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpRequestUpload.ts +6 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-http-request/XMLHttpResponseTypeEnum.ts +9 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-parser/XMLParser.ts +744 -0
- package/vendor/happy-dom/packages/happy-dom/src/xml-serializer/XMLSerializer.ts +280 -0
- package/vendor/happy-dom/turbo.json +52 -0
- package/vendor/ses/LICENSE +201 -0
- package/vendor/ses/LICENSE-aura +16 -0
- package/vendor/ses/LICENSE-caja +13 -0
- package/vendor/ses/LICENSE-corejs +19 -0
- package/vendor/ses/LICENSE-v8 +9 -0
- package/vendor/ses/README.md +968 -0
- package/vendor/ses/dist/ses.mjs +15219 -0
- package/vendor/ses/package.json +142 -0
- package/vendor/wasmpeg/LICENSE +501 -0
- package/vendor/wasmpeg/NOTICE +30 -0
- package/vendor/wasmpeg/VENDORING.md +35 -0
- package/vendor/wasmpeg/dist/cpu.js +2 -0
- package/vendor/wasmpeg/dist/cpu.wasm +0 -0
- package/vendor/wasmpeg/package.json +45 -0
- package/vendor/wasmpeg/source-v1.0.1.tar.gz +0 -0
- package/vendor/wasmpeg/src/js/exec.mjs +478 -0
- package/vendor/wasmpeg/src/js/ffmpeg.js +94 -0
- package/vendor/wasmpeg/src/js/formats.js +84 -0
- package/vendor/wasmpeg/src/js/gpu.js +480 -0
- package/vendor/wasmpeg/src/js/index.d.ts +154 -0
- package/vendor/wasmpeg/src/js/index.js +7 -0
- package/vendor/wasmpeg/src/js/wasmpeg.mjs +221 -0
|
@@ -0,0 +1,2310 @@
|
|
|
1
|
+
import Element from '../element/Element.js';
|
|
2
|
+
import * as PropertySymbol from '../../PropertySymbol.js';
|
|
3
|
+
import type BrowserWindow from '../../window/BrowserWindow.js';
|
|
4
|
+
import DocumentTimeline from '../../animation/DocumentTimeline.js';
|
|
5
|
+
import Node from '../node/Node.js';
|
|
6
|
+
import NodeIterator from '../../tree-walker/NodeIterator.js';
|
|
7
|
+
import TreeWalker from '../../tree-walker/TreeWalker.js';
|
|
8
|
+
import type DocumentFragment from '../document-fragment/DocumentFragment.js';
|
|
9
|
+
import Event from '../../event/Event.js';
|
|
10
|
+
import DOMImplementation from '../../dom-implementation/DOMImplementation.js';
|
|
11
|
+
import type { TNodeFilter } from '../../tree-walker/TNodeFilter.js';
|
|
12
|
+
import NamespaceURI from '../../config/NamespaceURI.js';
|
|
13
|
+
import DocumentType from '../document-type/DocumentType.js';
|
|
14
|
+
import ParentNodeUtility from '../parent-node/ParentNodeUtility.js';
|
|
15
|
+
import QuerySelector from '../../query-selector/QuerySelector.js';
|
|
16
|
+
import type CSSStyleSheet from '../../css/CSSStyleSheet.js';
|
|
17
|
+
import type HTMLScriptElement from '../html-script-element/HTMLScriptElement.js';
|
|
18
|
+
import type HTMLElement from '../html-element/HTMLElement.js';
|
|
19
|
+
import type Comment from '../comment/Comment.js';
|
|
20
|
+
import type Text from '../text/Text.js';
|
|
21
|
+
import type NodeList from '../node/NodeList.js';
|
|
22
|
+
import HTMLCollection from '../element/HTMLCollection.js';
|
|
23
|
+
import type HTMLLinkElement from '../html-link-element/HTMLLinkElement.js';
|
|
24
|
+
import type HTMLStyleElement from '../html-style-element/HTMLStyleElement.js';
|
|
25
|
+
import DocumentReadyStateEnum from './DocumentReadyStateEnum.js';
|
|
26
|
+
import type Location from '../../location/Location.js';
|
|
27
|
+
import Selection from '../../selection/Selection.js';
|
|
28
|
+
import type ShadowRoot from '../shadow-root/ShadowRoot.js';
|
|
29
|
+
import type Range from '../../range/Range.js';
|
|
30
|
+
import type Attr from '../attr/Attr.js';
|
|
31
|
+
import type ProcessingInstruction from '../processing-instruction/ProcessingInstruction.js';
|
|
32
|
+
import VisibilityStateEnum from './VisibilityStateEnum.js';
|
|
33
|
+
import NodeTypeEnum from '../node/NodeTypeEnum.js';
|
|
34
|
+
import CookieStringUtility from '../../cookie/urilities/CookieStringUtility.js';
|
|
35
|
+
import type { URL } from 'url';
|
|
36
|
+
import type IHTMLElementTagNameMap from '../../config/IHTMLElementTagNameMap.js';
|
|
37
|
+
import type ISVGElementTagNameMap from '../../config/ISVGElementTagNameMap.js';
|
|
38
|
+
import type SVGElement from '../svg-element/SVGElement.js';
|
|
39
|
+
import type HTMLFormElement from '../html-form-element/HTMLFormElement.js';
|
|
40
|
+
import type HTMLAnchorElement from '../html-anchor-element/HTMLAnchorElement.js';
|
|
41
|
+
import type HTMLAreaElement from '../html-area-element/HTMLAreaElement.js';
|
|
42
|
+
import HTMLElementConfig from '../../config/HTMLElementConfig.js';
|
|
43
|
+
import type HTMLHtmlElement from '../html-html-element/HTMLHtmlElement.js';
|
|
44
|
+
import type HTMLBodyElement from '../html-body-element/HTMLBodyElement.js';
|
|
45
|
+
import type HTMLHeadElement from '../html-head-element/HTMLHeadElement.js';
|
|
46
|
+
import type HTMLBaseElement from '../html-base-element/HTMLBaseElement.js';
|
|
47
|
+
import type HTMLTitleElement from '../html-title-element/HTMLTitleElement.js';
|
|
48
|
+
import WindowBrowserContext from '../../window/WindowBrowserContext.js';
|
|
49
|
+
import NodeFactory from '../NodeFactory.js';
|
|
50
|
+
import SVGElementConfig from '../../config/SVGElementConfig.js';
|
|
51
|
+
import StringUtility from '../../utilities/StringUtility.js';
|
|
52
|
+
import HTMLParser from '../../html-parser/HTMLParser.js';
|
|
53
|
+
import type PreloadEntry from '../../fetch/preload/PreloadEntry.js';
|
|
54
|
+
import DOMExceptionNameEnum from '../../exception/DOMExceptionNameEnum.js';
|
|
55
|
+
import type SVGScriptElement from '../svg-script-element/SVGScriptElement.js';
|
|
56
|
+
import type ICachedComputedStyleResult from '../node/ICachedComputedStyleResult.js';
|
|
57
|
+
|
|
58
|
+
const PROCESSING_INSTRUCTION_TARGET_REGEXP = /^[a-z][a-z0-9-]+$/;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Document.
|
|
62
|
+
*/
|
|
63
|
+
export default class Document extends Node {
|
|
64
|
+
// Internal properties
|
|
65
|
+
public [PropertySymbol.children]: HTMLCollection<Element> | null = null;
|
|
66
|
+
public [PropertySymbol.activeElement]: HTMLElement | SVGElement | null = null;
|
|
67
|
+
public [PropertySymbol.nextActiveElement]: HTMLElement | SVGElement | null = null;
|
|
68
|
+
public [PropertySymbol.currentScript]: HTMLScriptElement | null = null;
|
|
69
|
+
public [PropertySymbol.rootNode] = this;
|
|
70
|
+
public [PropertySymbol.isFirstWrite] = true;
|
|
71
|
+
public [PropertySymbol.isFirstWriteAfterOpen] = false;
|
|
72
|
+
public [PropertySymbol.nodeType] = NodeTypeEnum.documentNode;
|
|
73
|
+
public [PropertySymbol.isConnected] = true;
|
|
74
|
+
public [PropertySymbol.adoptedStyleSheets]: CSSStyleSheet[] = [];
|
|
75
|
+
public [PropertySymbol.implementation] = new DOMImplementation(this);
|
|
76
|
+
public [PropertySymbol.readyState] = DocumentReadyStateEnum.interactive;
|
|
77
|
+
public [PropertySymbol.referrer] = '';
|
|
78
|
+
public [PropertySymbol.defaultView]: BrowserWindow | null = null;
|
|
79
|
+
public [PropertySymbol.forms]: HTMLCollection<HTMLFormElement> | null = null;
|
|
80
|
+
public [PropertySymbol.links]: HTMLCollection<HTMLAnchorElement | HTMLAreaElement> | null = null;
|
|
81
|
+
public [PropertySymbol.affectsComputedStyleCache]: ICachedComputedStyleResult[] = [];
|
|
82
|
+
public [PropertySymbol.ownerDocument]: Document = <Document>(<unknown>null);
|
|
83
|
+
public [PropertySymbol.elementIdMap]: Map<
|
|
84
|
+
string,
|
|
85
|
+
{ htmlCollection: HTMLCollection<Element> | null; elements: Element[] }
|
|
86
|
+
> = new Map();
|
|
87
|
+
public [PropertySymbol.contentType]: string = 'text/html';
|
|
88
|
+
public [PropertySymbol.xmlProcessingInstruction]: ProcessingInstruction | null = null;
|
|
89
|
+
public [PropertySymbol.preloads]: Map<string, PreloadEntry> = new Map();
|
|
90
|
+
public [PropertySymbol.propertyEventListeners]: Map<string, ((event: Event) => void) | null> =
|
|
91
|
+
new Map();
|
|
92
|
+
public [PropertySymbol.selection]: Selection | null = null;
|
|
93
|
+
public [PropertySymbol.timeline]: DocumentTimeline = new DocumentTimeline();
|
|
94
|
+
public declare cloneNode: (deep?: boolean) => Document;
|
|
95
|
+
|
|
96
|
+
// Events
|
|
97
|
+
|
|
98
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
|
99
|
+
|
|
100
|
+
public get onreadystatechange(): ((event: Event) => void) | null {
|
|
101
|
+
return this[PropertySymbol.propertyEventListeners].get('onreadystatechange') ?? null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public set onreadystatechange(value: ((event: Event) => void) | null) {
|
|
105
|
+
this[PropertySymbol.propertyEventListeners].set('onreadystatechange', value);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public get onpointerlockchange(): ((event: Event) => void) | null {
|
|
109
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerlockchange') ?? null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public set onpointerlockchange(value: ((event: Event) => void) | null) {
|
|
113
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerlockchange', value);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public get onpointerlockerror(): ((event: Event) => void) | null {
|
|
117
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerlockerror') ?? null;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public set onpointerlockerror(value: ((event: Event) => void) | null) {
|
|
121
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerlockerror', value);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public get onbeforecopy(): ((event: Event) => void) | null {
|
|
125
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforecopy') ?? null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
public set onbeforecopy(value: ((event: Event) => void) | null) {
|
|
129
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforecopy', value);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public get onbeforecut(): ((event: Event) => void) | null {
|
|
133
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforecut') ?? null;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
public set onbeforecut(value: ((event: Event) => void) | null) {
|
|
137
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforecut', value);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
public get onbeforepaste(): ((event: Event) => void) | null {
|
|
141
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforepaste') ?? null;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
public set onbeforepaste(value: ((event: Event) => void) | null) {
|
|
145
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforepaste', value);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
public get onfreeze(): ((event: Event) => void) | null {
|
|
149
|
+
return this[PropertySymbol.propertyEventListeners].get('onfreeze') ?? null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
public set onfreeze(value: ((event: Event) => void) | null) {
|
|
153
|
+
this[PropertySymbol.propertyEventListeners].set('onfreeze', value);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
public get onprerenderingchange(): ((event: Event) => void) | null {
|
|
157
|
+
return this[PropertySymbol.propertyEventListeners].get('onprerenderingchange') ?? null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
public set onprerenderingchange(value: ((event: Event) => void) | null) {
|
|
161
|
+
this[PropertySymbol.propertyEventListeners].set('onprerenderingchange', value);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
public get onresume(): ((event: Event) => void) | null {
|
|
165
|
+
return this[PropertySymbol.propertyEventListeners].get('onresume') ?? null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
public set onresume(value: ((event: Event) => void) | null) {
|
|
169
|
+
this[PropertySymbol.propertyEventListeners].set('onresume', value);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
public get onsearch(): ((event: Event) => void) | null {
|
|
173
|
+
return this[PropertySymbol.propertyEventListeners].get('onsearch') ?? null;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
public set onsearch(value: ((event: Event) => void) | null) {
|
|
177
|
+
this[PropertySymbol.propertyEventListeners].set('onsearch', value);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
public get onvisibilitychange(): ((event: Event) => void) | null {
|
|
181
|
+
return this[PropertySymbol.propertyEventListeners].get('onvisibilitychange') ?? null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
public set onvisibilitychange(value: ((event: Event) => void) | null) {
|
|
185
|
+
this[PropertySymbol.propertyEventListeners].set('onvisibilitychange', value);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
public get onfullscreenchange(): ((event: Event) => void) | null {
|
|
189
|
+
return this[PropertySymbol.propertyEventListeners].get('onfullscreenchange') ?? null;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
public set onfullscreenchange(value: ((event: Event) => void) | null) {
|
|
193
|
+
this[PropertySymbol.propertyEventListeners].set('onfullscreenchange', value);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
public get onfullscreenerror(): ((event: Event) => void) | null {
|
|
197
|
+
return this[PropertySymbol.propertyEventListeners].get('onfullscreenerror') ?? null;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
public set onfullscreenerror(value: ((event: Event) => void) | null) {
|
|
201
|
+
this[PropertySymbol.propertyEventListeners].set('onfullscreenerror', value);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
public get onwebkitfullscreenchange(): ((event: Event) => void) | null {
|
|
205
|
+
return this[PropertySymbol.propertyEventListeners].get('onwebkitfullscreenchange') ?? null;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
public set onwebkitfullscreenchange(value: ((event: Event) => void) | null) {
|
|
209
|
+
this[PropertySymbol.propertyEventListeners].set('onwebkitfullscreenchange', value);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
public get onwebkitfullscreenerror(): ((event: Event) => void) | null {
|
|
213
|
+
return this[PropertySymbol.propertyEventListeners].get('onwebkitfullscreenerror') ?? null;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
public set onwebkitfullscreenerror(value: ((event: Event) => void) | null) {
|
|
217
|
+
this[PropertySymbol.propertyEventListeners].set('onwebkitfullscreenerror', value);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
public get onbeforexrselect(): ((event: Event) => void) | null {
|
|
221
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforexrselect') ?? null;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
public set onbeforexrselect(value: ((event: Event) => void) | null) {
|
|
225
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforexrselect', value);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
public get onabort(): ((event: Event) => void) | null {
|
|
229
|
+
return this[PropertySymbol.propertyEventListeners].get('onabort') ?? null;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
public set onabort(value: ((event: Event) => void) | null) {
|
|
233
|
+
this[PropertySymbol.propertyEventListeners].set('onabort', value);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
public get onbeforeinput(): ((event: Event) => void) | null {
|
|
237
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforeinput') ?? null;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
public set onbeforeinput(value: ((event: Event) => void) | null) {
|
|
241
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforeinput', value);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
public get onbeforematch(): ((event: Event) => void) | null {
|
|
245
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforematch') ?? null;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
public set onbeforematch(value: ((event: Event) => void) | null) {
|
|
249
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforematch', value);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
public get onbeforetoggle(): ((event: Event) => void) | null {
|
|
253
|
+
return this[PropertySymbol.propertyEventListeners].get('onbeforetoggle') ?? null;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
public set onbeforetoggle(value: ((event: Event) => void) | null) {
|
|
257
|
+
this[PropertySymbol.propertyEventListeners].set('onbeforetoggle', value);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
public get onblur(): ((event: Event) => void) | null {
|
|
261
|
+
return this[PropertySymbol.propertyEventListeners].get('onblur') ?? null;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
public set onblur(value: ((event: Event) => void) | null) {
|
|
265
|
+
this[PropertySymbol.propertyEventListeners].set('onblur', value);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
public get oncancel(): ((event: Event) => void) | null {
|
|
269
|
+
return this[PropertySymbol.propertyEventListeners].get('oncancel') ?? null;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
public set oncancel(value: ((event: Event) => void) | null) {
|
|
273
|
+
this[PropertySymbol.propertyEventListeners].set('oncancel', value);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
public get oncanplay(): ((event: Event) => void) | null {
|
|
277
|
+
return this[PropertySymbol.propertyEventListeners].get('oncanplay') ?? null;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
public set oncanplay(value: ((event: Event) => void) | null) {
|
|
281
|
+
this[PropertySymbol.propertyEventListeners].set('oncanplay', value);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
public get oncanplaythrough(): ((event: Event) => void) | null {
|
|
285
|
+
return this[PropertySymbol.propertyEventListeners].get('oncanplaythrough') ?? null;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
public set oncanplaythrough(value: ((event: Event) => void) | null) {
|
|
289
|
+
this[PropertySymbol.propertyEventListeners].set('oncanplaythrough', value);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
public get onchange(): ((event: Event) => void) | null {
|
|
293
|
+
return this[PropertySymbol.propertyEventListeners].get('onchange') ?? null;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
public set onchange(value: ((event: Event) => void) | null) {
|
|
297
|
+
this[PropertySymbol.propertyEventListeners].set('onchange', value);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
public get onclick(): ((event: Event) => void) | null {
|
|
301
|
+
return this[PropertySymbol.propertyEventListeners].get('onclick') ?? null;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
public set onclick(value: ((event: Event) => void) | null) {
|
|
305
|
+
this[PropertySymbol.propertyEventListeners].set('onclick', value);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
public get onclose(): ((event: Event) => void) | null {
|
|
309
|
+
return this[PropertySymbol.propertyEventListeners].get('onclose') ?? null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
public set onclose(value: ((event: Event) => void) | null) {
|
|
313
|
+
this[PropertySymbol.propertyEventListeners].set('onclose', value);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
public get oncontentvisibilityautostatechange(): ((event: Event) => void) | null {
|
|
317
|
+
return (
|
|
318
|
+
this[PropertySymbol.propertyEventListeners].get('oncontentvisibilityautostatechange') ?? null
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
public set oncontentvisibilityautostatechange(value: ((event: Event) => void) | null) {
|
|
323
|
+
this[PropertySymbol.propertyEventListeners].set('oncontentvisibilityautostatechange', value);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
public get oncontextlost(): ((event: Event) => void) | null {
|
|
327
|
+
return this[PropertySymbol.propertyEventListeners].get('oncontextlost') ?? null;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
public set oncontextlost(value: ((event: Event) => void) | null) {
|
|
331
|
+
this[PropertySymbol.propertyEventListeners].set('oncontextlost', value);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
public get oncontextmenu(): ((event: Event) => void) | null {
|
|
335
|
+
return this[PropertySymbol.propertyEventListeners].get('oncontextmenu') ?? null;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
public set oncontextmenu(value: ((event: Event) => void) | null) {
|
|
339
|
+
this[PropertySymbol.propertyEventListeners].set('oncontextmenu', value);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
public get oncontextrestored(): ((event: Event) => void) | null {
|
|
343
|
+
return this[PropertySymbol.propertyEventListeners].get('oncontextrestored') ?? null;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
public set oncontextrestored(value: ((event: Event) => void) | null) {
|
|
347
|
+
this[PropertySymbol.propertyEventListeners].set('oncontextrestored', value);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
public get oncuechange(): ((event: Event) => void) | null {
|
|
351
|
+
return this[PropertySymbol.propertyEventListeners].get('oncuechange') ?? null;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
public set oncuechange(value: ((event: Event) => void) | null) {
|
|
355
|
+
this[PropertySymbol.propertyEventListeners].set('oncuechange', value);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
public get ondblclick(): ((event: Event) => void) | null {
|
|
359
|
+
return this[PropertySymbol.propertyEventListeners].get('ondblclick') ?? null;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
public set ondblclick(value: ((event: Event) => void) | null) {
|
|
363
|
+
this[PropertySymbol.propertyEventListeners].set('ondblclick', value);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
public get ondrag(): ((event: Event) => void) | null {
|
|
367
|
+
return this[PropertySymbol.propertyEventListeners].get('ondrag') ?? null;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
public set ondrag(value: ((event: Event) => void) | null) {
|
|
371
|
+
this[PropertySymbol.propertyEventListeners].set('ondrag', value);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
public get ondragend(): ((event: Event) => void) | null {
|
|
375
|
+
return this[PropertySymbol.propertyEventListeners].get('ondragend') ?? null;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
public set ondragend(value: ((event: Event) => void) | null) {
|
|
379
|
+
this[PropertySymbol.propertyEventListeners].set('ondragend', value);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
public get ondragenter(): ((event: Event) => void) | null {
|
|
383
|
+
return this[PropertySymbol.propertyEventListeners].get('ondragenter') ?? null;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
public set ondragenter(value: ((event: Event) => void) | null) {
|
|
387
|
+
this[PropertySymbol.propertyEventListeners].set('ondragenter', value);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
public get ondragleave(): ((event: Event) => void) | null {
|
|
391
|
+
return this[PropertySymbol.propertyEventListeners].get('ondragleave') ?? null;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
public set ondragleave(value: ((event: Event) => void) | null) {
|
|
395
|
+
this[PropertySymbol.propertyEventListeners].set('ondragleave', value);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
public get ondragover(): ((event: Event) => void) | null {
|
|
399
|
+
return this[PropertySymbol.propertyEventListeners].get('ondragover') ?? null;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
public set ondragover(value: ((event: Event) => void) | null) {
|
|
403
|
+
this[PropertySymbol.propertyEventListeners].set('ondragover', value);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
public get ondragstart(): ((event: Event) => void) | null {
|
|
407
|
+
return this[PropertySymbol.propertyEventListeners].get('ondragstart') ?? null;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
public set ondragstart(value: ((event: Event) => void) | null) {
|
|
411
|
+
this[PropertySymbol.propertyEventListeners].set('ondragstart', value);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
public get ondrop(): ((event: Event) => void) | null {
|
|
415
|
+
return this[PropertySymbol.propertyEventListeners].get('ondrop') ?? null;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
public set ondrop(value: ((event: Event) => void) | null) {
|
|
419
|
+
this[PropertySymbol.propertyEventListeners].set('ondrop', value);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
public get ondurationchange(): ((event: Event) => void) | null {
|
|
423
|
+
return this[PropertySymbol.propertyEventListeners].get('ondurationchange') ?? null;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
public set ondurationchange(value: ((event: Event) => void) | null) {
|
|
427
|
+
this[PropertySymbol.propertyEventListeners].set('ondurationchange', value);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
public get onemptied(): ((event: Event) => void) | null {
|
|
431
|
+
return this[PropertySymbol.propertyEventListeners].get('onemptied') ?? null;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
public set onemptied(value: ((event: Event) => void) | null) {
|
|
435
|
+
this[PropertySymbol.propertyEventListeners].set('onemptied', value);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
public get onended(): ((event: Event) => void) | null {
|
|
439
|
+
return this[PropertySymbol.propertyEventListeners].get('onended') ?? null;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
public set onended(value: ((event: Event) => void) | null) {
|
|
443
|
+
this[PropertySymbol.propertyEventListeners].set('onended', value);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
public get onerror(): ((event: Event) => void) | null {
|
|
447
|
+
return this[PropertySymbol.propertyEventListeners].get('onerror') ?? null;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
public set onerror(value: ((event: Event) => void) | null) {
|
|
451
|
+
this[PropertySymbol.propertyEventListeners].set('onerror', value);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
public get onfocus(): ((event: Event) => void) | null {
|
|
455
|
+
return this[PropertySymbol.propertyEventListeners].get('onfocus') ?? null;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
public set onfocus(value: ((event: Event) => void) | null) {
|
|
459
|
+
this[PropertySymbol.propertyEventListeners].set('onfocus', value);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
public get onformdata(): ((event: Event) => void) | null {
|
|
463
|
+
return this[PropertySymbol.propertyEventListeners].get('onformdata') ?? null;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
public set onformdata(value: ((event: Event) => void) | null) {
|
|
467
|
+
this[PropertySymbol.propertyEventListeners].set('onformdata', value);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
public get oninput(): ((event: Event) => void) | null {
|
|
471
|
+
return this[PropertySymbol.propertyEventListeners].get('oninput') ?? null;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
public set oninput(value: ((event: Event) => void) | null) {
|
|
475
|
+
this[PropertySymbol.propertyEventListeners].set('oninput', value);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
public get oninvalid(): ((event: Event) => void) | null {
|
|
479
|
+
return this[PropertySymbol.propertyEventListeners].get('oninvalid') ?? null;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
public set oninvalid(value: ((event: Event) => void) | null) {
|
|
483
|
+
this[PropertySymbol.propertyEventListeners].set('oninvalid', value);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
public get onkeydown(): ((event: Event) => void) | null {
|
|
487
|
+
return this[PropertySymbol.propertyEventListeners].get('onkeydown') ?? null;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
public set onkeydown(value: ((event: Event) => void) | null) {
|
|
491
|
+
this[PropertySymbol.propertyEventListeners].set('onkeydown', value);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
public get onkeypress(): ((event: Event) => void) | null {
|
|
495
|
+
return this[PropertySymbol.propertyEventListeners].get('onkeypress') ?? null;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
public set onkeypress(value: ((event: Event) => void) | null) {
|
|
499
|
+
this[PropertySymbol.propertyEventListeners].set('onkeypress', value);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
public get onkeyup(): ((event: Event) => void) | null {
|
|
503
|
+
return this[PropertySymbol.propertyEventListeners].get('onkeyup') ?? null;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
public set onkeyup(value: ((event: Event) => void) | null) {
|
|
507
|
+
this[PropertySymbol.propertyEventListeners].set('onkeyup', value);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
public get onload(): ((event: Event) => void) | null {
|
|
511
|
+
return this[PropertySymbol.propertyEventListeners].get('onload') ?? null;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
public set onload(value: ((event: Event) => void) | null) {
|
|
515
|
+
this[PropertySymbol.propertyEventListeners].set('onload', value);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
public get onloadeddata(): ((event: Event) => void) | null {
|
|
519
|
+
return this[PropertySymbol.propertyEventListeners].get('onloadeddata') ?? null;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
public set onloadeddata(value: ((event: Event) => void) | null) {
|
|
523
|
+
this[PropertySymbol.propertyEventListeners].set('onloadeddata', value);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
public get onloadedmetadata(): ((event: Event) => void) | null {
|
|
527
|
+
return this[PropertySymbol.propertyEventListeners].get('onloadedmetadata') ?? null;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
public set onloadedmetadata(value: ((event: Event) => void) | null) {
|
|
531
|
+
this[PropertySymbol.propertyEventListeners].set('onloadedmetadata', value);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
public get onloadstart(): ((event: Event) => void) | null {
|
|
535
|
+
return this[PropertySymbol.propertyEventListeners].get('onloadstart') ?? null;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
public set onloadstart(value: ((event: Event) => void) | null) {
|
|
539
|
+
this[PropertySymbol.propertyEventListeners].set('onloadstart', value);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
public get onmousedown(): ((event: Event) => void) | null {
|
|
543
|
+
return this[PropertySymbol.propertyEventListeners].get('onmousedown') ?? null;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
public set onmousedown(value: ((event: Event) => void) | null) {
|
|
547
|
+
this[PropertySymbol.propertyEventListeners].set('onmousedown', value);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
public get onmouseenter(): ((event: Event) => void) | null {
|
|
551
|
+
return this[PropertySymbol.propertyEventListeners].get('onmouseenter') ?? null;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
public set onmouseenter(value: ((event: Event) => void) | null) {
|
|
555
|
+
this[PropertySymbol.propertyEventListeners].set('onmouseenter', value);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
public get onmouseleave(): ((event: Event) => void) | null {
|
|
559
|
+
return this[PropertySymbol.propertyEventListeners].get('onmouseleave') ?? null;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
public set onmouseleave(value: ((event: Event) => void) | null) {
|
|
563
|
+
this[PropertySymbol.propertyEventListeners].set('onmouseleave', value);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
public get onmousemove(): ((event: Event) => void) | null {
|
|
567
|
+
return this[PropertySymbol.propertyEventListeners].get('onmousemove') ?? null;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
public set onmousemove(value: ((event: Event) => void) | null) {
|
|
571
|
+
this[PropertySymbol.propertyEventListeners].set('onmousemove', value);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
public get onmouseout(): ((event: Event) => void) | null {
|
|
575
|
+
return this[PropertySymbol.propertyEventListeners].get('onmouseout') ?? null;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
public set onmouseout(value: ((event: Event) => void) | null) {
|
|
579
|
+
this[PropertySymbol.propertyEventListeners].set('onmouseout', value);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
public get onmouseover(): ((event: Event) => void) | null {
|
|
583
|
+
return this[PropertySymbol.propertyEventListeners].get('onmouseover') ?? null;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
public set onmouseover(value: ((event: Event) => void) | null) {
|
|
587
|
+
this[PropertySymbol.propertyEventListeners].set('onmouseover', value);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
public get onmouseup(): ((event: Event) => void) | null {
|
|
591
|
+
return this[PropertySymbol.propertyEventListeners].get('onmouseup') ?? null;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
public set onmouseup(value: ((event: Event) => void) | null) {
|
|
595
|
+
this[PropertySymbol.propertyEventListeners].set('onmouseup', value);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
public get onmousewheel(): ((event: Event) => void) | null {
|
|
599
|
+
return this[PropertySymbol.propertyEventListeners].get('onmousewheel') ?? null;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
public set onmousewheel(value: ((event: Event) => void) | null) {
|
|
603
|
+
this[PropertySymbol.propertyEventListeners].set('onmousewheel', value);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
public get onpause(): ((event: Event) => void) | null {
|
|
607
|
+
return this[PropertySymbol.propertyEventListeners].get('onpause') ?? null;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
public set onpause(value: ((event: Event) => void) | null) {
|
|
611
|
+
this[PropertySymbol.propertyEventListeners].set('onpause', value);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
public get onplay(): ((event: Event) => void) | null {
|
|
615
|
+
return this[PropertySymbol.propertyEventListeners].get('onplay') ?? null;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
public set onplay(value: ((event: Event) => void) | null) {
|
|
619
|
+
this[PropertySymbol.propertyEventListeners].set('onplay', value);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
public get onplaying(): ((event: Event) => void) | null {
|
|
623
|
+
return this[PropertySymbol.propertyEventListeners].get('onplaying') ?? null;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
public set onplaying(value: ((event: Event) => void) | null) {
|
|
627
|
+
this[PropertySymbol.propertyEventListeners].set('onplaying', value);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
public get onprogress(): ((event: Event) => void) | null {
|
|
631
|
+
return this[PropertySymbol.propertyEventListeners].get('onprogress') ?? null;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
public set onprogress(value: ((event: Event) => void) | null) {
|
|
635
|
+
this[PropertySymbol.propertyEventListeners].set('onprogress', value);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
public get onratechange(): ((event: Event) => void) | null {
|
|
639
|
+
return this[PropertySymbol.propertyEventListeners].get('onratechange') ?? null;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
public set onratechange(value: ((event: Event) => void) | null) {
|
|
643
|
+
this[PropertySymbol.propertyEventListeners].set('onratechange', value);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
public get onreset(): ((event: Event) => void) | null {
|
|
647
|
+
return this[PropertySymbol.propertyEventListeners].get('onreset') ?? null;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
public set onreset(value: ((event: Event) => void) | null) {
|
|
651
|
+
this[PropertySymbol.propertyEventListeners].set('onreset', value);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
public get onresize(): ((event: Event) => void) | null {
|
|
655
|
+
return this[PropertySymbol.propertyEventListeners].get('onresize') ?? null;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
public set onresize(value: ((event: Event) => void) | null) {
|
|
659
|
+
this[PropertySymbol.propertyEventListeners].set('onresize', value);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
public get onscroll(): ((event: Event) => void) | null {
|
|
663
|
+
return this[PropertySymbol.propertyEventListeners].get('onscroll') ?? null;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
public set onscroll(value: ((event: Event) => void) | null) {
|
|
667
|
+
this[PropertySymbol.propertyEventListeners].set('onscroll', value);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
public get onsecuritypolicyviolation(): ((event: Event) => void) | null {
|
|
671
|
+
return this[PropertySymbol.propertyEventListeners].get('onsecuritypolicyviolation') ?? null;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
public set onsecuritypolicyviolation(value: ((event: Event) => void) | null) {
|
|
675
|
+
this[PropertySymbol.propertyEventListeners].set('onsecuritypolicyviolation', value);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
public get onseeked(): ((event: Event) => void) | null {
|
|
679
|
+
return this[PropertySymbol.propertyEventListeners].get('onseeked') ?? null;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
public set onseeked(value: ((event: Event) => void) | null) {
|
|
683
|
+
this[PropertySymbol.propertyEventListeners].set('onseeked', value);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
public get onseeking(): ((event: Event) => void) | null {
|
|
687
|
+
return this[PropertySymbol.propertyEventListeners].get('onseeking') ?? null;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
public set onseeking(value: ((event: Event) => void) | null) {
|
|
691
|
+
this[PropertySymbol.propertyEventListeners].set('onseeking', value);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
public get onselect(): ((event: Event) => void) | null {
|
|
695
|
+
return this[PropertySymbol.propertyEventListeners].get('onselect') ?? null;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
public set onselect(value: ((event: Event) => void) | null) {
|
|
699
|
+
this[PropertySymbol.propertyEventListeners].set('onselect', value);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
public get onslotchange(): ((event: Event) => void) | null {
|
|
703
|
+
return this[PropertySymbol.propertyEventListeners].get('onslotchange') ?? null;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
public set onslotchange(value: ((event: Event) => void) | null) {
|
|
707
|
+
this[PropertySymbol.propertyEventListeners].set('onslotchange', value);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
public get onstalled(): ((event: Event) => void) | null {
|
|
711
|
+
return this[PropertySymbol.propertyEventListeners].get('onstalled') ?? null;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
public set onstalled(value: ((event: Event) => void) | null) {
|
|
715
|
+
this[PropertySymbol.propertyEventListeners].set('onstalled', value);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
public get onsubmit(): ((event: Event) => void) | null {
|
|
719
|
+
return this[PropertySymbol.propertyEventListeners].get('onsubmit') ?? null;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
public set onsubmit(value: ((event: Event) => void) | null) {
|
|
723
|
+
this[PropertySymbol.propertyEventListeners].set('onsubmit', value);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
public get onsuspend(): ((event: Event) => void) | null {
|
|
727
|
+
return this[PropertySymbol.propertyEventListeners].get('onsuspend') ?? null;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
public set onsuspend(value: ((event: Event) => void) | null) {
|
|
731
|
+
this[PropertySymbol.propertyEventListeners].set('onsuspend', value);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
public get ontimeupdate(): ((event: Event) => void) | null {
|
|
735
|
+
return this[PropertySymbol.propertyEventListeners].get('ontimeupdate') ?? null;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
public set ontimeupdate(value: ((event: Event) => void) | null) {
|
|
739
|
+
this[PropertySymbol.propertyEventListeners].set('ontimeupdate', value);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
public get ontoggle(): ((event: Event) => void) | null {
|
|
743
|
+
return this[PropertySymbol.propertyEventListeners].get('ontoggle') ?? null;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
public set ontoggle(value: ((event: Event) => void) | null) {
|
|
747
|
+
this[PropertySymbol.propertyEventListeners].set('ontoggle', value);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
public get onvolumechange(): ((event: Event) => void) | null {
|
|
751
|
+
return this[PropertySymbol.propertyEventListeners].get('onvolumechange') ?? null;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
public set onvolumechange(value: ((event: Event) => void) | null) {
|
|
755
|
+
this[PropertySymbol.propertyEventListeners].set('onvolumechange', value);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
public get onwaiting(): ((event: Event) => void) | null {
|
|
759
|
+
return this[PropertySymbol.propertyEventListeners].get('onwaiting') ?? null;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
public set onwaiting(value: ((event: Event) => void) | null) {
|
|
763
|
+
this[PropertySymbol.propertyEventListeners].set('onwaiting', value);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
public get onwebkitanimationend(): ((event: Event) => void) | null {
|
|
767
|
+
return this[PropertySymbol.propertyEventListeners].get('onwebkitanimationend') ?? null;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
public set onwebkitanimationend(value: ((event: Event) => void) | null) {
|
|
771
|
+
this[PropertySymbol.propertyEventListeners].set('onwebkitanimationend', value);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
public get onwebkitanimationiteration(): ((event: Event) => void) | null {
|
|
775
|
+
return this[PropertySymbol.propertyEventListeners].get('onwebkitanimationiteration') ?? null;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
public set onwebkitanimationiteration(value: ((event: Event) => void) | null) {
|
|
779
|
+
this[PropertySymbol.propertyEventListeners].set('onwebkitanimationiteration', value);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
public get onwebkitanimationstart(): ((event: Event) => void) | null {
|
|
783
|
+
return this[PropertySymbol.propertyEventListeners].get('onwebkitanimationstart') ?? null;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
public set onwebkitanimationstart(value: ((event: Event) => void) | null) {
|
|
787
|
+
this[PropertySymbol.propertyEventListeners].set('onwebkitanimationstart', value);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
public get onwebkittransitionend(): ((event: Event) => void) | null {
|
|
791
|
+
return this[PropertySymbol.propertyEventListeners].get('onwebkittransitionend') ?? null;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
public set onwebkittransitionend(value: ((event: Event) => void) | null) {
|
|
795
|
+
this[PropertySymbol.propertyEventListeners].set('onwebkittransitionend', value);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
public get onwheel(): ((event: Event) => void) | null {
|
|
799
|
+
return this[PropertySymbol.propertyEventListeners].get('onwheel') ?? null;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
public set onwheel(value: ((event: Event) => void) | null) {
|
|
803
|
+
this[PropertySymbol.propertyEventListeners].set('onwheel', value);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
public get onauxclick(): ((event: Event) => void) | null {
|
|
807
|
+
return this[PropertySymbol.propertyEventListeners].get('onauxclick') ?? null;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
public set onauxclick(value: ((event: Event) => void) | null) {
|
|
811
|
+
this[PropertySymbol.propertyEventListeners].set('onauxclick', value);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
public get ongotpointercapture(): ((event: Event) => void) | null {
|
|
815
|
+
return this[PropertySymbol.propertyEventListeners].get('ongotpointercapture') ?? null;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
public set ongotpointercapture(value: ((event: Event) => void) | null) {
|
|
819
|
+
this[PropertySymbol.propertyEventListeners].set('ongotpointercapture', value);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
public get onlostpointercapture(): ((event: Event) => void) | null {
|
|
823
|
+
return this[PropertySymbol.propertyEventListeners].get('onlostpointercapture') ?? null;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
public set onlostpointercapture(value: ((event: Event) => void) | null) {
|
|
827
|
+
this[PropertySymbol.propertyEventListeners].set('onlostpointercapture', value);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
public get onpointerdown(): ((event: Event) => void) | null {
|
|
831
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerdown') ?? null;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
public set onpointerdown(value: ((event: Event) => void) | null) {
|
|
835
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerdown', value);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
public get onpointermove(): ((event: Event) => void) | null {
|
|
839
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointermove') ?? null;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
public set onpointermove(value: ((event: Event) => void) | null) {
|
|
843
|
+
this[PropertySymbol.propertyEventListeners].set('onpointermove', value);
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
public get onpointerrawupdate(): ((event: Event) => void) | null {
|
|
847
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerrawupdate') ?? null;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
public set onpointerrawupdate(value: ((event: Event) => void) | null) {
|
|
851
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerrawupdate', value);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
public get onpointerup(): ((event: Event) => void) | null {
|
|
855
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerup') ?? null;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
public set onpointerup(value: ((event: Event) => void) | null) {
|
|
859
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerup', value);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
public get onpointercancel(): ((event: Event) => void) | null {
|
|
863
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointercancel') ?? null;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
public set onpointercancel(value: ((event: Event) => void) | null) {
|
|
867
|
+
this[PropertySymbol.propertyEventListeners].set('onpointercancel', value);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
public get onpointerover(): ((event: Event) => void) | null {
|
|
871
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerover') ?? null;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
public set onpointerover(value: ((event: Event) => void) | null) {
|
|
875
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerover', value);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
public get onpointerout(): ((event: Event) => void) | null {
|
|
879
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerout') ?? null;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
public set onpointerout(value: ((event: Event) => void) | null) {
|
|
883
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerout', value);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
public get onpointerenter(): ((event: Event) => void) | null {
|
|
887
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerenter') ?? null;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
public set onpointerenter(value: ((event: Event) => void) | null) {
|
|
891
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerenter', value);
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
public get onpointerleave(): ((event: Event) => void) | null {
|
|
895
|
+
return this[PropertySymbol.propertyEventListeners].get('onpointerleave') ?? null;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
public set onpointerleave(value: ((event: Event) => void) | null) {
|
|
899
|
+
this[PropertySymbol.propertyEventListeners].set('onpointerleave', value);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
public get onselectstart(): ((event: Event) => void) | null {
|
|
903
|
+
return this[PropertySymbol.propertyEventListeners].get('onselectstart') ?? null;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
public set onselectstart(value: ((event: Event) => void) | null) {
|
|
907
|
+
this[PropertySymbol.propertyEventListeners].set('onselectstart', value);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
public get onselectionchange(): ((event: Event) => void) | null {
|
|
911
|
+
return this[PropertySymbol.propertyEventListeners].get('onselectionchange') ?? null;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
public set onselectionchange(value: ((event: Event) => void) | null) {
|
|
915
|
+
this[PropertySymbol.propertyEventListeners].set('onselectionchange', value);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
public get onanimationend(): ((event: Event) => void) | null {
|
|
919
|
+
return this[PropertySymbol.propertyEventListeners].get('onanimationend') ?? null;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
public set onanimationend(value: ((event: Event) => void) | null) {
|
|
923
|
+
this[PropertySymbol.propertyEventListeners].set('onanimationend', value);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
public get onanimationiteration(): ((event: Event) => void) | null {
|
|
927
|
+
return this[PropertySymbol.propertyEventListeners].get('onanimationiteration') ?? null;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
public set onanimationiteration(value: ((event: Event) => void) | null) {
|
|
931
|
+
this[PropertySymbol.propertyEventListeners].set('onanimationiteration', value);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
public get onanimationstart(): ((event: Event) => void) | null {
|
|
935
|
+
return this[PropertySymbol.propertyEventListeners].get('onanimationstart') ?? null;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
public set onanimationstart(value: ((event: Event) => void) | null) {
|
|
939
|
+
this[PropertySymbol.propertyEventListeners].set('onanimationstart', value);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
public get ontransitionrun(): ((event: Event) => void) | null {
|
|
943
|
+
return this[PropertySymbol.propertyEventListeners].get('ontransitionrun') ?? null;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
public set ontransitionrun(value: ((event: Event) => void) | null) {
|
|
947
|
+
this[PropertySymbol.propertyEventListeners].set('ontransitionrun', value);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
public get ontransitionstart(): ((event: Event) => void) | null {
|
|
951
|
+
return this[PropertySymbol.propertyEventListeners].get('ontransitionstart') ?? null;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
public set ontransitionstart(value: ((event: Event) => void) | null) {
|
|
955
|
+
this[PropertySymbol.propertyEventListeners].set('ontransitionstart', value);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
public get ontransitionend(): ((event: Event) => void) | null {
|
|
959
|
+
return this[PropertySymbol.propertyEventListeners].get('ontransitionend') ?? null;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
public set ontransitionend(value: ((event: Event) => void) | null) {
|
|
963
|
+
this[PropertySymbol.propertyEventListeners].set('ontransitionend', value);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
public get ontransitioncancel(): ((event: Event) => void) | null {
|
|
967
|
+
return this[PropertySymbol.propertyEventListeners].get('ontransitioncancel') ?? null;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
public set ontransitioncancel(value: ((event: Event) => void) | null) {
|
|
971
|
+
this[PropertySymbol.propertyEventListeners].set('ontransitioncancel', value);
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
public get oncopy(): ((event: Event) => void) | null {
|
|
975
|
+
return this[PropertySymbol.propertyEventListeners].get('oncopy') ?? null;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
public set oncopy(value: ((event: Event) => void) | null) {
|
|
979
|
+
this[PropertySymbol.propertyEventListeners].set('oncopy', value);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
public get oncut(): ((event: Event) => void) | null {
|
|
983
|
+
return this[PropertySymbol.propertyEventListeners].get('oncut') ?? null;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
public set oncut(value: ((event: Event) => void) | null) {
|
|
987
|
+
this[PropertySymbol.propertyEventListeners].set('oncut', value);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
public get onpaste(): ((event: Event) => void) | null {
|
|
991
|
+
return this[PropertySymbol.propertyEventListeners].get('onpaste') ?? null;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
public set onpaste(value: ((event: Event) => void) | null) {
|
|
995
|
+
this[PropertySymbol.propertyEventListeners].set('onpaste', value);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
public get onscrollend(): ((event: Event) => void) | null {
|
|
999
|
+
return this[PropertySymbol.propertyEventListeners].get('onscrollend') ?? null;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
public set onscrollend(value: ((event: Event) => void) | null) {
|
|
1003
|
+
this[PropertySymbol.propertyEventListeners].set('onscrollend', value);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
public get onscrollsnapchange(): ((event: Event) => void) | null {
|
|
1007
|
+
return this[PropertySymbol.propertyEventListeners].get('onscrollsnapchange') ?? null;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
public set onscrollsnapchange(value: ((event: Event) => void) | null) {
|
|
1011
|
+
this[PropertySymbol.propertyEventListeners].set('onscrollsnapchange', value);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
public get onscrollsnapchanging(): ((event: Event) => void) | null {
|
|
1015
|
+
return this[PropertySymbol.propertyEventListeners].get('onscrollsnapchanging') ?? null;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
public set onscrollsnapchanging(value: ((event: Event) => void) | null) {
|
|
1019
|
+
this[PropertySymbol.propertyEventListeners].set('onscrollsnapchanging', value);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/* eslint-enable jsdoc/require-jsdoc */
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Returns adopted style sheets.
|
|
1026
|
+
*
|
|
1027
|
+
* @returns Adopted style sheets.
|
|
1028
|
+
*/
|
|
1029
|
+
public get adoptedStyleSheets(): CSSStyleSheet[] {
|
|
1030
|
+
const window = this[PropertySymbol.window];
|
|
1031
|
+
return new Proxy(this[PropertySymbol.adoptedStyleSheets], {
|
|
1032
|
+
set(target, property, value, receiver) {
|
|
1033
|
+
if (typeof property === 'string' && String(Number(property)) === property) {
|
|
1034
|
+
if (!(value instanceof window.CSSStyleSheet)) {
|
|
1035
|
+
throw new window.TypeError(`Failed to convert value to 'CSSStyleSheet'.`);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
return Reflect.set(target, property, value, receiver);
|
|
1039
|
+
},
|
|
1040
|
+
get(target, property, receiver) {
|
|
1041
|
+
if (typeof property === 'string' && String(Number(property)) === property) {
|
|
1042
|
+
return Reflect.get(target, property, receiver);
|
|
1043
|
+
}
|
|
1044
|
+
if (property === 'push' || property === 'unshift') {
|
|
1045
|
+
return (...args: any[]) => {
|
|
1046
|
+
for (const arg of args) {
|
|
1047
|
+
if (!(arg instanceof window.CSSStyleSheet)) {
|
|
1048
|
+
throw new window.TypeError(`Failed to convert value to 'CSSStyleSheet'.`);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
return Array.prototype[property].apply(target, args);
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
return Reflect.get(target, property, receiver);
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Sets adopted style sheets.
|
|
1061
|
+
*
|
|
1062
|
+
* @param value Adopted style sheets.
|
|
1063
|
+
*/
|
|
1064
|
+
public set adoptedStyleSheets(value: CSSStyleSheet[]) {
|
|
1065
|
+
if (!Array.isArray(value)) {
|
|
1066
|
+
throw new this[PropertySymbol.window].TypeError(
|
|
1067
|
+
`Failed to set the 'adoptedStyleSheets' property on 'Document': The provided value cannot be converted to a sequence.`
|
|
1068
|
+
);
|
|
1069
|
+
}
|
|
1070
|
+
for (const sheet of value) {
|
|
1071
|
+
if (!(sheet instanceof this[PropertySymbol.window].CSSStyleSheet)) {
|
|
1072
|
+
throw new this[PropertySymbol.window].TypeError(
|
|
1073
|
+
`Failed to set the 'adoptedStyleSheets' property on 'Document': Failed to convert value to 'CSSStyleSheet'.`
|
|
1074
|
+
);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
this[PropertySymbol.adoptedStyleSheets] = value;
|
|
1078
|
+
this[PropertySymbol.clearComputedStyleCache]();
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Returns DOM implementation.
|
|
1083
|
+
*
|
|
1084
|
+
* @returns DOM implementation.
|
|
1085
|
+
*/
|
|
1086
|
+
public get implementation(): DOMImplementation {
|
|
1087
|
+
return this[PropertySymbol.implementation];
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Returns document ready state.
|
|
1092
|
+
*
|
|
1093
|
+
* @returns Document ready state.
|
|
1094
|
+
*/
|
|
1095
|
+
public get readyState(): DocumentReadyStateEnum {
|
|
1096
|
+
return this[PropertySymbol.readyState];
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Returns referrer.
|
|
1101
|
+
*
|
|
1102
|
+
* @returns Referrer.
|
|
1103
|
+
*/
|
|
1104
|
+
public get referrer(): string {
|
|
1105
|
+
return this[PropertySymbol.referrer];
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Returns default view.
|
|
1110
|
+
*
|
|
1111
|
+
* @returns Default view.
|
|
1112
|
+
*/
|
|
1113
|
+
public get defaultView(): BrowserWindow | null {
|
|
1114
|
+
return this[PropertySymbol.defaultView];
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Returns document children.
|
|
1119
|
+
*/
|
|
1120
|
+
public get children(): HTMLCollection<Element> {
|
|
1121
|
+
if (!this[PropertySymbol.children]) {
|
|
1122
|
+
const elements = this[PropertySymbol.elementArray];
|
|
1123
|
+
this[PropertySymbol.children] = new HTMLCollection<Element>(
|
|
1124
|
+
PropertySymbol.illegalConstructor,
|
|
1125
|
+
() => elements
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
return this[PropertySymbol.children];
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns character set.
|
|
1133
|
+
*
|
|
1134
|
+
* @deprecated
|
|
1135
|
+
* @returns Character set.
|
|
1136
|
+
*/
|
|
1137
|
+
public get charset(): string {
|
|
1138
|
+
return this.characterSet;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Returns character set.
|
|
1143
|
+
*
|
|
1144
|
+
* @returns Character set.
|
|
1145
|
+
*/
|
|
1146
|
+
public get characterSet(): string {
|
|
1147
|
+
const charset = QuerySelector.querySelector(this, 'meta[charset]')?.getAttributeNS(
|
|
1148
|
+
null,
|
|
1149
|
+
'charset'
|
|
1150
|
+
);
|
|
1151
|
+
return charset ? charset : 'UTF-8';
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Returns title.
|
|
1156
|
+
*
|
|
1157
|
+
* @returns Title.
|
|
1158
|
+
*/
|
|
1159
|
+
public get title(): string {
|
|
1160
|
+
const element = <HTMLTitleElement | null>ParentNodeUtility.getElementByTagName(this, 'title');
|
|
1161
|
+
if (element) {
|
|
1162
|
+
return element.text.trim();
|
|
1163
|
+
}
|
|
1164
|
+
return '';
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Returns set title.
|
|
1169
|
+
*
|
|
1170
|
+
*/
|
|
1171
|
+
public set title(title: string) {
|
|
1172
|
+
const element = ParentNodeUtility.getElementByTagName(this, 'title');
|
|
1173
|
+
if (element) {
|
|
1174
|
+
element.textContent = title;
|
|
1175
|
+
} else {
|
|
1176
|
+
const newElement = this.createElement('title');
|
|
1177
|
+
newElement.textContent = title;
|
|
1178
|
+
this.head.appendChild(newElement);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Returns a collection of all area elements and a elements in a document with a value for the href attribute.
|
|
1184
|
+
*/
|
|
1185
|
+
public get links(): HTMLCollection<HTMLAnchorElement | HTMLAreaElement> {
|
|
1186
|
+
if (!this[PropertySymbol.links]) {
|
|
1187
|
+
this[PropertySymbol.links] = new HTMLCollection<HTMLAnchorElement | HTMLAreaElement>(
|
|
1188
|
+
PropertySymbol.illegalConstructor,
|
|
1189
|
+
() =>
|
|
1190
|
+
<(HTMLAnchorElement | HTMLAreaElement)[]>(
|
|
1191
|
+
QuerySelector.querySelectorAll(this, 'a[href],area[href]')[PropertySymbol.items]
|
|
1192
|
+
)
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1195
|
+
return this[PropertySymbol.links];
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Returns a collection of all form elements in a document.
|
|
1200
|
+
*/
|
|
1201
|
+
public get forms(): HTMLCollection<HTMLFormElement> {
|
|
1202
|
+
if (!this[PropertySymbol.forms]) {
|
|
1203
|
+
this[PropertySymbol.forms] = <HTMLCollection<HTMLFormElement>>(
|
|
1204
|
+
ParentNodeUtility.getElementsByTagName(this, 'form')
|
|
1205
|
+
);
|
|
1206
|
+
}
|
|
1207
|
+
return this[PropertySymbol.forms];
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Last element child.
|
|
1212
|
+
*
|
|
1213
|
+
* @returns Element.
|
|
1214
|
+
*/
|
|
1215
|
+
public get childElementCount(): number {
|
|
1216
|
+
return this[PropertySymbol.elementArray].length;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* First element child.
|
|
1221
|
+
*
|
|
1222
|
+
* @returns Element.
|
|
1223
|
+
*/
|
|
1224
|
+
public get firstElementChild(): Element {
|
|
1225
|
+
return this[PropertySymbol.elementArray][0] ?? null;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Last element child.
|
|
1230
|
+
*
|
|
1231
|
+
* @returns Element.
|
|
1232
|
+
*/
|
|
1233
|
+
public get lastElementChild(): Element {
|
|
1234
|
+
const children = this[PropertySymbol.elementArray];
|
|
1235
|
+
return children[children.length - 1] ?? null;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Returns cookie string.
|
|
1240
|
+
*
|
|
1241
|
+
* @returns Cookie.
|
|
1242
|
+
*/
|
|
1243
|
+
public get cookie(): string {
|
|
1244
|
+
const browserFrame = new WindowBrowserContext(this[PropertySymbol.window]).getBrowserFrame();
|
|
1245
|
+
if (!browserFrame) {
|
|
1246
|
+
return '';
|
|
1247
|
+
}
|
|
1248
|
+
return CookieStringUtility.cookiesToString(
|
|
1249
|
+
browserFrame.page.context.cookieContainer.getCookies(
|
|
1250
|
+
<URL>(<unknown>this[PropertySymbol.window].location),
|
|
1251
|
+
true
|
|
1252
|
+
)
|
|
1253
|
+
);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Sets a cookie string.
|
|
1258
|
+
*
|
|
1259
|
+
* @param cookie Cookie string.
|
|
1260
|
+
*/
|
|
1261
|
+
public set cookie(value: string) {
|
|
1262
|
+
const browserFrame = new WindowBrowserContext(this[PropertySymbol.window]).getBrowserFrame();
|
|
1263
|
+
if (!browserFrame) {
|
|
1264
|
+
return;
|
|
1265
|
+
}
|
|
1266
|
+
const cookie = CookieStringUtility.stringToCookie(this[PropertySymbol.window].location, value);
|
|
1267
|
+
if (cookie) {
|
|
1268
|
+
browserFrame.page.context.cookieContainer.addCookies([cookie]);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Node name.
|
|
1274
|
+
*
|
|
1275
|
+
* @returns Node name.
|
|
1276
|
+
*/
|
|
1277
|
+
public get nodeName(): string {
|
|
1278
|
+
return '#document';
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Returns <html> element.
|
|
1283
|
+
*
|
|
1284
|
+
* @returns Element.
|
|
1285
|
+
*/
|
|
1286
|
+
public get documentElement(): HTMLHtmlElement {
|
|
1287
|
+
return <HTMLHtmlElement>this[PropertySymbol.elementArray][0] ?? null;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Returns document type element.
|
|
1292
|
+
*
|
|
1293
|
+
* @returns Document type.
|
|
1294
|
+
*/
|
|
1295
|
+
public get doctype(): DocumentType {
|
|
1296
|
+
for (const node of this[PropertySymbol.nodeArray]) {
|
|
1297
|
+
if (node instanceof DocumentType) {
|
|
1298
|
+
return node;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
return null!;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Returns <body> element.
|
|
1306
|
+
*
|
|
1307
|
+
* @returns Element.
|
|
1308
|
+
*/
|
|
1309
|
+
public get body(): HTMLBodyElement {
|
|
1310
|
+
const documentElement = this.documentElement;
|
|
1311
|
+
return documentElement
|
|
1312
|
+
? <HTMLBodyElement>ParentNodeUtility.getElementByTagName(documentElement, 'body')
|
|
1313
|
+
: null!;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Returns <head> element.
|
|
1318
|
+
*
|
|
1319
|
+
* @returns Element.
|
|
1320
|
+
*/
|
|
1321
|
+
public get head(): HTMLHeadElement {
|
|
1322
|
+
const documentElement = this.documentElement;
|
|
1323
|
+
return documentElement
|
|
1324
|
+
? <HTMLHeadElement>ParentNodeUtility.getElementByTagName(documentElement, 'head')
|
|
1325
|
+
: null!;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Returns CSS style sheets.
|
|
1330
|
+
*
|
|
1331
|
+
* @returns CSS style sheets.
|
|
1332
|
+
*/
|
|
1333
|
+
public get styleSheets(): CSSStyleSheet[] {
|
|
1334
|
+
const styles = <NodeList<HTMLLinkElement | HTMLStyleElement>>(
|
|
1335
|
+
QuerySelector.querySelectorAll(this, 'link[rel="stylesheet"][href],style')
|
|
1336
|
+
);
|
|
1337
|
+
const styleSheets = [];
|
|
1338
|
+
for (const style of styles) {
|
|
1339
|
+
const sheet = style.sheet;
|
|
1340
|
+
if (sheet) {
|
|
1341
|
+
styleSheets.push(sheet);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
return styleSheets;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Returns active element.
|
|
1349
|
+
*
|
|
1350
|
+
* @returns Active element.
|
|
1351
|
+
*/
|
|
1352
|
+
public get activeElement(): HTMLElement | SVGElement {
|
|
1353
|
+
if (
|
|
1354
|
+
this[PropertySymbol.activeElement] &&
|
|
1355
|
+
!this[PropertySymbol.activeElement][PropertySymbol.isConnected]
|
|
1356
|
+
) {
|
|
1357
|
+
this[PropertySymbol.activeElement] = null;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (this[PropertySymbol.activeElement]) {
|
|
1361
|
+
let rootNode: ShadowRoot | Document = <ShadowRoot | Document>(
|
|
1362
|
+
this[PropertySymbol.activeElement].getRootNode()
|
|
1363
|
+
);
|
|
1364
|
+
let activeElement = this[PropertySymbol.activeElement];
|
|
1365
|
+
while (rootNode !== this) {
|
|
1366
|
+
activeElement = <HTMLElement | SVGElement>(<ShadowRoot>rootNode).host;
|
|
1367
|
+
rootNode = activeElement ? <ShadowRoot | Document>activeElement.getRootNode() : this;
|
|
1368
|
+
}
|
|
1369
|
+
return activeElement;
|
|
1370
|
+
}
|
|
1371
|
+
return this[PropertySymbol.activeElement] || this.body || this.documentElement || null;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Returns scrolling element.
|
|
1376
|
+
*
|
|
1377
|
+
* @returns Scrolling element.
|
|
1378
|
+
*/
|
|
1379
|
+
public get scrollingElement(): HTMLElement {
|
|
1380
|
+
return this.documentElement;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Returns location.
|
|
1385
|
+
*
|
|
1386
|
+
* @returns Location.
|
|
1387
|
+
*/
|
|
1388
|
+
public get location(): Location {
|
|
1389
|
+
return this[PropertySymbol.window].location;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Returns scripts.
|
|
1394
|
+
*
|
|
1395
|
+
* @returns Scripts.
|
|
1396
|
+
*/
|
|
1397
|
+
public get scripts(): HTMLCollection<HTMLScriptElement> {
|
|
1398
|
+
return this.getElementsByTagName('script');
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Returns base URI.
|
|
1403
|
+
*
|
|
1404
|
+
* @override
|
|
1405
|
+
* @returns Base URI.
|
|
1406
|
+
*/
|
|
1407
|
+
public get baseURI(): string {
|
|
1408
|
+
const element = <HTMLBaseElement>ParentNodeUtility.getElementByTagName(this, 'base');
|
|
1409
|
+
if (element) {
|
|
1410
|
+
return element.href;
|
|
1411
|
+
}
|
|
1412
|
+
return this[PropertySymbol.window].location.href;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* Returns URL.
|
|
1417
|
+
*
|
|
1418
|
+
* @returns URL of the current document.
|
|
1419
|
+
* */
|
|
1420
|
+
public get URL(): string {
|
|
1421
|
+
return this[PropertySymbol.window].location.href;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Returns document URI.
|
|
1426
|
+
*
|
|
1427
|
+
* @returns URL of the current document.
|
|
1428
|
+
* */
|
|
1429
|
+
public get documentURI(): string {
|
|
1430
|
+
return this.URL;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Returns domain.
|
|
1435
|
+
*
|
|
1436
|
+
* @returns Domain.
|
|
1437
|
+
* */
|
|
1438
|
+
public get domain(): string {
|
|
1439
|
+
return this[PropertySymbol.window].location.hostname;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Returns document visibility state.
|
|
1444
|
+
*
|
|
1445
|
+
* @returns the visibility state of the current document.
|
|
1446
|
+
* */
|
|
1447
|
+
public get visibilityState(): VisibilityStateEnum {
|
|
1448
|
+
if (this.defaultView) {
|
|
1449
|
+
return VisibilityStateEnum.visible;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
return VisibilityStateEnum.hidden;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Returns document hidden state.
|
|
1457
|
+
*
|
|
1458
|
+
* @returns the hidden state of the current document.
|
|
1459
|
+
* */
|
|
1460
|
+
public get hidden(): boolean {
|
|
1461
|
+
if (this.defaultView) {
|
|
1462
|
+
return false;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
return true;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Gets the currently executing script element.
|
|
1470
|
+
*
|
|
1471
|
+
* @returns the currently executing script element.
|
|
1472
|
+
*/
|
|
1473
|
+
public get currentScript(): HTMLScriptElement | SVGScriptElement | null {
|
|
1474
|
+
return this[PropertySymbol.currentScript];
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Returns content type.
|
|
1479
|
+
*
|
|
1480
|
+
* @returns Content type.
|
|
1481
|
+
*/
|
|
1482
|
+
public get contentType(): string {
|
|
1483
|
+
return this[PropertySymbol.contentType];
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Returns the timeline associated with the document.
|
|
1488
|
+
*
|
|
1489
|
+
* @returns The timeline associated with the document.
|
|
1490
|
+
*/
|
|
1491
|
+
public get timeline(): DocumentTimeline {
|
|
1492
|
+
return this[PropertySymbol.timeline];
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
|
|
1497
|
+
*
|
|
1498
|
+
* @param nodes List of Node or DOMString.
|
|
1499
|
+
*/
|
|
1500
|
+
public append(...nodes: (Node | string)[]): void {
|
|
1501
|
+
ParentNodeUtility.append(this, ...nodes);
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Inserts a set of Node objects or DOMString objects before the first child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
|
|
1506
|
+
*
|
|
1507
|
+
* @param nodes List of Node or DOMString.
|
|
1508
|
+
*/
|
|
1509
|
+
public prepend(...nodes: (Node | string)[]): void {
|
|
1510
|
+
ParentNodeUtility.prepend(this, ...nodes);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Replaces the existing children of a node with a specified new set of children.
|
|
1515
|
+
*
|
|
1516
|
+
* @param nodes List of Node or DOMString.
|
|
1517
|
+
*/
|
|
1518
|
+
public replaceChildren(...nodes: (Node | string)[]): void {
|
|
1519
|
+
ParentNodeUtility.replaceChildren(this, ...nodes);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Query CSS selector to find matching nodes.
|
|
1524
|
+
*
|
|
1525
|
+
* @param selector CSS selector.
|
|
1526
|
+
* @returns Matching elements.
|
|
1527
|
+
*/
|
|
1528
|
+
public querySelectorAll<K extends keyof IHTMLElementTagNameMap>(
|
|
1529
|
+
selector: K
|
|
1530
|
+
): NodeList<IHTMLElementTagNameMap[K]>;
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Query CSS selector to find matching elements.
|
|
1534
|
+
*
|
|
1535
|
+
* @param selector CSS selector.
|
|
1536
|
+
* @returns Matching elements.
|
|
1537
|
+
*/
|
|
1538
|
+
public querySelectorAll<K extends keyof ISVGElementTagNameMap>(
|
|
1539
|
+
selector: K
|
|
1540
|
+
): NodeList<ISVGElementTagNameMap[K]>;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Query CSS selector to find matching elements.
|
|
1544
|
+
*
|
|
1545
|
+
* @param selector CSS selector.
|
|
1546
|
+
* @returns Matching elements.
|
|
1547
|
+
*/
|
|
1548
|
+
public querySelectorAll<E extends Element = Element>(selector: string): NodeList<E>;
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* Query CSS selector to find matching elements.
|
|
1552
|
+
*
|
|
1553
|
+
* @param selector CSS selector.
|
|
1554
|
+
* @returns Matching elements.
|
|
1555
|
+
*/
|
|
1556
|
+
public querySelectorAll(selector: string): NodeList<Element> {
|
|
1557
|
+
return QuerySelector.querySelectorAll(this, selector);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Query CSS Selector to find matching node.
|
|
1562
|
+
*
|
|
1563
|
+
* @param selector CSS selector.
|
|
1564
|
+
* @returns Matching element.
|
|
1565
|
+
*/
|
|
1566
|
+
public querySelector<K extends keyof IHTMLElementTagNameMap>(
|
|
1567
|
+
selector: K
|
|
1568
|
+
): IHTMLElementTagNameMap[K] | null;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Query CSS Selector to find matching node.
|
|
1572
|
+
*
|
|
1573
|
+
* @param selector CSS selector.
|
|
1574
|
+
* @returns Matching element.
|
|
1575
|
+
*/
|
|
1576
|
+
public querySelector<K extends keyof ISVGElementTagNameMap>(
|
|
1577
|
+
selector: K
|
|
1578
|
+
): ISVGElementTagNameMap[K] | null;
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* Query CSS Selector to find matching node.
|
|
1582
|
+
*
|
|
1583
|
+
* @param selector CSS selector.
|
|
1584
|
+
* @returns Matching element.
|
|
1585
|
+
*/
|
|
1586
|
+
public querySelector<E extends Element = Element>(selector: string): E | null;
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Query CSS Selector to find matching node.
|
|
1590
|
+
*
|
|
1591
|
+
* @param selector CSS selector.
|
|
1592
|
+
* @returns Matching element.
|
|
1593
|
+
*/
|
|
1594
|
+
public querySelector(selector: string): Element | null {
|
|
1595
|
+
return QuerySelector.querySelector(this, selector);
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Returns true if the command is supported.
|
|
1599
|
+
* @deprecated
|
|
1600
|
+
* @param _ Command.
|
|
1601
|
+
* @returns True if the command is supported, false otherwise.
|
|
1602
|
+
*/
|
|
1603
|
+
public queryCommandSupported(_: string): boolean {
|
|
1604
|
+
if (!arguments.length) {
|
|
1605
|
+
throw new this[PropertySymbol.window].TypeError(
|
|
1606
|
+
"Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present."
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
return true;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Returns an elements by class name.
|
|
1614
|
+
*
|
|
1615
|
+
* @param className Tag name.
|
|
1616
|
+
* @returns Matching element.
|
|
1617
|
+
*/
|
|
1618
|
+
public getElementsByClassName(className: string): HTMLCollection<Element> {
|
|
1619
|
+
return ParentNodeUtility.getElementsByClassName(this, className);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Returns an elements by tag name.
|
|
1624
|
+
*
|
|
1625
|
+
* @param tagName Tag name.
|
|
1626
|
+
* @returns Matching element.
|
|
1627
|
+
*/
|
|
1628
|
+
public getElementsByTagName<K extends keyof IHTMLElementTagNameMap>(
|
|
1629
|
+
tagName: K
|
|
1630
|
+
): HTMLCollection<IHTMLElementTagNameMap[K]>;
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Returns an elements by tag name.
|
|
1634
|
+
*
|
|
1635
|
+
* @param tagName Tag name.
|
|
1636
|
+
* @returns Matching element.
|
|
1637
|
+
*/
|
|
1638
|
+
public getElementsByTagName<K extends keyof ISVGElementTagNameMap>(
|
|
1639
|
+
tagName: K
|
|
1640
|
+
): HTMLCollection<ISVGElementTagNameMap[K]>;
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* Returns an elements by tag name.
|
|
1644
|
+
*
|
|
1645
|
+
* @param tagName Tag name.
|
|
1646
|
+
* @returns Matching element.
|
|
1647
|
+
*/
|
|
1648
|
+
public getElementsByTagName(tagName: string): HTMLCollection<Element>;
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Returns an elements by tag name.
|
|
1652
|
+
*
|
|
1653
|
+
* @param tagName Tag name.
|
|
1654
|
+
* @returns Matching element.
|
|
1655
|
+
*/
|
|
1656
|
+
public getElementsByTagName(tagName: string): HTMLCollection<Element> {
|
|
1657
|
+
return ParentNodeUtility.getElementsByTagName(this, tagName);
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Returns an elements by tag name and namespace.
|
|
1662
|
+
*
|
|
1663
|
+
* @param namespaceURI Namespace URI.
|
|
1664
|
+
* @param tagName Tag name.
|
|
1665
|
+
* @returns Matching element.
|
|
1666
|
+
*/
|
|
1667
|
+
public getElementsByTagNameNS<K extends keyof IHTMLElementTagNameMap>(
|
|
1668
|
+
namespaceURI: 'http://www.w3.org/1999/xhtml',
|
|
1669
|
+
tagName: K
|
|
1670
|
+
): HTMLCollection<IHTMLElementTagNameMap[K]>;
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Returns an elements by tag name and namespace.
|
|
1674
|
+
*
|
|
1675
|
+
* @param namespaceURI Namespace URI.
|
|
1676
|
+
* @param tagName Tag name.
|
|
1677
|
+
* @returns Matching element.
|
|
1678
|
+
*/
|
|
1679
|
+
public getElementsByTagNameNS<K extends keyof ISVGElementTagNameMap>(
|
|
1680
|
+
namespaceURI: 'http://www.w3.org/2000/svg',
|
|
1681
|
+
tagName: K
|
|
1682
|
+
): HTMLCollection<ISVGElementTagNameMap[K]>;
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* Returns an elements by tag name and namespace.
|
|
1686
|
+
*
|
|
1687
|
+
* @param namespaceURI Namespace URI.
|
|
1688
|
+
* @param tagName Tag name.
|
|
1689
|
+
* @returns Matching element.
|
|
1690
|
+
*/
|
|
1691
|
+
public getElementsByTagNameNS(namespaceURI: string, tagName: string): HTMLCollection<Element>;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Returns an elements by tag name and namespace.
|
|
1695
|
+
*
|
|
1696
|
+
* @param namespaceURI Namespace URI.
|
|
1697
|
+
* @param tagName Tag name.
|
|
1698
|
+
* @returns Matching element.
|
|
1699
|
+
*/
|
|
1700
|
+
public getElementsByTagNameNS(namespaceURI: string, tagName: string): HTMLCollection<Element> {
|
|
1701
|
+
return ParentNodeUtility.getElementsByTagNameNS(this, namespaceURI, tagName);
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Returns an element by ID.
|
|
1706
|
+
*
|
|
1707
|
+
* @param id ID.
|
|
1708
|
+
* @returns Matching element.
|
|
1709
|
+
*/
|
|
1710
|
+
public getElementById(id: string): Element | null {
|
|
1711
|
+
return <Element>ParentNodeUtility.getElementById(this, id);
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Returns an element by Name.
|
|
1716
|
+
*
|
|
1717
|
+
* @returns Matching element.
|
|
1718
|
+
* @param name
|
|
1719
|
+
*/
|
|
1720
|
+
public getElementsByName(name: string): NodeList<Element> {
|
|
1721
|
+
return QuerySelector.querySelectorAll(this, `[name="${name}"]`);
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* Replaces the document HTML with new HTML.
|
|
1726
|
+
*
|
|
1727
|
+
* @param html HTML.
|
|
1728
|
+
*/
|
|
1729
|
+
public write(html: string): void {
|
|
1730
|
+
if (this[PropertySymbol.isFirstWrite] || this[PropertySymbol.isFirstWriteAfterOpen]) {
|
|
1731
|
+
if (this[PropertySymbol.isFirstWrite]) {
|
|
1732
|
+
if (!this[PropertySymbol.isFirstWriteAfterOpen]) {
|
|
1733
|
+
this.open();
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
this[PropertySymbol.isFirstWrite] = false;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
const { documentElement, head, body } = this;
|
|
1740
|
+
|
|
1741
|
+
if (!documentElement || !head || !body) {
|
|
1742
|
+
this.open();
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
this[PropertySymbol.isFirstWrite] = false;
|
|
1746
|
+
this[PropertySymbol.isFirstWriteAfterOpen] = false;
|
|
1747
|
+
|
|
1748
|
+
new HTMLParser(this[PropertySymbol.window], {
|
|
1749
|
+
evaluateScripts: true
|
|
1750
|
+
}).parse(html, this);
|
|
1751
|
+
} else {
|
|
1752
|
+
new HTMLParser(this[PropertySymbol.window], {
|
|
1753
|
+
evaluateScripts: true
|
|
1754
|
+
}).parse(html, this.body);
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Opens the document.
|
|
1760
|
+
*
|
|
1761
|
+
* @returns Document.
|
|
1762
|
+
*/
|
|
1763
|
+
public open(): Document {
|
|
1764
|
+
this[PropertySymbol.isFirstWriteAfterOpen] = true;
|
|
1765
|
+
|
|
1766
|
+
for (const eventType of this[PropertySymbol.listeners].bubbling.keys()) {
|
|
1767
|
+
const listeners = this[PropertySymbol.listeners].bubbling.get(eventType);
|
|
1768
|
+
if (listeners) {
|
|
1769
|
+
for (const listener of listeners) {
|
|
1770
|
+
this.removeEventListener(eventType, listener);
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
for (const eventType of this[PropertySymbol.listeners].capturing.keys()) {
|
|
1776
|
+
const listeners = this[PropertySymbol.listeners].capturing.get(eventType);
|
|
1777
|
+
if (listeners) {
|
|
1778
|
+
for (const listener of listeners) {
|
|
1779
|
+
this.removeEventListener(eventType, listener);
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
const childNodes = this[PropertySymbol.nodeArray];
|
|
1785
|
+
while (childNodes.length) {
|
|
1786
|
+
this.removeChild(childNodes[0]);
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
// Default document elements
|
|
1790
|
+
const doctype = this[PropertySymbol.implementation].createDocumentType('html', '', '');
|
|
1791
|
+
const documentElement = this.createElement('html');
|
|
1792
|
+
const bodyElement = this.createElement('body');
|
|
1793
|
+
const headElement = this.createElement('head');
|
|
1794
|
+
|
|
1795
|
+
this.appendChild(doctype);
|
|
1796
|
+
this.appendChild(documentElement);
|
|
1797
|
+
|
|
1798
|
+
documentElement.appendChild(headElement);
|
|
1799
|
+
documentElement.appendChild(bodyElement);
|
|
1800
|
+
|
|
1801
|
+
return this;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Closes the document.
|
|
1806
|
+
*/
|
|
1807
|
+
public close(): void {}
|
|
1808
|
+
|
|
1809
|
+
/* eslint-disable jsdoc/valid-types */
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Creates an element.
|
|
1813
|
+
*
|
|
1814
|
+
* @param qualifiedName Tag name.
|
|
1815
|
+
* @param [options] Options.
|
|
1816
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1817
|
+
* @returns Element.
|
|
1818
|
+
*/
|
|
1819
|
+
public createElement<K extends keyof IHTMLElementTagNameMap>(
|
|
1820
|
+
qualifiedName: K,
|
|
1821
|
+
options?: { is?: string }
|
|
1822
|
+
): IHTMLElementTagNameMap[K];
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Creates an element.
|
|
1826
|
+
*
|
|
1827
|
+
* @param qualifiedName Tag name.
|
|
1828
|
+
* @param [options] Options.
|
|
1829
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1830
|
+
* @returns Element.
|
|
1831
|
+
*/
|
|
1832
|
+
public createElement<K extends keyof ISVGElementTagNameMap>(
|
|
1833
|
+
qualifiedName: K,
|
|
1834
|
+
options?: { is?: string }
|
|
1835
|
+
): ISVGElementTagNameMap[K];
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* Creates an element.
|
|
1839
|
+
*
|
|
1840
|
+
* @param qualifiedName Tag name.
|
|
1841
|
+
* @param [options] Options.
|
|
1842
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1843
|
+
* @returns Element.
|
|
1844
|
+
*/
|
|
1845
|
+
public createElement(qualifiedName: string, options?: { is?: string }): HTMLElement;
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Creates an element.
|
|
1849
|
+
*
|
|
1850
|
+
* @param qualifiedName Tag name.
|
|
1851
|
+
* @param [options] Options.
|
|
1852
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1853
|
+
* @returns Element.
|
|
1854
|
+
*/
|
|
1855
|
+
public createElement(qualifiedName: string, options?: { is?: string }): HTMLElement {
|
|
1856
|
+
return <HTMLElement>(
|
|
1857
|
+
this.createElementNS(
|
|
1858
|
+
NamespaceURI.html,
|
|
1859
|
+
StringUtility.asciiLowerCase(String(qualifiedName)),
|
|
1860
|
+
options
|
|
1861
|
+
)
|
|
1862
|
+
);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Creates an element with the specified namespace URI and qualified name.
|
|
1867
|
+
*
|
|
1868
|
+
* @param namespaceURI Namespace URI.
|
|
1869
|
+
* @param qualifiedName Tag name.
|
|
1870
|
+
* @param [options] Options.
|
|
1871
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1872
|
+
* @returns Element.
|
|
1873
|
+
*/
|
|
1874
|
+
public createElementNS<K extends keyof IHTMLElementTagNameMap>(
|
|
1875
|
+
namespaceURI: 'http://www.w3.org/1999/xhtml',
|
|
1876
|
+
qualifiedName: K,
|
|
1877
|
+
options?: { is?: string }
|
|
1878
|
+
): IHTMLElementTagNameMap[K];
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Creates an element with the specified namespace URI and qualified name.
|
|
1882
|
+
*
|
|
1883
|
+
* @param namespaceURI Namespace URI.
|
|
1884
|
+
* @param qualifiedName Tag name.
|
|
1885
|
+
* @param [options] Options.
|
|
1886
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1887
|
+
* @returns Element.
|
|
1888
|
+
*/
|
|
1889
|
+
public createElementNS<K extends keyof ISVGElementTagNameMap>(
|
|
1890
|
+
namespaceURI: 'http://www.w3.org/2000/svg',
|
|
1891
|
+
qualifiedName: K,
|
|
1892
|
+
options?: { is?: string }
|
|
1893
|
+
): ISVGElementTagNameMap[K];
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Creates an element with the specified namespace URI and qualified name.
|
|
1897
|
+
*
|
|
1898
|
+
* @param namespaceURI Namespace URI.
|
|
1899
|
+
* @param qualifiedName Tag name.
|
|
1900
|
+
* @param [options] Options.
|
|
1901
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1902
|
+
* @returns Element.
|
|
1903
|
+
*/
|
|
1904
|
+
public createElementNS(
|
|
1905
|
+
namespaceURI: string | null,
|
|
1906
|
+
qualifiedName: string,
|
|
1907
|
+
options?: { is?: string }
|
|
1908
|
+
): Element;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* Creates an element with the specified namespace URI and qualified name.
|
|
1912
|
+
*
|
|
1913
|
+
* @param namespaceURI Namespace URI.
|
|
1914
|
+
* @param qualifiedName Tag name.
|
|
1915
|
+
* @param [options] Options.
|
|
1916
|
+
* @param [options.is] Tag name of a custom element previously defined via customElements.define().
|
|
1917
|
+
* @returns Element.
|
|
1918
|
+
*/
|
|
1919
|
+
public createElementNS(
|
|
1920
|
+
namespaceURI: string | null,
|
|
1921
|
+
qualifiedName: string,
|
|
1922
|
+
options?: { is?: string }
|
|
1923
|
+
): Element {
|
|
1924
|
+
const window = this[PropertySymbol.window];
|
|
1925
|
+
|
|
1926
|
+
qualifiedName = String(qualifiedName);
|
|
1927
|
+
|
|
1928
|
+
if (!qualifiedName) {
|
|
1929
|
+
throw new window.DOMException(
|
|
1930
|
+
"Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty."
|
|
1931
|
+
);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
const parts = qualifiedName.split(':');
|
|
1935
|
+
const localName = parts[1] ?? parts[0];
|
|
1936
|
+
const prefix = parts[1] ? parts[0] : null;
|
|
1937
|
+
|
|
1938
|
+
switch (namespaceURI) {
|
|
1939
|
+
case NamespaceURI.svg:
|
|
1940
|
+
const config = SVGElementConfig[qualifiedName.toLowerCase()];
|
|
1941
|
+
const svgElementClass: typeof SVGElement =
|
|
1942
|
+
config && config.localName === qualifiedName
|
|
1943
|
+
? (<any>window)[config.className]
|
|
1944
|
+
: window.SVGElement;
|
|
1945
|
+
|
|
1946
|
+
const svgElement = NodeFactory.createNode<SVGElement>(this, svgElementClass);
|
|
1947
|
+
|
|
1948
|
+
svgElement[PropertySymbol.tagName] = qualifiedName;
|
|
1949
|
+
svgElement[PropertySymbol.localName] = localName;
|
|
1950
|
+
svgElement[PropertySymbol.prefix] = prefix;
|
|
1951
|
+
svgElement[PropertySymbol.namespaceURI] = namespaceURI;
|
|
1952
|
+
svgElement[PropertySymbol.isValue] = options && options.is ? String(options.is) : null;
|
|
1953
|
+
|
|
1954
|
+
return svgElement;
|
|
1955
|
+
case NamespaceURI.html:
|
|
1956
|
+
// Custom HTML element
|
|
1957
|
+
// If a polyfill is used, [PropertySymbol.registry] may be undefined
|
|
1958
|
+
const customElementDefinition = window.customElements[PropertySymbol.registry]?.get(
|
|
1959
|
+
options && options.is ? String(options.is) : qualifiedName
|
|
1960
|
+
);
|
|
1961
|
+
|
|
1962
|
+
if (customElementDefinition) {
|
|
1963
|
+
const element = new customElementDefinition.elementClass();
|
|
1964
|
+
element[PropertySymbol.tagName] = StringUtility.asciiUpperCase(qualifiedName);
|
|
1965
|
+
element[PropertySymbol.localName] = localName;
|
|
1966
|
+
element[PropertySymbol.prefix] = prefix;
|
|
1967
|
+
element[PropertySymbol.namespaceURI] = namespaceURI;
|
|
1968
|
+
element[PropertySymbol.isValue] = options && options.is ? String(options.is) : null;
|
|
1969
|
+
return element;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
const elementClass: typeof HTMLElement = HTMLElementConfig[qualifiedName]
|
|
1973
|
+
? (<any>window)[HTMLElementConfig[qualifiedName].className]
|
|
1974
|
+
: null;
|
|
1975
|
+
|
|
1976
|
+
// Known HTML element
|
|
1977
|
+
if (elementClass) {
|
|
1978
|
+
const element = NodeFactory.createNode<Element>(this, elementClass);
|
|
1979
|
+
|
|
1980
|
+
element[PropertySymbol.tagName] = StringUtility.asciiUpperCase(qualifiedName);
|
|
1981
|
+
element[PropertySymbol.localName] = localName;
|
|
1982
|
+
element[PropertySymbol.prefix] = prefix;
|
|
1983
|
+
element[PropertySymbol.namespaceURI] = namespaceURI;
|
|
1984
|
+
element[PropertySymbol.isValue] = options && options.is ? String(options.is) : null;
|
|
1985
|
+
|
|
1986
|
+
return element;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
// Unknown HTML element (if it has an hyphen in the name, it is a custom element that hasn't been defined yet)
|
|
1990
|
+
const unknownElementClass = qualifiedName.includes('-')
|
|
1991
|
+
? window.HTMLElement
|
|
1992
|
+
: window.HTMLUnknownElement;
|
|
1993
|
+
|
|
1994
|
+
const unknownElement = NodeFactory.createNode<Element>(this, unknownElementClass);
|
|
1995
|
+
|
|
1996
|
+
unknownElement[PropertySymbol.tagName] = StringUtility.asciiUpperCase(qualifiedName);
|
|
1997
|
+
unknownElement[PropertySymbol.localName] = localName;
|
|
1998
|
+
unknownElement[PropertySymbol.prefix] = prefix;
|
|
1999
|
+
unknownElement[PropertySymbol.namespaceURI] = namespaceURI;
|
|
2000
|
+
unknownElement[PropertySymbol.isValue] = options && options.is ? String(options.is) : null;
|
|
2001
|
+
|
|
2002
|
+
return unknownElement;
|
|
2003
|
+
default:
|
|
2004
|
+
const element = NodeFactory.createNode<Element>(this, Element);
|
|
2005
|
+
|
|
2006
|
+
element[PropertySymbol.tagName] = qualifiedName;
|
|
2007
|
+
element[PropertySymbol.localName] = localName;
|
|
2008
|
+
element[PropertySymbol.prefix] = prefix;
|
|
2009
|
+
element[PropertySymbol.namespaceURI] = namespaceURI;
|
|
2010
|
+
element[PropertySymbol.isValue] = options && options.is ? String(options.is) : null;
|
|
2011
|
+
|
|
2012
|
+
return element;
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/* eslint-enable jsdoc/valid-types */
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Creates a text node.
|
|
2020
|
+
*
|
|
2021
|
+
* @param [data] Text data.
|
|
2022
|
+
* @returns Text node.
|
|
2023
|
+
*/
|
|
2024
|
+
public createTextNode(data: string): Text {
|
|
2025
|
+
if (arguments.length < 1) {
|
|
2026
|
+
throw new this[PropertySymbol.window].TypeError(
|
|
2027
|
+
`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`
|
|
2028
|
+
);
|
|
2029
|
+
}
|
|
2030
|
+
// We should use the NodeFactory and not the class constructor, so that owner document will be this document
|
|
2031
|
+
return NodeFactory.createNode(this, this[PropertySymbol.window].Text, String(data));
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* Creates a comment node.
|
|
2036
|
+
*
|
|
2037
|
+
* @param [data] Text data.
|
|
2038
|
+
* @returns Text node.
|
|
2039
|
+
*/
|
|
2040
|
+
public createComment(data?: string): Comment {
|
|
2041
|
+
if (arguments.length < 1) {
|
|
2042
|
+
throw new this[PropertySymbol.window].TypeError(
|
|
2043
|
+
`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`
|
|
2044
|
+
);
|
|
2045
|
+
}
|
|
2046
|
+
// We should use the NodeFactory and not the class constructor, so that owner document will be this document
|
|
2047
|
+
return NodeFactory.createNode(this, this[PropertySymbol.window].Comment, String(data));
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* Creates a document fragment.
|
|
2052
|
+
*
|
|
2053
|
+
* @returns Document fragment.
|
|
2054
|
+
*/
|
|
2055
|
+
public createDocumentFragment(): DocumentFragment {
|
|
2056
|
+
// We should use the NodeFactory and not the class constructor, so that owner document will be this document
|
|
2057
|
+
return NodeFactory.createNode(this, this[PropertySymbol.window].DocumentFragment);
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* Creates a node iterator.
|
|
2062
|
+
*
|
|
2063
|
+
* @param root Root.
|
|
2064
|
+
* @param [whatToShow] What to show.
|
|
2065
|
+
* @param [filter] Filter.
|
|
2066
|
+
*/
|
|
2067
|
+
public createNodeIterator(
|
|
2068
|
+
root: Node,
|
|
2069
|
+
whatToShow = -1,
|
|
2070
|
+
filter: TNodeFilter | null = null
|
|
2071
|
+
): NodeIterator {
|
|
2072
|
+
return new NodeIterator(root, whatToShow, filter);
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* Creates a Tree Walker.
|
|
2077
|
+
*
|
|
2078
|
+
* @param root Root.
|
|
2079
|
+
* @param [whatToShow] What to show.
|
|
2080
|
+
* @param [filter] Filter.
|
|
2081
|
+
*/
|
|
2082
|
+
public createTreeWalker(
|
|
2083
|
+
root: Node,
|
|
2084
|
+
whatToShow = -1,
|
|
2085
|
+
filter: TNodeFilter | null = null
|
|
2086
|
+
): TreeWalker {
|
|
2087
|
+
return new TreeWalker(root, whatToShow, filter);
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
/**
|
|
2091
|
+
* Creates an event.
|
|
2092
|
+
*
|
|
2093
|
+
* @deprecated
|
|
2094
|
+
* @param type Type.
|
|
2095
|
+
* @returns Event.
|
|
2096
|
+
*/
|
|
2097
|
+
public createEvent(type: string): Event {
|
|
2098
|
+
if (typeof (<any>this[PropertySymbol.window])[type] === 'function') {
|
|
2099
|
+
return new (<any>this[PropertySymbol.window])[type]('init');
|
|
2100
|
+
}
|
|
2101
|
+
return new Event('init');
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Creates an Attr node.
|
|
2106
|
+
*
|
|
2107
|
+
* @param qualifiedName Name.
|
|
2108
|
+
* @returns Attribute.
|
|
2109
|
+
*/
|
|
2110
|
+
public createAttribute(qualifiedName: string): Attr {
|
|
2111
|
+
// We should use the NodeFactory and not the class constructor, so that owner document will be this document
|
|
2112
|
+
const attribute = NodeFactory.createNode(this, this[PropertySymbol.window].Attr);
|
|
2113
|
+
|
|
2114
|
+
const name = StringUtility.asciiLowerCase(qualifiedName);
|
|
2115
|
+
const parts = name.split(':');
|
|
2116
|
+
|
|
2117
|
+
attribute[PropertySymbol.name] = name;
|
|
2118
|
+
attribute[PropertySymbol.localName] = parts[1] ?? name;
|
|
2119
|
+
attribute[PropertySymbol.prefix] = parts[1] ? parts[0] : null;
|
|
2120
|
+
|
|
2121
|
+
return attribute;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* Creates a namespaced Attr node.
|
|
2126
|
+
*
|
|
2127
|
+
* @param namespaceURI Namespace URI.
|
|
2128
|
+
* @param qualifiedName Qualified name.
|
|
2129
|
+
* @returns Element.
|
|
2130
|
+
*/
|
|
2131
|
+
public createAttributeNS(namespaceURI: string | null, qualifiedName: string): Attr {
|
|
2132
|
+
// We should use the NodeFactory and not the class constructor, so that owner document will be this document
|
|
2133
|
+
const attribute = NodeFactory.createNode(this, this[PropertySymbol.window].Attr);
|
|
2134
|
+
|
|
2135
|
+
const parts = qualifiedName.split(':');
|
|
2136
|
+
|
|
2137
|
+
attribute[PropertySymbol.namespaceURI] = namespaceURI;
|
|
2138
|
+
attribute[PropertySymbol.name] = qualifiedName;
|
|
2139
|
+
attribute[PropertySymbol.localName] = parts[1] ?? qualifiedName;
|
|
2140
|
+
attribute[PropertySymbol.prefix] = parts[1] ? parts[0] : null;
|
|
2141
|
+
|
|
2142
|
+
if (!namespaceURI && attribute[PropertySymbol.prefix]) {
|
|
2143
|
+
throw new this[PropertySymbol.window].DOMException(
|
|
2144
|
+
`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${
|
|
2145
|
+
namespaceURI || ''
|
|
2146
|
+
}') is not valid for the qualified name provided ('${qualifiedName}').`,
|
|
2147
|
+
DOMExceptionNameEnum.namespaceError
|
|
2148
|
+
);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
return attribute;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Imports a node.
|
|
2156
|
+
*
|
|
2157
|
+
* @param node Node to import.
|
|
2158
|
+
* @param [deep=false] Set to "true" if the clone should be deep.
|
|
2159
|
+
*/
|
|
2160
|
+
public importNode(node: Node, deep = false): Node {
|
|
2161
|
+
if (!(node instanceof Node)) {
|
|
2162
|
+
throw new this[PropertySymbol.window].DOMException('Parameter 1 was not of type Node.');
|
|
2163
|
+
}
|
|
2164
|
+
const clone = node.cloneNode(deep);
|
|
2165
|
+
this.#importNode(clone);
|
|
2166
|
+
return clone;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Creates a range.
|
|
2171
|
+
*
|
|
2172
|
+
* @returns Range.
|
|
2173
|
+
*/
|
|
2174
|
+
public createRange(): Range {
|
|
2175
|
+
return new this[PropertySymbol.window].Range();
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* Adopts a node.
|
|
2180
|
+
*
|
|
2181
|
+
* @param node Node to adopt.
|
|
2182
|
+
* @returns Adopted node.
|
|
2183
|
+
*/
|
|
2184
|
+
public adoptNode(node: Node): Node {
|
|
2185
|
+
if (!(node instanceof Node)) {
|
|
2186
|
+
throw new this[PropertySymbol.window].DOMException('Parameter 1 was not of type Node.');
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
const adopted = node[PropertySymbol.parentNode]
|
|
2190
|
+
? node[PropertySymbol.parentNode].removeChild(node)
|
|
2191
|
+
: node;
|
|
2192
|
+
const document = this;
|
|
2193
|
+
Object.defineProperty(adopted, 'ownerDocument', { value: document });
|
|
2194
|
+
return adopted;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Returns selection.
|
|
2199
|
+
*
|
|
2200
|
+
* @returns Selection.
|
|
2201
|
+
*/
|
|
2202
|
+
public getSelection(): Selection {
|
|
2203
|
+
if (!this[PropertySymbol.selection]) {
|
|
2204
|
+
this[PropertySymbol.selection] = new Selection(this);
|
|
2205
|
+
}
|
|
2206
|
+
return this[PropertySymbol.selection];
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* Returns a boolean value indicating whether the document or any element inside the document has focus.
|
|
2211
|
+
*
|
|
2212
|
+
* @returns "true" if the document has focus.
|
|
2213
|
+
*/
|
|
2214
|
+
public hasFocus(): boolean {
|
|
2215
|
+
return !!this.activeElement;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Creates a Processing Instruction node.
|
|
2220
|
+
*
|
|
2221
|
+
* @param target Target.
|
|
2222
|
+
* @param data Data.
|
|
2223
|
+
* @returns ProcessingInstruction.
|
|
2224
|
+
*/
|
|
2225
|
+
public createProcessingInstruction(target: string, data: string): ProcessingInstruction {
|
|
2226
|
+
if (arguments.length < 2) {
|
|
2227
|
+
throw new this[PropertySymbol.window].TypeError(
|
|
2228
|
+
`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`
|
|
2229
|
+
);
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
target = String(target);
|
|
2233
|
+
data = String(data);
|
|
2234
|
+
|
|
2235
|
+
if (!target || !PROCESSING_INSTRUCTION_TARGET_REGEXP.test(target)) {
|
|
2236
|
+
throw new this[PropertySymbol.window].DOMException(
|
|
2237
|
+
`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${target}') is not a valid name.`
|
|
2238
|
+
);
|
|
2239
|
+
}
|
|
2240
|
+
if (data.includes('?>')) {
|
|
2241
|
+
throw new this[PropertySymbol.window].DOMException(
|
|
2242
|
+
`Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'`
|
|
2243
|
+
);
|
|
2244
|
+
}
|
|
2245
|
+
// We should use the NodeFactory and not the class constructor, so that owner document will be this document
|
|
2246
|
+
const element = NodeFactory.createNode(this, this[PropertySymbol.window].ProcessingInstruction);
|
|
2247
|
+
|
|
2248
|
+
element[PropertySymbol.data] = data;
|
|
2249
|
+
element[PropertySymbol.target] = target;
|
|
2250
|
+
|
|
2251
|
+
return element;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Get element at a given point.
|
|
2256
|
+
*
|
|
2257
|
+
* @param _x horizontal coordinate
|
|
2258
|
+
* @param _y vertical coordinate
|
|
2259
|
+
* @returns Always returns null since Happy DOM does not render elements.
|
|
2260
|
+
*/
|
|
2261
|
+
public elementFromPoint(_x: number, _y: number): Element | null {
|
|
2262
|
+
return null;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* Clears the computed style cache for the document.
|
|
2267
|
+
*/
|
|
2268
|
+
public [PropertySymbol.clearComputedStyleCache](): void {
|
|
2269
|
+
for (const item of this[PropertySymbol.affectsComputedStyleCache]) {
|
|
2270
|
+
item.result = null;
|
|
2271
|
+
}
|
|
2272
|
+
this[PropertySymbol.affectsComputedStyleCache] = [];
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* @override
|
|
2277
|
+
*/
|
|
2278
|
+
public override [PropertySymbol.destroy](): void {
|
|
2279
|
+
super[PropertySymbol.destroy]();
|
|
2280
|
+
|
|
2281
|
+
this[PropertySymbol.clearComputedStyleCache]();
|
|
2282
|
+
|
|
2283
|
+
this[PropertySymbol.children] = null;
|
|
2284
|
+
this[PropertySymbol.activeElement] = null;
|
|
2285
|
+
this[PropertySymbol.nextActiveElement] = null;
|
|
2286
|
+
this[PropertySymbol.currentScript] = null;
|
|
2287
|
+
this[PropertySymbol.defaultView] = null;
|
|
2288
|
+
this[PropertySymbol.adoptedStyleSheets] = [];
|
|
2289
|
+
this[PropertySymbol.forms] = null;
|
|
2290
|
+
this[PropertySymbol.links] = null;
|
|
2291
|
+
this[PropertySymbol.elementIdMap].clear();
|
|
2292
|
+
this[PropertySymbol.xmlProcessingInstruction] = null;
|
|
2293
|
+
this[PropertySymbol.preloads].clear();
|
|
2294
|
+
this[PropertySymbol.propertyEventListeners].clear();
|
|
2295
|
+
this[PropertySymbol.selection] = null;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* Imports a node.
|
|
2300
|
+
*
|
|
2301
|
+
* @param node Node.
|
|
2302
|
+
*/
|
|
2303
|
+
#importNode(node: Node): void {
|
|
2304
|
+
node[PropertySymbol.ownerDocument] = this;
|
|
2305
|
+
|
|
2306
|
+
for (const child of node[PropertySymbol.nodeArray]) {
|
|
2307
|
+
this.#importNode(child);
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
}
|