@depup/jsdom 28.1.0-depup.1
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/LICENSE.txt +22 -0
- package/README.md +38 -0
- package/changes.json +38 -0
- package/lib/api.js +373 -0
- package/lib/generated/event-sets.js +115 -0
- package/lib/generated/idl/AbortController.js +143 -0
- package/lib/generated/idl/AbortSignal.js +249 -0
- package/lib/generated/idl/AbstractRange.js +171 -0
- package/lib/generated/idl/AddEventListenerOptions.js +53 -0
- package/lib/generated/idl/AssignedNodesOptions.js +28 -0
- package/lib/generated/idl/Attr.js +219 -0
- package/lib/generated/idl/BarProp.js +117 -0
- package/lib/generated/idl/BeforeUnloadEvent.js +139 -0
- package/lib/generated/idl/BinaryType.js +12 -0
- package/lib/generated/idl/Blob.js +253 -0
- package/lib/generated/idl/BlobCallback.js +30 -0
- package/lib/generated/idl/BlobEvent.js +157 -0
- package/lib/generated/idl/BlobEventInit.js +43 -0
- package/lib/generated/idl/BlobPropertyBag.js +42 -0
- package/lib/generated/idl/CDATASection.js +109 -0
- package/lib/generated/idl/CanPlayTypeResult.js +12 -0
- package/lib/generated/idl/CharacterData.js +455 -0
- package/lib/generated/idl/CloseEvent.js +168 -0
- package/lib/generated/idl/CloseEventInit.js +65 -0
- package/lib/generated/idl/Comment.js +120 -0
- package/lib/generated/idl/CompositionEvent.js +219 -0
- package/lib/generated/idl/CompositionEventInit.js +32 -0
- package/lib/generated/idl/Crypto.js +148 -0
- package/lib/generated/idl/CustomElementConstructor.js +34 -0
- package/lib/generated/idl/CustomElementRegistry.js +269 -0
- package/lib/generated/idl/CustomEvent.js +206 -0
- package/lib/generated/idl/CustomEventInit.js +32 -0
- package/lib/generated/idl/DOMException.js +222 -0
- package/lib/generated/idl/DOMImplementation.js +237 -0
- package/lib/generated/idl/DOMParser.js +140 -0
- package/lib/generated/idl/DOMRect.js +276 -0
- package/lib/generated/idl/DOMRectInit.js +76 -0
- package/lib/generated/idl/DOMRectReadOnly.js +285 -0
- package/lib/generated/idl/DOMStringMap.js +299 -0
- package/lib/generated/idl/DOMTokenList.js +539 -0
- package/lib/generated/idl/DeviceMotionEvent.js +183 -0
- package/lib/generated/idl/DeviceMotionEventAcceleration.js +145 -0
- package/lib/generated/idl/DeviceMotionEventAccelerationInit.js +61 -0
- package/lib/generated/idl/DeviceMotionEventInit.js +70 -0
- package/lib/generated/idl/DeviceMotionEventRotationRate.js +145 -0
- package/lib/generated/idl/DeviceMotionEventRotationRateInit.js +61 -0
- package/lib/generated/idl/DeviceOrientationEvent.js +183 -0
- package/lib/generated/idl/DeviceOrientationEventInit.js +80 -0
- package/lib/generated/idl/Document.js +4511 -0
- package/lib/generated/idl/DocumentFragment.js +336 -0
- package/lib/generated/idl/DocumentReadyState.js +12 -0
- package/lib/generated/idl/DocumentType.js +254 -0
- package/lib/generated/idl/Element.js +3720 -0
- package/lib/generated/idl/ElementCreationOptions.js +26 -0
- package/lib/generated/idl/ElementDefinitionOptions.js +29 -0
- package/lib/generated/idl/ElementInternals.js +2152 -0
- package/lib/generated/idl/EndingType.js +12 -0
- package/lib/generated/idl/ErrorEvent.js +192 -0
- package/lib/generated/idl/ErrorEventInit.js +92 -0
- package/lib/generated/idl/Event.js +430 -0
- package/lib/generated/idl/EventHandlerNonNull.js +36 -0
- package/lib/generated/idl/EventInit.js +58 -0
- package/lib/generated/idl/EventListener.js +35 -0
- package/lib/generated/idl/EventListenerOptions.js +28 -0
- package/lib/generated/idl/EventModifierInit.js +221 -0
- package/lib/generated/idl/EventTarget.js +259 -0
- package/lib/generated/idl/External.js +130 -0
- package/lib/generated/idl/File.js +185 -0
- package/lib/generated/idl/FileList.js +298 -0
- package/lib/generated/idl/FilePropertyBag.js +33 -0
- package/lib/generated/idl/FileReader.js +468 -0
- package/lib/generated/idl/FocusEvent.js +144 -0
- package/lib/generated/idl/FocusEventInit.js +36 -0
- package/lib/generated/idl/FormData.js +468 -0
- package/lib/generated/idl/Function.js +42 -0
- package/lib/generated/idl/GetRootNodeOptions.js +31 -0
- package/lib/generated/idl/HTMLAnchorElement.js +1026 -0
- package/lib/generated/idl/HTMLAreaElement.js +825 -0
- package/lib/generated/idl/HTMLAudioElement.js +111 -0
- package/lib/generated/idl/HTMLBRElement.js +156 -0
- package/lib/generated/idl/HTMLBaseElement.js +196 -0
- package/lib/generated/idl/HTMLBodyElement.js +880 -0
- package/lib/generated/idl/HTMLButtonElement.js +525 -0
- package/lib/generated/idl/HTMLCanvasElement.js +307 -0
- package/lib/generated/idl/HTMLCollection.js +352 -0
- package/lib/generated/idl/HTMLDListElement.js +159 -0
- package/lib/generated/idl/HTMLDataElement.js +156 -0
- package/lib/generated/idl/HTMLDataListElement.js +126 -0
- package/lib/generated/idl/HTMLDetailsElement.js +159 -0
- package/lib/generated/idl/HTMLDialogElement.js +159 -0
- package/lib/generated/idl/HTMLDirectoryElement.js +159 -0
- package/lib/generated/idl/HTMLDivElement.js +156 -0
- package/lib/generated/idl/HTMLElement.js +3492 -0
- package/lib/generated/idl/HTMLEmbedElement.js +381 -0
- package/lib/generated/idl/HTMLFieldSetElement.js +332 -0
- package/lib/generated/idl/HTMLFontElement.js +239 -0
- package/lib/generated/idl/HTMLFormControlsCollection.js +318 -0
- package/lib/generated/idl/HTMLFormElement.js +661 -0
- package/lib/generated/idl/HTMLFrameElement.js +513 -0
- package/lib/generated/idl/HTMLFrameSetElement.js +711 -0
- package/lib/generated/idl/HTMLHRElement.js +323 -0
- package/lib/generated/idl/HTMLHeadElement.js +111 -0
- package/lib/generated/idl/HTMLHeadingElement.js +156 -0
- package/lib/generated/idl/HTMLHtmlElement.js +156 -0
- package/lib/generated/idl/HTMLIFrameElement.js +689 -0
- package/lib/generated/idl/HTMLImageElement.js +906 -0
- package/lib/generated/idl/HTMLInputElement.js +1931 -0
- package/lib/generated/idl/HTMLLIElement.js +204 -0
- package/lib/generated/idl/HTMLLabelElement.js +182 -0
- package/lib/generated/idl/HTMLLegendElement.js +169 -0
- package/lib/generated/idl/HTMLLinkElement.js +555 -0
- package/lib/generated/idl/HTMLMapElement.js +171 -0
- package/lib/generated/idl/HTMLMarqueeElement.js +558 -0
- package/lib/generated/idl/HTMLMediaElement.js +900 -0
- package/lib/generated/idl/HTMLMenuElement.js +159 -0
- package/lib/generated/idl/HTMLMetaElement.js +279 -0
- package/lib/generated/idl/HTMLMeterElement.js +368 -0
- package/lib/generated/idl/HTMLModElement.js +217 -0
- package/lib/generated/idl/HTMLOListElement.js +284 -0
- package/lib/generated/idl/HTMLObjectElement.js +945 -0
- package/lib/generated/idl/HTMLOptGroupElement.js +200 -0
- package/lib/generated/idl/HTMLOptionElement.js +379 -0
- package/lib/generated/idl/HTMLOptionsCollection.js +513 -0
- package/lib/generated/idl/HTMLOutputElement.js +395 -0
- package/lib/generated/idl/HTMLParagraphElement.js +156 -0
- package/lib/generated/idl/HTMLParamElement.js +279 -0
- package/lib/generated/idl/HTMLPictureElement.js +111 -0
- package/lib/generated/idl/HTMLPreElement.js +163 -0
- package/lib/generated/idl/HTMLProgressElement.js +232 -0
- package/lib/generated/idl/HTMLQuoteElement.js +176 -0
- package/lib/generated/idl/HTMLScriptElement.js +472 -0
- package/lib/generated/idl/HTMLSelectElement.js +993 -0
- package/lib/generated/idl/HTMLSlotElement.js +195 -0
- package/lib/generated/idl/HTMLSourceElement.js +340 -0
- package/lib/generated/idl/HTMLSpanElement.js +111 -0
- package/lib/generated/idl/HTMLStyleElement.js +210 -0
- package/lib/generated/idl/HTMLTableCaptionElement.js +156 -0
- package/lib/generated/idl/HTMLTableCellElement.js +733 -0
- package/lib/generated/idl/HTMLTableColElement.js +376 -0
- package/lib/generated/idl/HTMLTableElement.js +802 -0
- package/lib/generated/idl/HTMLTableRowElement.js +417 -0
- package/lib/generated/idl/HTMLTableSectionElement.js +349 -0
- package/lib/generated/idl/HTMLTemplateElement.js +124 -0
- package/lib/generated/idl/HTMLTextAreaElement.js +1210 -0
- package/lib/generated/idl/HTMLTimeElement.js +156 -0
- package/lib/generated/idl/HTMLTitleElement.js +155 -0
- package/lib/generated/idl/HTMLTrackElement.js +366 -0
- package/lib/generated/idl/HTMLUListElement.js +200 -0
- package/lib/generated/idl/HTMLUnknownElement.js +109 -0
- package/lib/generated/idl/HTMLVideoElement.js +344 -0
- package/lib/generated/idl/HashChangeEvent.js +157 -0
- package/lib/generated/idl/HashChangeEventInit.js +50 -0
- package/lib/generated/idl/Headers.js +418 -0
- package/lib/generated/idl/History.js +266 -0
- package/lib/generated/idl/InputEvent.js +168 -0
- package/lib/generated/idl/InputEventInit.js +68 -0
- package/lib/generated/idl/KeyboardEvent.js +445 -0
- package/lib/generated/idl/KeyboardEventInit.js +116 -0
- package/lib/generated/idl/Location.js +404 -0
- package/lib/generated/idl/MessageEvent.js +317 -0
- package/lib/generated/idl/MessageEventInit.js +100 -0
- package/lib/generated/idl/MimeType.js +156 -0
- package/lib/generated/idl/MimeTypeArray.js +326 -0
- package/lib/generated/idl/MouseEvent.js +595 -0
- package/lib/generated/idl/MouseEventInit.js +189 -0
- package/lib/generated/idl/MutationCallback.js +34 -0
- package/lib/generated/idl/MutationObserver.js +178 -0
- package/lib/generated/idl/MutationObserverInit.js +121 -0
- package/lib/generated/idl/MutationRecord.js +229 -0
- package/lib/generated/idl/NamedNodeMap.js +529 -0
- package/lib/generated/idl/Navigator.js +326 -0
- package/lib/generated/idl/Node.js +765 -0
- package/lib/generated/idl/NodeFilter.js +75 -0
- package/lib/generated/idl/NodeIterator.js +207 -0
- package/lib/generated/idl/NodeList.js +302 -0
- package/lib/generated/idl/OnBeforeUnloadEventHandlerNonNull.js +42 -0
- package/lib/generated/idl/OnErrorEventHandlerNonNull.js +56 -0
- package/lib/generated/idl/PageTransitionEvent.js +144 -0
- package/lib/generated/idl/PageTransitionEventInit.js +35 -0
- package/lib/generated/idl/Performance.js +142 -0
- package/lib/generated/idl/Plugin.js +359 -0
- package/lib/generated/idl/PluginArray.js +336 -0
- package/lib/generated/idl/PointerEvent.js +324 -0
- package/lib/generated/idl/PointerEventInit.js +241 -0
- package/lib/generated/idl/PopStateEvent.js +144 -0
- package/lib/generated/idl/PopStateEventInit.js +32 -0
- package/lib/generated/idl/ProcessingInstruction.js +122 -0
- package/lib/generated/idl/ProgressEvent.js +170 -0
- package/lib/generated/idl/ProgressEventInit.js +65 -0
- package/lib/generated/idl/PromiseRejectionEvent.js +157 -0
- package/lib/generated/idl/PromiseRejectionEventInit.js +42 -0
- package/lib/generated/idl/RadioNodeList.js +296 -0
- package/lib/generated/idl/Range.js +643 -0
- package/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +136 -0
- package/lib/generated/idl/SVGAnimatedRect.js +136 -0
- package/lib/generated/idl/SVGAnimatedString.js +149 -0
- package/lib/generated/idl/SVGBoundingBoxOptions.js +64 -0
- package/lib/generated/idl/SVGDefsElement.js +109 -0
- package/lib/generated/idl/SVGDescElement.js +109 -0
- package/lib/generated/idl/SVGElement.js +3157 -0
- package/lib/generated/idl/SVGGElement.js +109 -0
- package/lib/generated/idl/SVGGraphicsElement.js +139 -0
- package/lib/generated/idl/SVGMetadataElement.js +109 -0
- package/lib/generated/idl/SVGNumber.js +132 -0
- package/lib/generated/idl/SVGPreserveAspectRatio.js +196 -0
- package/lib/generated/idl/SVGRect.js +210 -0
- package/lib/generated/idl/SVGSVGElement.js +786 -0
- package/lib/generated/idl/SVGStringList.js +511 -0
- package/lib/generated/idl/SVGSwitchElement.js +109 -0
- package/lib/generated/idl/SVGSymbolElement.js +146 -0
- package/lib/generated/idl/SVGTitleElement.js +109 -0
- package/lib/generated/idl/Screen.js +180 -0
- package/lib/generated/idl/ScrollBehavior.js +12 -0
- package/lib/generated/idl/ScrollIntoViewOptions.js +45 -0
- package/lib/generated/idl/ScrollLogicalPosition.js +14 -0
- package/lib/generated/idl/ScrollOptions.js +30 -0
- package/lib/generated/idl/ScrollRestoration.js +12 -0
- package/lib/generated/idl/Selection.js +571 -0
- package/lib/generated/idl/SelectionMode.js +12 -0
- package/lib/generated/idl/ShadowRoot.js +189 -0
- package/lib/generated/idl/ShadowRootInit.js +30 -0
- package/lib/generated/idl/ShadowRootMode.js +12 -0
- package/lib/generated/idl/StaticRange.js +123 -0
- package/lib/generated/idl/StaticRangeInit.js +72 -0
- package/lib/generated/idl/Storage.js +397 -0
- package/lib/generated/idl/StorageEvent.js +318 -0
- package/lib/generated/idl/StorageEventInit.js +99 -0
- package/lib/generated/idl/StyleSheetList.js +300 -0
- package/lib/generated/idl/SubmitEvent.js +144 -0
- package/lib/generated/idl/SubmitEventInit.js +36 -0
- package/lib/generated/idl/SupportedType.js +18 -0
- package/lib/generated/idl/Text.js +170 -0
- package/lib/generated/idl/TextDecodeOptions.js +28 -0
- package/lib/generated/idl/TextDecoder.js +211 -0
- package/lib/generated/idl/TextDecoderOptions.js +43 -0
- package/lib/generated/idl/TextEncoder.js +176 -0
- package/lib/generated/idl/TextEncoderEncodeIntoResult.js +42 -0
- package/lib/generated/idl/TextTrackKind.js +12 -0
- package/lib/generated/idl/TouchEvent.js +222 -0
- package/lib/generated/idl/TouchEventInit.js +89 -0
- package/lib/generated/idl/TransitionEvent.js +170 -0
- package/lib/generated/idl/TransitionEventInit.js +65 -0
- package/lib/generated/idl/TreeWalker.js +255 -0
- package/lib/generated/idl/UIEvent.js +235 -0
- package/lib/generated/idl/UIEventInit.js +62 -0
- package/lib/generated/idl/ValidityState.js +249 -0
- package/lib/generated/idl/VisibilityState.js +12 -0
- package/lib/generated/idl/VoidFunction.js +26 -0
- package/lib/generated/idl/WebSocket.js +480 -0
- package/lib/generated/idl/WheelEvent.js +191 -0
- package/lib/generated/idl/WheelEventInit.js +71 -0
- package/lib/generated/idl/XMLDocument.js +109 -0
- package/lib/generated/idl/XMLHttpRequest.js +663 -0
- package/lib/generated/idl/XMLHttpRequestEventTarget.js +334 -0
- package/lib/generated/idl/XMLHttpRequestResponseType.js +14 -0
- package/lib/generated/idl/XMLHttpRequestUpload.js +109 -0
- package/lib/generated/idl/XMLSerializer.js +132 -0
- package/lib/generated/idl/utils.js +252 -0
- package/lib/generated/js-globals.json +332 -0
- package/lib/jsdom/browser/Window.js +952 -0
- package/lib/jsdom/browser/default-stylesheet.css +415 -0
- package/lib/jsdom/browser/not-implemented.js +20 -0
- package/lib/jsdom/browser/parser/html.js +208 -0
- package/lib/jsdom/browser/parser/index.js +37 -0
- package/lib/jsdom/browser/parser/xml.js +202 -0
- package/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
- package/lib/jsdom/browser/resources/decompress-interceptor.js +184 -0
- package/lib/jsdom/browser/resources/jsdom-dispatcher.js +756 -0
- package/lib/jsdom/browser/resources/per-document-resource-loader.js +116 -0
- package/lib/jsdom/browser/resources/request-interceptor.js +171 -0
- package/lib/jsdom/browser/resources/request-manager.js +33 -0
- package/lib/jsdom/browser/resources/resource-queue.js +142 -0
- package/lib/jsdom/browser/resources/stream-handler.js +89 -0
- package/lib/jsdom/level2/style.js +65 -0
- package/lib/jsdom/level3/xpath.js +1875 -0
- package/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
- package/lib/jsdom/living/aborting/AbortSignal-impl.js +131 -0
- package/lib/jsdom/living/attributes/Attr-impl.js +60 -0
- package/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
- package/lib/jsdom/living/attributes.js +312 -0
- package/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
- package/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
- package/lib/jsdom/living/crypto/Crypto-impl.js +68 -0
- package/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
- package/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +279 -0
- package/lib/jsdom/living/custom-elements/ElementInternals-impl.js +56 -0
- package/lib/jsdom/living/deviceorientation/DeviceMotionEventAcceleration-impl.js +7 -0
- package/lib/jsdom/living/deviceorientation/DeviceMotionEventRotationRate-impl.js +7 -0
- package/lib/jsdom/living/documents.js +15 -0
- package/lib/jsdom/living/domparsing/DOMParser-impl.js +59 -0
- package/lib/jsdom/living/domparsing/InnerHTML-impl.js +30 -0
- package/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
- package/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
- package/lib/jsdom/living/domparsing/serialization.js +36 -0
- package/lib/jsdom/living/encoding/TextDecoder-impl.js +25 -0
- package/lib/jsdom/living/encoding/TextEncoder-impl.js +26 -0
- package/lib/jsdom/living/events/BeforeUnloadEvent-impl.js +12 -0
- package/lib/jsdom/living/events/BlobEvent-impl.js +14 -0
- package/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
- package/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
- package/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
- package/lib/jsdom/living/events/DeviceMotionEvent-impl.js +49 -0
- package/lib/jsdom/living/events/DeviceOrientationEvent-impl.js +10 -0
- package/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
- package/lib/jsdom/living/events/Event-impl.js +195 -0
- package/lib/jsdom/living/events/EventModifierMixin-impl.js +24 -0
- package/lib/jsdom/living/events/EventTarget-impl.js +438 -0
- package/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
- package/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
- package/lib/jsdom/living/events/InputEvent-impl.js +11 -0
- package/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
- package/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
- package/lib/jsdom/living/events/MouseEvent-impl.js +72 -0
- package/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
- package/lib/jsdom/living/events/PointerEvent-impl.js +21 -0
- package/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
- package/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
- package/lib/jsdom/living/events/PromiseRejectionEvent-impl.js +14 -0
- package/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
- package/lib/jsdom/living/events/SubmitEvent-impl.js +13 -0
- package/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
- package/lib/jsdom/living/events/TransitionEvent-impl.js +10 -0
- package/lib/jsdom/living/events/UIEvent-impl.js +43 -0
- package/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
- package/lib/jsdom/living/fetch/Headers-impl.js +173 -0
- package/lib/jsdom/living/fetch/header-list.js +158 -0
- package/lib/jsdom/living/fetch/header-types.js +205 -0
- package/lib/jsdom/living/fetch/header-utils.js +26 -0
- package/lib/jsdom/living/file-api/Blob-impl.js +125 -0
- package/lib/jsdom/living/file-api/File-impl.js +12 -0
- package/lib/jsdom/living/file-api/FileList-impl.js +15 -0
- package/lib/jsdom/living/file-api/FileReader-impl.js +148 -0
- package/lib/jsdom/living/geometry/DOMRect-impl.js +39 -0
- package/lib/jsdom/living/geometry/DOMRectReadOnly-impl.js +72 -0
- package/lib/jsdom/living/helpers/binary-data.js +63 -0
- package/lib/jsdom/living/helpers/by-id-cache.js +67 -0
- package/lib/jsdom/living/helpers/colors.js +245 -0
- package/lib/jsdom/living/helpers/create-element.js +329 -0
- package/lib/jsdom/living/helpers/create-event-accessor.js +209 -0
- package/lib/jsdom/living/helpers/custom-elements.js +272 -0
- package/lib/jsdom/living/helpers/dates-and-times.js +270 -0
- package/lib/jsdom/living/helpers/details.js +15 -0
- package/lib/jsdom/living/helpers/encoding.js +60 -0
- package/lib/jsdom/living/helpers/events.js +24 -0
- package/lib/jsdom/living/helpers/focusing.js +104 -0
- package/lib/jsdom/living/helpers/form-controls.js +309 -0
- package/lib/jsdom/living/helpers/html-constructor.js +78 -0
- package/lib/jsdom/living/helpers/internal-constants.js +12 -0
- package/lib/jsdom/living/helpers/is-window.js +18 -0
- package/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
- package/lib/jsdom/living/helpers/json.js +7 -0
- package/lib/jsdom/living/helpers/mutation-observers.js +198 -0
- package/lib/jsdom/living/helpers/namespaces.js +16 -0
- package/lib/jsdom/living/helpers/node.js +108 -0
- package/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
- package/lib/jsdom/living/helpers/ordered-set.js +104 -0
- package/lib/jsdom/living/helpers/page-transition-event.js +9 -0
- package/lib/jsdom/living/helpers/runtime-script-errors.js +75 -0
- package/lib/jsdom/living/helpers/shadow-dom.js +285 -0
- package/lib/jsdom/living/helpers/strings.js +168 -0
- package/lib/jsdom/living/helpers/style-rules.js +404 -0
- package/lib/jsdom/living/helpers/stylesheets.js +148 -0
- package/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
- package/lib/jsdom/living/helpers/svg/render.js +46 -0
- package/lib/jsdom/living/helpers/system-colors.js +147 -0
- package/lib/jsdom/living/helpers/text.js +19 -0
- package/lib/jsdom/living/helpers/traversal.js +72 -0
- package/lib/jsdom/living/helpers/validate-names.js +65 -0
- package/lib/jsdom/living/hr-time/Performance-impl.js +22 -0
- package/lib/jsdom/living/interfaces.js +252 -0
- package/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
- package/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
- package/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
- package/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
- package/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
- package/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- package/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- package/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- package/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- package/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- package/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
- package/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
- package/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
- package/lib/jsdom/living/node-document-position.js +10 -0
- package/lib/jsdom/living/node-type.js +16 -0
- package/lib/jsdom/living/node.js +331 -0
- package/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
- package/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
- package/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
- package/lib/jsdom/living/nodes/Comment-impl.js +20 -0
- package/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
- package/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
- package/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
- package/lib/jsdom/living/nodes/Document-impl.js +1000 -0
- package/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
- package/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
- package/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
- package/lib/jsdom/living/nodes/Element-impl.js +584 -0
- package/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +22 -0
- package/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
- package/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +81 -0
- package/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
- package/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
- package/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +44 -0
- package/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +12 -0
- package/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
- package/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +136 -0
- package/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
- package/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
- package/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
- package/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLElement-impl.js +211 -0
- package/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
- package/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
- package/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLFormControlsCollection-impl.js +33 -0
- package/lib/jsdom/living/nodes/HTMLFormElement-impl.js +248 -0
- package/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +266 -0
- package/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +12 -0
- package/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +368 -0
- package/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLImageElement-impl.js +127 -0
- package/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1097 -0
- package/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
- package/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
- package/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +107 -0
- package/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- package/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
- package/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
- package/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
- package/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
- package/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
- package/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
- package/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +88 -0
- package/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
- package/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +72 -0
- package/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +255 -0
- package/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
- package/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
- package/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
- package/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +76 -0
- package/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
- package/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
- package/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
- package/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
- package/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
- package/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +244 -0
- package/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- package/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
- package/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
- package/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
- package/lib/jsdom/living/nodes/Node-impl.js +1179 -0
- package/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
- package/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- package/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
- package/lib/jsdom/living/nodes/ParentNode-impl.js +90 -0
- package/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- package/lib/jsdom/living/nodes/RadioNodeList-impl.js +49 -0
- package/lib/jsdom/living/nodes/SVGDefsElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/SVGDescElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
- package/lib/jsdom/living/nodes/SVGGElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
- package/lib/jsdom/living/nodes/SVGMetadataElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/SVGSVGElement-impl.js +40 -0
- package/lib/jsdom/living/nodes/SVGSwitchElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/SVGSymbolElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
- package/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
- package/lib/jsdom/living/nodes/ShadowRoot-impl.js +41 -0
- package/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
- package/lib/jsdom/living/nodes/Text-impl.js +96 -0
- package/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +14 -0
- package/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- package/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
- package/lib/jsdom/living/range/Range-impl.js +902 -0
- package/lib/jsdom/living/range/StaticRange-impl.js +39 -0
- package/lib/jsdom/living/range/boundary-point.js +47 -0
- package/lib/jsdom/living/selection/Selection-impl.js +358 -0
- package/lib/jsdom/living/svg/SVGAnimatedPreserveAspectRatio-impl.js +24 -0
- package/lib/jsdom/living/svg/SVGAnimatedRect-impl.js +122 -0
- package/lib/jsdom/living/svg/SVGAnimatedString-impl.js +42 -0
- package/lib/jsdom/living/svg/SVGListBase.js +195 -0
- package/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
- package/lib/jsdom/living/svg/SVGPreserveAspectRatio-impl.js +100 -0
- package/lib/jsdom/living/svg/SVGRect-impl.js +143 -0
- package/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
- package/lib/jsdom/living/traversal/NodeIterator-impl.js +107 -0
- package/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
- package/lib/jsdom/living/traversal/helpers.js +44 -0
- package/lib/jsdom/living/webidl/DOMException-impl.js +46 -0
- package/lib/jsdom/living/websockets/WebSocket-impl.js +211 -0
- package/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
- package/lib/jsdom/living/window/BarProp-impl.js +10 -0
- package/lib/jsdom/living/window/External-impl.js +9 -0
- package/lib/jsdom/living/window/History-impl.js +148 -0
- package/lib/jsdom/living/window/Location-impl.js +227 -0
- package/lib/jsdom/living/window/Screen-impl.js +13 -0
- package/lib/jsdom/living/window/SessionHistory.js +163 -0
- package/lib/jsdom/living/window/navigation.js +87 -0
- package/lib/jsdom/living/window-properties.js +241 -0
- package/lib/jsdom/living/xhr/FormData-impl.js +191 -0
- package/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1057 -0
- package/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
- package/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
- package/lib/jsdom/living/xhr/multipart-form-data.js +99 -0
- package/lib/jsdom/living/xhr/xhr-sync-worker.js +51 -0
- package/lib/jsdom/living/xhr/xhr-utils.js +206 -0
- package/lib/jsdom/utils.js +105 -0
- package/lib/jsdom/virtual-console.js +46 -0
- package/package.json +143 -0
|
@@ -0,0 +1,945 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const conversions = require("webidl-conversions");
|
|
4
|
+
const utils = require("./utils.js");
|
|
5
|
+
|
|
6
|
+
const HTMLConstructor_jsdom_living_helpers_html_constructor =
|
|
7
|
+
require("../../jsdom/living/helpers/html-constructor.js").HTMLConstructor;
|
|
8
|
+
const serializeURLwhatwg_url = require("whatwg-url").serializeURL;
|
|
9
|
+
const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
|
|
10
|
+
require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
|
|
11
|
+
const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
|
|
12
|
+
require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
|
|
13
|
+
const parseNonNegativeInteger_jsdom_living_helpers_strings =
|
|
14
|
+
require("../../jsdom/living/helpers/strings.js").parseNonNegativeInteger;
|
|
15
|
+
const implSymbol = utils.implSymbol;
|
|
16
|
+
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
|
|
17
|
+
const HTMLElement = require("./HTMLElement.js");
|
|
18
|
+
|
|
19
|
+
const interfaceName = "HTMLObjectElement";
|
|
20
|
+
|
|
21
|
+
exports.is = value => {
|
|
22
|
+
return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
|
|
23
|
+
};
|
|
24
|
+
exports.isImpl = value => {
|
|
25
|
+
return utils.isObject(value) && value instanceof Impl.implementation;
|
|
26
|
+
};
|
|
27
|
+
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
|
|
28
|
+
if (exports.is(value)) {
|
|
29
|
+
return utils.implForWrapper(value);
|
|
30
|
+
}
|
|
31
|
+
throw new globalObject.TypeError(`${context} is not of type 'HTMLObjectElement'.`);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
function makeWrapper(globalObject, newTarget) {
|
|
35
|
+
let proto;
|
|
36
|
+
if (newTarget !== undefined) {
|
|
37
|
+
proto = newTarget.prototype;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (!utils.isObject(proto)) {
|
|
41
|
+
proto = globalObject[ctorRegistrySymbol]["HTMLObjectElement"].prototype;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return Object.create(proto);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
exports.create = (globalObject, constructorArgs, privateData) => {
|
|
48
|
+
const wrapper = makeWrapper(globalObject);
|
|
49
|
+
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.createImpl = (globalObject, constructorArgs, privateData) => {
|
|
53
|
+
const wrapper = exports.create(globalObject, constructorArgs, privateData);
|
|
54
|
+
return utils.implForWrapper(wrapper);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
exports._internalSetup = (wrapper, globalObject) => {
|
|
58
|
+
HTMLElement._internalSetup(wrapper, globalObject);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
|
|
62
|
+
privateData.wrapper = wrapper;
|
|
63
|
+
|
|
64
|
+
exports._internalSetup(wrapper, globalObject);
|
|
65
|
+
Object.defineProperty(wrapper, implSymbol, {
|
|
66
|
+
value: new Impl.implementation(globalObject, constructorArgs, privateData),
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
|
|
71
|
+
if (Impl.init) {
|
|
72
|
+
Impl.init(wrapper[implSymbol]);
|
|
73
|
+
}
|
|
74
|
+
return wrapper;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.new = (globalObject, newTarget) => {
|
|
78
|
+
const wrapper = makeWrapper(globalObject, newTarget);
|
|
79
|
+
|
|
80
|
+
exports._internalSetup(wrapper, globalObject);
|
|
81
|
+
Object.defineProperty(wrapper, implSymbol, {
|
|
82
|
+
value: Object.create(Impl.implementation.prototype),
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
|
|
87
|
+
if (Impl.init) {
|
|
88
|
+
Impl.init(wrapper[implSymbol]);
|
|
89
|
+
}
|
|
90
|
+
return wrapper[implSymbol];
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const exposed = new Set(["Window"]);
|
|
94
|
+
|
|
95
|
+
exports.install = (globalObject, globalNames) => {
|
|
96
|
+
if (!globalNames.some(globalName => exposed.has(globalName))) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const ctorRegistry = utils.initCtorRegistry(globalObject);
|
|
101
|
+
class HTMLObjectElement extends globalObject.HTMLElement {
|
|
102
|
+
constructor() {
|
|
103
|
+
return HTMLConstructor_jsdom_living_helpers_html_constructor(globalObject, interfaceName, new.target);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
checkValidity() {
|
|
107
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
108
|
+
if (!exports.is(esValue)) {
|
|
109
|
+
throw new globalObject.TypeError(
|
|
110
|
+
"'checkValidity' called on an object that is not a valid instance of HTMLObjectElement."
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return esValue[implSymbol].checkValidity();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
reportValidity() {
|
|
118
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
119
|
+
if (!exports.is(esValue)) {
|
|
120
|
+
throw new globalObject.TypeError(
|
|
121
|
+
"'reportValidity' called on an object that is not a valid instance of HTMLObjectElement."
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return esValue[implSymbol].reportValidity();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
setCustomValidity(error) {
|
|
129
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
130
|
+
if (!exports.is(esValue)) {
|
|
131
|
+
throw new globalObject.TypeError(
|
|
132
|
+
"'setCustomValidity' called on an object that is not a valid instance of HTMLObjectElement."
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (arguments.length < 1) {
|
|
137
|
+
throw new globalObject.TypeError(
|
|
138
|
+
`Failed to execute 'setCustomValidity' on 'HTMLObjectElement': 1 argument required, but only ${arguments.length} present.`
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
const args = [];
|
|
142
|
+
{
|
|
143
|
+
let curArg = arguments[0];
|
|
144
|
+
curArg = conversions["DOMString"](curArg, {
|
|
145
|
+
context: "Failed to execute 'setCustomValidity' on 'HTMLObjectElement': parameter 1",
|
|
146
|
+
globals: globalObject
|
|
147
|
+
});
|
|
148
|
+
args.push(curArg);
|
|
149
|
+
}
|
|
150
|
+
return esValue[implSymbol].setCustomValidity(...args);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
get data() {
|
|
154
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
155
|
+
|
|
156
|
+
if (!exports.is(esValue)) {
|
|
157
|
+
throw new globalObject.TypeError(
|
|
158
|
+
"'get data' called on an object that is not a valid instance of HTMLObjectElement."
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
163
|
+
try {
|
|
164
|
+
const impl = esValue[implSymbol];
|
|
165
|
+
const value = impl._reflectGetTheContentAttribute("data");
|
|
166
|
+
if (value === null) {
|
|
167
|
+
return "";
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const document = impl._ownerDocument;
|
|
171
|
+
if (this._dataURLCacheKey === value && this._baseURLCache === document._baseURLCache) {
|
|
172
|
+
return this._dataURLCache;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
this._dataURLCacheKey = value;
|
|
176
|
+
this._baseURLCache = document._baseURLCache;
|
|
177
|
+
|
|
178
|
+
const urlRecord = document.encodingParseAURL(value);
|
|
179
|
+
if (urlRecord !== null) {
|
|
180
|
+
this._dataURLCache = serializeURLwhatwg_url(urlRecord);
|
|
181
|
+
return this._dataURLCache;
|
|
182
|
+
}
|
|
183
|
+
this._dataURLCache = conversions.USVString(value);
|
|
184
|
+
return this._dataURLCache;
|
|
185
|
+
} finally {
|
|
186
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
set data(V) {
|
|
191
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
192
|
+
|
|
193
|
+
if (!exports.is(esValue)) {
|
|
194
|
+
throw new globalObject.TypeError(
|
|
195
|
+
"'set data' called on an object that is not a valid instance of HTMLObjectElement."
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
V = conversions["USVString"](V, {
|
|
200
|
+
context: "Failed to set the 'data' property on 'HTMLObjectElement': The provided value",
|
|
201
|
+
globals: globalObject
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
205
|
+
try {
|
|
206
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("data", V);
|
|
207
|
+
} finally {
|
|
208
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
get type() {
|
|
213
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
214
|
+
|
|
215
|
+
if (!exports.is(esValue)) {
|
|
216
|
+
throw new globalObject.TypeError(
|
|
217
|
+
"'get type' called on an object that is not a valid instance of HTMLObjectElement."
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
222
|
+
try {
|
|
223
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("type");
|
|
224
|
+
return value === null ? "" : value;
|
|
225
|
+
} finally {
|
|
226
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
set type(V) {
|
|
231
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
232
|
+
|
|
233
|
+
if (!exports.is(esValue)) {
|
|
234
|
+
throw new globalObject.TypeError(
|
|
235
|
+
"'set type' called on an object that is not a valid instance of HTMLObjectElement."
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
V = conversions["DOMString"](V, {
|
|
240
|
+
context: "Failed to set the 'type' property on 'HTMLObjectElement': The provided value",
|
|
241
|
+
globals: globalObject
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
245
|
+
try {
|
|
246
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("type", V);
|
|
247
|
+
} finally {
|
|
248
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
get name() {
|
|
253
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
254
|
+
|
|
255
|
+
if (!exports.is(esValue)) {
|
|
256
|
+
throw new globalObject.TypeError(
|
|
257
|
+
"'get name' called on an object that is not a valid instance of HTMLObjectElement."
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
262
|
+
try {
|
|
263
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("name");
|
|
264
|
+
return value === null ? "" : value;
|
|
265
|
+
} finally {
|
|
266
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
set name(V) {
|
|
271
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
272
|
+
|
|
273
|
+
if (!exports.is(esValue)) {
|
|
274
|
+
throw new globalObject.TypeError(
|
|
275
|
+
"'set name' called on an object that is not a valid instance of HTMLObjectElement."
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
V = conversions["DOMString"](V, {
|
|
280
|
+
context: "Failed to set the 'name' property on 'HTMLObjectElement': The provided value",
|
|
281
|
+
globals: globalObject
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
285
|
+
try {
|
|
286
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("name", V);
|
|
287
|
+
} finally {
|
|
288
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
get useMap() {
|
|
293
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
294
|
+
|
|
295
|
+
if (!exports.is(esValue)) {
|
|
296
|
+
throw new globalObject.TypeError(
|
|
297
|
+
"'get useMap' called on an object that is not a valid instance of HTMLObjectElement."
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
302
|
+
try {
|
|
303
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("usemap");
|
|
304
|
+
return value === null ? "" : value;
|
|
305
|
+
} finally {
|
|
306
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
set useMap(V) {
|
|
311
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
312
|
+
|
|
313
|
+
if (!exports.is(esValue)) {
|
|
314
|
+
throw new globalObject.TypeError(
|
|
315
|
+
"'set useMap' called on an object that is not a valid instance of HTMLObjectElement."
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
V = conversions["DOMString"](V, {
|
|
320
|
+
context: "Failed to set the 'useMap' property on 'HTMLObjectElement': The provided value",
|
|
321
|
+
globals: globalObject
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
325
|
+
try {
|
|
326
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("usemap", V);
|
|
327
|
+
} finally {
|
|
328
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
get form() {
|
|
333
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
334
|
+
|
|
335
|
+
if (!exports.is(esValue)) {
|
|
336
|
+
throw new globalObject.TypeError(
|
|
337
|
+
"'get form' called on an object that is not a valid instance of HTMLObjectElement."
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
get width() {
|
|
345
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
346
|
+
|
|
347
|
+
if (!exports.is(esValue)) {
|
|
348
|
+
throw new globalObject.TypeError(
|
|
349
|
+
"'get width' called on an object that is not a valid instance of HTMLObjectElement."
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
354
|
+
try {
|
|
355
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("width");
|
|
356
|
+
return value === null ? "" : value;
|
|
357
|
+
} finally {
|
|
358
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
set width(V) {
|
|
363
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
364
|
+
|
|
365
|
+
if (!exports.is(esValue)) {
|
|
366
|
+
throw new globalObject.TypeError(
|
|
367
|
+
"'set width' called on an object that is not a valid instance of HTMLObjectElement."
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
V = conversions["DOMString"](V, {
|
|
372
|
+
context: "Failed to set the 'width' property on 'HTMLObjectElement': The provided value",
|
|
373
|
+
globals: globalObject
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
377
|
+
try {
|
|
378
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("width", V);
|
|
379
|
+
} finally {
|
|
380
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
get height() {
|
|
385
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
386
|
+
|
|
387
|
+
if (!exports.is(esValue)) {
|
|
388
|
+
throw new globalObject.TypeError(
|
|
389
|
+
"'get height' called on an object that is not a valid instance of HTMLObjectElement."
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
394
|
+
try {
|
|
395
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("height");
|
|
396
|
+
return value === null ? "" : value;
|
|
397
|
+
} finally {
|
|
398
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
set height(V) {
|
|
403
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
404
|
+
|
|
405
|
+
if (!exports.is(esValue)) {
|
|
406
|
+
throw new globalObject.TypeError(
|
|
407
|
+
"'set height' called on an object that is not a valid instance of HTMLObjectElement."
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
V = conversions["DOMString"](V, {
|
|
412
|
+
context: "Failed to set the 'height' property on 'HTMLObjectElement': The provided value",
|
|
413
|
+
globals: globalObject
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
417
|
+
try {
|
|
418
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("height", V);
|
|
419
|
+
} finally {
|
|
420
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
get contentDocument() {
|
|
425
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
426
|
+
|
|
427
|
+
if (!exports.is(esValue)) {
|
|
428
|
+
throw new globalObject.TypeError(
|
|
429
|
+
"'get contentDocument' called on an object that is not a valid instance of HTMLObjectElement."
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
get willValidate() {
|
|
437
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
438
|
+
|
|
439
|
+
if (!exports.is(esValue)) {
|
|
440
|
+
throw new globalObject.TypeError(
|
|
441
|
+
"'get willValidate' called on an object that is not a valid instance of HTMLObjectElement."
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
return esValue[implSymbol]["willValidate"];
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
get validity() {
|
|
449
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
450
|
+
|
|
451
|
+
if (!exports.is(esValue)) {
|
|
452
|
+
throw new globalObject.TypeError(
|
|
453
|
+
"'get validity' called on an object that is not a valid instance of HTMLObjectElement."
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
get validationMessage() {
|
|
461
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
462
|
+
|
|
463
|
+
if (!exports.is(esValue)) {
|
|
464
|
+
throw new globalObject.TypeError(
|
|
465
|
+
"'get validationMessage' called on an object that is not a valid instance of HTMLObjectElement."
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
return esValue[implSymbol]["validationMessage"];
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
get align() {
|
|
473
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
474
|
+
|
|
475
|
+
if (!exports.is(esValue)) {
|
|
476
|
+
throw new globalObject.TypeError(
|
|
477
|
+
"'get align' called on an object that is not a valid instance of HTMLObjectElement."
|
|
478
|
+
);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
482
|
+
try {
|
|
483
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("align");
|
|
484
|
+
return value === null ? "" : value;
|
|
485
|
+
} finally {
|
|
486
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
set align(V) {
|
|
491
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
492
|
+
|
|
493
|
+
if (!exports.is(esValue)) {
|
|
494
|
+
throw new globalObject.TypeError(
|
|
495
|
+
"'set align' called on an object that is not a valid instance of HTMLObjectElement."
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
V = conversions["DOMString"](V, {
|
|
500
|
+
context: "Failed to set the 'align' property on 'HTMLObjectElement': The provided value",
|
|
501
|
+
globals: globalObject
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
505
|
+
try {
|
|
506
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("align", V);
|
|
507
|
+
} finally {
|
|
508
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
get archive() {
|
|
513
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
514
|
+
|
|
515
|
+
if (!exports.is(esValue)) {
|
|
516
|
+
throw new globalObject.TypeError(
|
|
517
|
+
"'get archive' called on an object that is not a valid instance of HTMLObjectElement."
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
522
|
+
try {
|
|
523
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("archive");
|
|
524
|
+
return value === null ? "" : value;
|
|
525
|
+
} finally {
|
|
526
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
set archive(V) {
|
|
531
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
532
|
+
|
|
533
|
+
if (!exports.is(esValue)) {
|
|
534
|
+
throw new globalObject.TypeError(
|
|
535
|
+
"'set archive' called on an object that is not a valid instance of HTMLObjectElement."
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
V = conversions["DOMString"](V, {
|
|
540
|
+
context: "Failed to set the 'archive' property on 'HTMLObjectElement': The provided value",
|
|
541
|
+
globals: globalObject
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
545
|
+
try {
|
|
546
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("archive", V);
|
|
547
|
+
} finally {
|
|
548
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
get code() {
|
|
553
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
554
|
+
|
|
555
|
+
if (!exports.is(esValue)) {
|
|
556
|
+
throw new globalObject.TypeError(
|
|
557
|
+
"'get code' called on an object that is not a valid instance of HTMLObjectElement."
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
562
|
+
try {
|
|
563
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("code");
|
|
564
|
+
return value === null ? "" : value;
|
|
565
|
+
} finally {
|
|
566
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
set code(V) {
|
|
571
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
572
|
+
|
|
573
|
+
if (!exports.is(esValue)) {
|
|
574
|
+
throw new globalObject.TypeError(
|
|
575
|
+
"'set code' called on an object that is not a valid instance of HTMLObjectElement."
|
|
576
|
+
);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
V = conversions["DOMString"](V, {
|
|
580
|
+
context: "Failed to set the 'code' property on 'HTMLObjectElement': The provided value",
|
|
581
|
+
globals: globalObject
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
585
|
+
try {
|
|
586
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("code", V);
|
|
587
|
+
} finally {
|
|
588
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
get declare() {
|
|
593
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
594
|
+
|
|
595
|
+
if (!exports.is(esValue)) {
|
|
596
|
+
throw new globalObject.TypeError(
|
|
597
|
+
"'get declare' called on an object that is not a valid instance of HTMLObjectElement."
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
602
|
+
try {
|
|
603
|
+
return esValue[implSymbol]._reflectGetTheContentAttribute("declare") !== null;
|
|
604
|
+
} finally {
|
|
605
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
set declare(V) {
|
|
610
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
611
|
+
|
|
612
|
+
if (!exports.is(esValue)) {
|
|
613
|
+
throw new globalObject.TypeError(
|
|
614
|
+
"'set declare' called on an object that is not a valid instance of HTMLObjectElement."
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
V = conversions["boolean"](V, {
|
|
619
|
+
context: "Failed to set the 'declare' property on 'HTMLObjectElement': The provided value",
|
|
620
|
+
globals: globalObject
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
624
|
+
try {
|
|
625
|
+
if (V) {
|
|
626
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("declare", "");
|
|
627
|
+
} else {
|
|
628
|
+
esValue[implSymbol]._reflectDeleteTheContentAttribute("declare");
|
|
629
|
+
}
|
|
630
|
+
} finally {
|
|
631
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
get hspace() {
|
|
636
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
637
|
+
|
|
638
|
+
if (!exports.is(esValue)) {
|
|
639
|
+
throw new globalObject.TypeError(
|
|
640
|
+
"'get hspace' called on an object that is not a valid instance of HTMLObjectElement."
|
|
641
|
+
);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
645
|
+
try {
|
|
646
|
+
let value = esValue[implSymbol]._reflectGetTheContentAttribute("hspace");
|
|
647
|
+
if (value !== null) {
|
|
648
|
+
value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
|
|
649
|
+
if (value !== null && value >= 0 && value <= 2147483647) {
|
|
650
|
+
return value;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return 0;
|
|
654
|
+
} finally {
|
|
655
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
set hspace(V) {
|
|
660
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
661
|
+
|
|
662
|
+
if (!exports.is(esValue)) {
|
|
663
|
+
throw new globalObject.TypeError(
|
|
664
|
+
"'set hspace' called on an object that is not a valid instance of HTMLObjectElement."
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
V = conversions["unsigned long"](V, {
|
|
669
|
+
context: "Failed to set the 'hspace' property on 'HTMLObjectElement': The provided value",
|
|
670
|
+
globals: globalObject
|
|
671
|
+
});
|
|
672
|
+
|
|
673
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
674
|
+
try {
|
|
675
|
+
const newValue = V <= 2147483647 && V >= 0 ? V : 0;
|
|
676
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("hspace", String(newValue));
|
|
677
|
+
} finally {
|
|
678
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
get standby() {
|
|
683
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
684
|
+
|
|
685
|
+
if (!exports.is(esValue)) {
|
|
686
|
+
throw new globalObject.TypeError(
|
|
687
|
+
"'get standby' called on an object that is not a valid instance of HTMLObjectElement."
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
692
|
+
try {
|
|
693
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("standby");
|
|
694
|
+
return value === null ? "" : value;
|
|
695
|
+
} finally {
|
|
696
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
set standby(V) {
|
|
701
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
702
|
+
|
|
703
|
+
if (!exports.is(esValue)) {
|
|
704
|
+
throw new globalObject.TypeError(
|
|
705
|
+
"'set standby' called on an object that is not a valid instance of HTMLObjectElement."
|
|
706
|
+
);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
V = conversions["DOMString"](V, {
|
|
710
|
+
context: "Failed to set the 'standby' property on 'HTMLObjectElement': The provided value",
|
|
711
|
+
globals: globalObject
|
|
712
|
+
});
|
|
713
|
+
|
|
714
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
715
|
+
try {
|
|
716
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("standby", V);
|
|
717
|
+
} finally {
|
|
718
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
get vspace() {
|
|
723
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
724
|
+
|
|
725
|
+
if (!exports.is(esValue)) {
|
|
726
|
+
throw new globalObject.TypeError(
|
|
727
|
+
"'get vspace' called on an object that is not a valid instance of HTMLObjectElement."
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
732
|
+
try {
|
|
733
|
+
let value = esValue[implSymbol]._reflectGetTheContentAttribute("vspace");
|
|
734
|
+
if (value !== null) {
|
|
735
|
+
value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
|
|
736
|
+
if (value !== null && value >= 0 && value <= 2147483647) {
|
|
737
|
+
return value;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
return 0;
|
|
741
|
+
} finally {
|
|
742
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
set vspace(V) {
|
|
747
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
748
|
+
|
|
749
|
+
if (!exports.is(esValue)) {
|
|
750
|
+
throw new globalObject.TypeError(
|
|
751
|
+
"'set vspace' called on an object that is not a valid instance of HTMLObjectElement."
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
V = conversions["unsigned long"](V, {
|
|
756
|
+
context: "Failed to set the 'vspace' property on 'HTMLObjectElement': The provided value",
|
|
757
|
+
globals: globalObject
|
|
758
|
+
});
|
|
759
|
+
|
|
760
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
761
|
+
try {
|
|
762
|
+
const newValue = V <= 2147483647 && V >= 0 ? V : 0;
|
|
763
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("vspace", String(newValue));
|
|
764
|
+
} finally {
|
|
765
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
get codeBase() {
|
|
770
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
771
|
+
|
|
772
|
+
if (!exports.is(esValue)) {
|
|
773
|
+
throw new globalObject.TypeError(
|
|
774
|
+
"'get codeBase' called on an object that is not a valid instance of HTMLObjectElement."
|
|
775
|
+
);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
779
|
+
try {
|
|
780
|
+
const impl = esValue[implSymbol];
|
|
781
|
+
const value = impl._reflectGetTheContentAttribute("codebase");
|
|
782
|
+
if (value === null) {
|
|
783
|
+
return "";
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
const document = impl._ownerDocument;
|
|
787
|
+
if (this._codebaseURLCacheKey === value && this._baseURLCache === document._baseURLCache) {
|
|
788
|
+
return this._codebaseURLCache;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
this._codebaseURLCacheKey = value;
|
|
792
|
+
this._baseURLCache = document._baseURLCache;
|
|
793
|
+
|
|
794
|
+
const urlRecord = document.encodingParseAURL(value);
|
|
795
|
+
if (urlRecord !== null) {
|
|
796
|
+
this._codebaseURLCache = serializeURLwhatwg_url(urlRecord);
|
|
797
|
+
return this._codebaseURLCache;
|
|
798
|
+
}
|
|
799
|
+
this._codebaseURLCache = conversions.USVString(value);
|
|
800
|
+
return this._codebaseURLCache;
|
|
801
|
+
} finally {
|
|
802
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
set codeBase(V) {
|
|
807
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
808
|
+
|
|
809
|
+
if (!exports.is(esValue)) {
|
|
810
|
+
throw new globalObject.TypeError(
|
|
811
|
+
"'set codeBase' called on an object that is not a valid instance of HTMLObjectElement."
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
V = conversions["DOMString"](V, {
|
|
816
|
+
context: "Failed to set the 'codeBase' property on 'HTMLObjectElement': The provided value",
|
|
817
|
+
globals: globalObject
|
|
818
|
+
});
|
|
819
|
+
|
|
820
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
821
|
+
try {
|
|
822
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("codebase", V);
|
|
823
|
+
} finally {
|
|
824
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
get codeType() {
|
|
829
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
830
|
+
|
|
831
|
+
if (!exports.is(esValue)) {
|
|
832
|
+
throw new globalObject.TypeError(
|
|
833
|
+
"'get codeType' called on an object that is not a valid instance of HTMLObjectElement."
|
|
834
|
+
);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
838
|
+
try {
|
|
839
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("codetype");
|
|
840
|
+
return value === null ? "" : value;
|
|
841
|
+
} finally {
|
|
842
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
set codeType(V) {
|
|
847
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
848
|
+
|
|
849
|
+
if (!exports.is(esValue)) {
|
|
850
|
+
throw new globalObject.TypeError(
|
|
851
|
+
"'set codeType' called on an object that is not a valid instance of HTMLObjectElement."
|
|
852
|
+
);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
V = conversions["DOMString"](V, {
|
|
856
|
+
context: "Failed to set the 'codeType' property on 'HTMLObjectElement': The provided value",
|
|
857
|
+
globals: globalObject
|
|
858
|
+
});
|
|
859
|
+
|
|
860
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
861
|
+
try {
|
|
862
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("codetype", V);
|
|
863
|
+
} finally {
|
|
864
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
get border() {
|
|
869
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
870
|
+
|
|
871
|
+
if (!exports.is(esValue)) {
|
|
872
|
+
throw new globalObject.TypeError(
|
|
873
|
+
"'get border' called on an object that is not a valid instance of HTMLObjectElement."
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
878
|
+
try {
|
|
879
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("border");
|
|
880
|
+
return value === null ? "" : value;
|
|
881
|
+
} finally {
|
|
882
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
set border(V) {
|
|
887
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
888
|
+
|
|
889
|
+
if (!exports.is(esValue)) {
|
|
890
|
+
throw new globalObject.TypeError(
|
|
891
|
+
"'set border' called on an object that is not a valid instance of HTMLObjectElement."
|
|
892
|
+
);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
V = conversions["DOMString"](V, {
|
|
896
|
+
context: "Failed to set the 'border' property on 'HTMLObjectElement': The provided value",
|
|
897
|
+
globals: globalObject,
|
|
898
|
+
treatNullAsEmptyString: true
|
|
899
|
+
});
|
|
900
|
+
|
|
901
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
902
|
+
try {
|
|
903
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("border", V);
|
|
904
|
+
} finally {
|
|
905
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
Object.defineProperties(HTMLObjectElement.prototype, {
|
|
910
|
+
checkValidity: { enumerable: true },
|
|
911
|
+
reportValidity: { enumerable: true },
|
|
912
|
+
setCustomValidity: { enumerable: true },
|
|
913
|
+
data: { enumerable: true },
|
|
914
|
+
type: { enumerable: true },
|
|
915
|
+
name: { enumerable: true },
|
|
916
|
+
useMap: { enumerable: true },
|
|
917
|
+
form: { enumerable: true },
|
|
918
|
+
width: { enumerable: true },
|
|
919
|
+
height: { enumerable: true },
|
|
920
|
+
contentDocument: { enumerable: true },
|
|
921
|
+
willValidate: { enumerable: true },
|
|
922
|
+
validity: { enumerable: true },
|
|
923
|
+
validationMessage: { enumerable: true },
|
|
924
|
+
align: { enumerable: true },
|
|
925
|
+
archive: { enumerable: true },
|
|
926
|
+
code: { enumerable: true },
|
|
927
|
+
declare: { enumerable: true },
|
|
928
|
+
hspace: { enumerable: true },
|
|
929
|
+
standby: { enumerable: true },
|
|
930
|
+
vspace: { enumerable: true },
|
|
931
|
+
codeBase: { enumerable: true },
|
|
932
|
+
codeType: { enumerable: true },
|
|
933
|
+
border: { enumerable: true },
|
|
934
|
+
[Symbol.toStringTag]: { value: "HTMLObjectElement", configurable: true }
|
|
935
|
+
});
|
|
936
|
+
ctorRegistry[interfaceName] = HTMLObjectElement;
|
|
937
|
+
|
|
938
|
+
Object.defineProperty(globalObject, interfaceName, {
|
|
939
|
+
configurable: true,
|
|
940
|
+
writable: true,
|
|
941
|
+
value: HTMLObjectElement
|
|
942
|
+
});
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
const Impl = require("../../jsdom/living/nodes/HTMLObjectElement-impl.js");
|