@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,1026 @@
|
|
|
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 ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
|
|
9
|
+
require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
|
|
10
|
+
const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
|
|
11
|
+
require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
|
|
12
|
+
const implSymbol = utils.implSymbol;
|
|
13
|
+
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
|
|
14
|
+
const HTMLElement = require("./HTMLElement.js");
|
|
15
|
+
|
|
16
|
+
const interfaceName = "HTMLAnchorElement";
|
|
17
|
+
|
|
18
|
+
exports.is = value => {
|
|
19
|
+
return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
|
|
20
|
+
};
|
|
21
|
+
exports.isImpl = value => {
|
|
22
|
+
return utils.isObject(value) && value instanceof Impl.implementation;
|
|
23
|
+
};
|
|
24
|
+
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
|
|
25
|
+
if (exports.is(value)) {
|
|
26
|
+
return utils.implForWrapper(value);
|
|
27
|
+
}
|
|
28
|
+
throw new globalObject.TypeError(`${context} is not of type 'HTMLAnchorElement'.`);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function makeWrapper(globalObject, newTarget) {
|
|
32
|
+
let proto;
|
|
33
|
+
if (newTarget !== undefined) {
|
|
34
|
+
proto = newTarget.prototype;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (!utils.isObject(proto)) {
|
|
38
|
+
proto = globalObject[ctorRegistrySymbol]["HTMLAnchorElement"].prototype;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return Object.create(proto);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.create = (globalObject, constructorArgs, privateData) => {
|
|
45
|
+
const wrapper = makeWrapper(globalObject);
|
|
46
|
+
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.createImpl = (globalObject, constructorArgs, privateData) => {
|
|
50
|
+
const wrapper = exports.create(globalObject, constructorArgs, privateData);
|
|
51
|
+
return utils.implForWrapper(wrapper);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports._internalSetup = (wrapper, globalObject) => {
|
|
55
|
+
HTMLElement._internalSetup(wrapper, globalObject);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
|
|
59
|
+
privateData.wrapper = wrapper;
|
|
60
|
+
|
|
61
|
+
exports._internalSetup(wrapper, globalObject);
|
|
62
|
+
Object.defineProperty(wrapper, implSymbol, {
|
|
63
|
+
value: new Impl.implementation(globalObject, constructorArgs, privateData),
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
|
|
68
|
+
if (Impl.init) {
|
|
69
|
+
Impl.init(wrapper[implSymbol]);
|
|
70
|
+
}
|
|
71
|
+
return wrapper;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.new = (globalObject, newTarget) => {
|
|
75
|
+
const wrapper = makeWrapper(globalObject, newTarget);
|
|
76
|
+
|
|
77
|
+
exports._internalSetup(wrapper, globalObject);
|
|
78
|
+
Object.defineProperty(wrapper, implSymbol, {
|
|
79
|
+
value: Object.create(Impl.implementation.prototype),
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
|
|
84
|
+
if (Impl.init) {
|
|
85
|
+
Impl.init(wrapper[implSymbol]);
|
|
86
|
+
}
|
|
87
|
+
return wrapper[implSymbol];
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const exposed = new Set(["Window"]);
|
|
91
|
+
|
|
92
|
+
exports.install = (globalObject, globalNames) => {
|
|
93
|
+
if (!globalNames.some(globalName => exposed.has(globalName))) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const ctorRegistry = utils.initCtorRegistry(globalObject);
|
|
98
|
+
class HTMLAnchorElement extends globalObject.HTMLElement {
|
|
99
|
+
constructor() {
|
|
100
|
+
return HTMLConstructor_jsdom_living_helpers_html_constructor(globalObject, interfaceName, new.target);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
get target() {
|
|
104
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
105
|
+
|
|
106
|
+
if (!exports.is(esValue)) {
|
|
107
|
+
throw new globalObject.TypeError(
|
|
108
|
+
"'get target' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
113
|
+
try {
|
|
114
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("target");
|
|
115
|
+
return value === null ? "" : value;
|
|
116
|
+
} finally {
|
|
117
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
set target(V) {
|
|
122
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
123
|
+
|
|
124
|
+
if (!exports.is(esValue)) {
|
|
125
|
+
throw new globalObject.TypeError(
|
|
126
|
+
"'set target' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
V = conversions["DOMString"](V, {
|
|
131
|
+
context: "Failed to set the 'target' property on 'HTMLAnchorElement': The provided value",
|
|
132
|
+
globals: globalObject
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
136
|
+
try {
|
|
137
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("target", V);
|
|
138
|
+
} finally {
|
|
139
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
get download() {
|
|
144
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
145
|
+
|
|
146
|
+
if (!exports.is(esValue)) {
|
|
147
|
+
throw new globalObject.TypeError(
|
|
148
|
+
"'get download' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
153
|
+
try {
|
|
154
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("download");
|
|
155
|
+
return value === null ? "" : value;
|
|
156
|
+
} finally {
|
|
157
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
set download(V) {
|
|
162
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
163
|
+
|
|
164
|
+
if (!exports.is(esValue)) {
|
|
165
|
+
throw new globalObject.TypeError(
|
|
166
|
+
"'set download' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
V = conversions["DOMString"](V, {
|
|
171
|
+
context: "Failed to set the 'download' property on 'HTMLAnchorElement': The provided value",
|
|
172
|
+
globals: globalObject
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
176
|
+
try {
|
|
177
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("download", V);
|
|
178
|
+
} finally {
|
|
179
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
get rel() {
|
|
184
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
185
|
+
|
|
186
|
+
if (!exports.is(esValue)) {
|
|
187
|
+
throw new globalObject.TypeError(
|
|
188
|
+
"'get rel' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
193
|
+
try {
|
|
194
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("rel");
|
|
195
|
+
return value === null ? "" : value;
|
|
196
|
+
} finally {
|
|
197
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
set rel(V) {
|
|
202
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
203
|
+
|
|
204
|
+
if (!exports.is(esValue)) {
|
|
205
|
+
throw new globalObject.TypeError(
|
|
206
|
+
"'set rel' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
V = conversions["DOMString"](V, {
|
|
211
|
+
context: "Failed to set the 'rel' property on 'HTMLAnchorElement': The provided value",
|
|
212
|
+
globals: globalObject
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
216
|
+
try {
|
|
217
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("rel", V);
|
|
218
|
+
} finally {
|
|
219
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
get relList() {
|
|
224
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
225
|
+
|
|
226
|
+
if (!exports.is(esValue)) {
|
|
227
|
+
throw new globalObject.TypeError(
|
|
228
|
+
"'get relList' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
return utils.getSameObject(this, "relList", () => {
|
|
233
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
set relList(V) {
|
|
238
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
239
|
+
|
|
240
|
+
if (!exports.is(esValue)) {
|
|
241
|
+
throw new globalObject.TypeError(
|
|
242
|
+
"'set relList' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const Q = esValue["relList"];
|
|
247
|
+
if (!utils.isObject(Q)) {
|
|
248
|
+
throw new globalObject.TypeError("Property 'relList' is not an object");
|
|
249
|
+
}
|
|
250
|
+
Reflect.set(Q, "value", V);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
get hreflang() {
|
|
254
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
255
|
+
|
|
256
|
+
if (!exports.is(esValue)) {
|
|
257
|
+
throw new globalObject.TypeError(
|
|
258
|
+
"'get hreflang' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
263
|
+
try {
|
|
264
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("hreflang");
|
|
265
|
+
return value === null ? "" : value;
|
|
266
|
+
} finally {
|
|
267
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
set hreflang(V) {
|
|
272
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
273
|
+
|
|
274
|
+
if (!exports.is(esValue)) {
|
|
275
|
+
throw new globalObject.TypeError(
|
|
276
|
+
"'set hreflang' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
V = conversions["DOMString"](V, {
|
|
281
|
+
context: "Failed to set the 'hreflang' property on 'HTMLAnchorElement': The provided value",
|
|
282
|
+
globals: globalObject
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
286
|
+
try {
|
|
287
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("hreflang", V);
|
|
288
|
+
} finally {
|
|
289
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
get type() {
|
|
294
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
295
|
+
|
|
296
|
+
if (!exports.is(esValue)) {
|
|
297
|
+
throw new globalObject.TypeError(
|
|
298
|
+
"'get type' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
303
|
+
try {
|
|
304
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("type");
|
|
305
|
+
return value === null ? "" : value;
|
|
306
|
+
} finally {
|
|
307
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
set type(V) {
|
|
312
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
313
|
+
|
|
314
|
+
if (!exports.is(esValue)) {
|
|
315
|
+
throw new globalObject.TypeError(
|
|
316
|
+
"'set type' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
V = conversions["DOMString"](V, {
|
|
321
|
+
context: "Failed to set the 'type' property on 'HTMLAnchorElement': The provided value",
|
|
322
|
+
globals: globalObject
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
326
|
+
try {
|
|
327
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("type", V);
|
|
328
|
+
} finally {
|
|
329
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
get text() {
|
|
334
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
335
|
+
|
|
336
|
+
if (!exports.is(esValue)) {
|
|
337
|
+
throw new globalObject.TypeError(
|
|
338
|
+
"'get text' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
343
|
+
try {
|
|
344
|
+
return esValue[implSymbol]["text"];
|
|
345
|
+
} finally {
|
|
346
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
set text(V) {
|
|
351
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
352
|
+
|
|
353
|
+
if (!exports.is(esValue)) {
|
|
354
|
+
throw new globalObject.TypeError(
|
|
355
|
+
"'set text' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
V = conversions["DOMString"](V, {
|
|
360
|
+
context: "Failed to set the 'text' property on 'HTMLAnchorElement': The provided value",
|
|
361
|
+
globals: globalObject
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
365
|
+
try {
|
|
366
|
+
esValue[implSymbol]["text"] = V;
|
|
367
|
+
} finally {
|
|
368
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
get coords() {
|
|
373
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
374
|
+
|
|
375
|
+
if (!exports.is(esValue)) {
|
|
376
|
+
throw new globalObject.TypeError(
|
|
377
|
+
"'get coords' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
382
|
+
try {
|
|
383
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("coords");
|
|
384
|
+
return value === null ? "" : value;
|
|
385
|
+
} finally {
|
|
386
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
set coords(V) {
|
|
391
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
392
|
+
|
|
393
|
+
if (!exports.is(esValue)) {
|
|
394
|
+
throw new globalObject.TypeError(
|
|
395
|
+
"'set coords' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
V = conversions["DOMString"](V, {
|
|
400
|
+
context: "Failed to set the 'coords' property on 'HTMLAnchorElement': The provided value",
|
|
401
|
+
globals: globalObject
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
405
|
+
try {
|
|
406
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("coords", V);
|
|
407
|
+
} finally {
|
|
408
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
get charset() {
|
|
413
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
414
|
+
|
|
415
|
+
if (!exports.is(esValue)) {
|
|
416
|
+
throw new globalObject.TypeError(
|
|
417
|
+
"'get charset' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
422
|
+
try {
|
|
423
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("charset");
|
|
424
|
+
return value === null ? "" : value;
|
|
425
|
+
} finally {
|
|
426
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
set charset(V) {
|
|
431
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
432
|
+
|
|
433
|
+
if (!exports.is(esValue)) {
|
|
434
|
+
throw new globalObject.TypeError(
|
|
435
|
+
"'set charset' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
436
|
+
);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
V = conversions["DOMString"](V, {
|
|
440
|
+
context: "Failed to set the 'charset' property on 'HTMLAnchorElement': The provided value",
|
|
441
|
+
globals: globalObject
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
445
|
+
try {
|
|
446
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("charset", V);
|
|
447
|
+
} finally {
|
|
448
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
get name() {
|
|
453
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
454
|
+
|
|
455
|
+
if (!exports.is(esValue)) {
|
|
456
|
+
throw new globalObject.TypeError(
|
|
457
|
+
"'get name' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
462
|
+
try {
|
|
463
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("name");
|
|
464
|
+
return value === null ? "" : value;
|
|
465
|
+
} finally {
|
|
466
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
set name(V) {
|
|
471
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
472
|
+
|
|
473
|
+
if (!exports.is(esValue)) {
|
|
474
|
+
throw new globalObject.TypeError(
|
|
475
|
+
"'set name' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
V = conversions["DOMString"](V, {
|
|
480
|
+
context: "Failed to set the 'name' property on 'HTMLAnchorElement': The provided value",
|
|
481
|
+
globals: globalObject
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
485
|
+
try {
|
|
486
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("name", V);
|
|
487
|
+
} finally {
|
|
488
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
get rev() {
|
|
493
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
494
|
+
|
|
495
|
+
if (!exports.is(esValue)) {
|
|
496
|
+
throw new globalObject.TypeError(
|
|
497
|
+
"'get rev' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
502
|
+
try {
|
|
503
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("rev");
|
|
504
|
+
return value === null ? "" : value;
|
|
505
|
+
} finally {
|
|
506
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
set rev(V) {
|
|
511
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
512
|
+
|
|
513
|
+
if (!exports.is(esValue)) {
|
|
514
|
+
throw new globalObject.TypeError(
|
|
515
|
+
"'set rev' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
V = conversions["DOMString"](V, {
|
|
520
|
+
context: "Failed to set the 'rev' property on 'HTMLAnchorElement': The provided value",
|
|
521
|
+
globals: globalObject
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
525
|
+
try {
|
|
526
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("rev", V);
|
|
527
|
+
} finally {
|
|
528
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
get shape() {
|
|
533
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
534
|
+
|
|
535
|
+
if (!exports.is(esValue)) {
|
|
536
|
+
throw new globalObject.TypeError(
|
|
537
|
+
"'get shape' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
542
|
+
try {
|
|
543
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("shape");
|
|
544
|
+
return value === null ? "" : value;
|
|
545
|
+
} finally {
|
|
546
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
set shape(V) {
|
|
551
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
552
|
+
|
|
553
|
+
if (!exports.is(esValue)) {
|
|
554
|
+
throw new globalObject.TypeError(
|
|
555
|
+
"'set shape' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
V = conversions["DOMString"](V, {
|
|
560
|
+
context: "Failed to set the 'shape' property on 'HTMLAnchorElement': The provided value",
|
|
561
|
+
globals: globalObject
|
|
562
|
+
});
|
|
563
|
+
|
|
564
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
565
|
+
try {
|
|
566
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("shape", V);
|
|
567
|
+
} finally {
|
|
568
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
get href() {
|
|
573
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
574
|
+
|
|
575
|
+
if (!exports.is(esValue)) {
|
|
576
|
+
throw new globalObject.TypeError(
|
|
577
|
+
"'get href' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
578
|
+
);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
582
|
+
try {
|
|
583
|
+
return esValue[implSymbol]["href"];
|
|
584
|
+
} finally {
|
|
585
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
set href(V) {
|
|
590
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
591
|
+
|
|
592
|
+
if (!exports.is(esValue)) {
|
|
593
|
+
throw new globalObject.TypeError(
|
|
594
|
+
"'set href' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
V = conversions["USVString"](V, {
|
|
599
|
+
context: "Failed to set the 'href' property on 'HTMLAnchorElement': The provided value",
|
|
600
|
+
globals: globalObject
|
|
601
|
+
});
|
|
602
|
+
|
|
603
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
604
|
+
try {
|
|
605
|
+
esValue[implSymbol]["href"] = V;
|
|
606
|
+
} finally {
|
|
607
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
toString() {
|
|
612
|
+
const esValue = this;
|
|
613
|
+
if (!exports.is(esValue)) {
|
|
614
|
+
throw new globalObject.TypeError(
|
|
615
|
+
"'toString' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
616
|
+
);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
620
|
+
try {
|
|
621
|
+
return esValue[implSymbol]["href"];
|
|
622
|
+
} finally {
|
|
623
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
get origin() {
|
|
628
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
629
|
+
|
|
630
|
+
if (!exports.is(esValue)) {
|
|
631
|
+
throw new globalObject.TypeError(
|
|
632
|
+
"'get origin' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
return esValue[implSymbol]["origin"];
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
get protocol() {
|
|
640
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
641
|
+
|
|
642
|
+
if (!exports.is(esValue)) {
|
|
643
|
+
throw new globalObject.TypeError(
|
|
644
|
+
"'get protocol' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
649
|
+
try {
|
|
650
|
+
return esValue[implSymbol]["protocol"];
|
|
651
|
+
} finally {
|
|
652
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
set protocol(V) {
|
|
657
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
658
|
+
|
|
659
|
+
if (!exports.is(esValue)) {
|
|
660
|
+
throw new globalObject.TypeError(
|
|
661
|
+
"'set protocol' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
662
|
+
);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
V = conversions["USVString"](V, {
|
|
666
|
+
context: "Failed to set the 'protocol' property on 'HTMLAnchorElement': The provided value",
|
|
667
|
+
globals: globalObject
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
671
|
+
try {
|
|
672
|
+
esValue[implSymbol]["protocol"] = V;
|
|
673
|
+
} finally {
|
|
674
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
get username() {
|
|
679
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
680
|
+
|
|
681
|
+
if (!exports.is(esValue)) {
|
|
682
|
+
throw new globalObject.TypeError(
|
|
683
|
+
"'get username' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
688
|
+
try {
|
|
689
|
+
return esValue[implSymbol]["username"];
|
|
690
|
+
} finally {
|
|
691
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
set username(V) {
|
|
696
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
697
|
+
|
|
698
|
+
if (!exports.is(esValue)) {
|
|
699
|
+
throw new globalObject.TypeError(
|
|
700
|
+
"'set username' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
V = conversions["USVString"](V, {
|
|
705
|
+
context: "Failed to set the 'username' property on 'HTMLAnchorElement': The provided value",
|
|
706
|
+
globals: globalObject
|
|
707
|
+
});
|
|
708
|
+
|
|
709
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
710
|
+
try {
|
|
711
|
+
esValue[implSymbol]["username"] = V;
|
|
712
|
+
} finally {
|
|
713
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
get password() {
|
|
718
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
719
|
+
|
|
720
|
+
if (!exports.is(esValue)) {
|
|
721
|
+
throw new globalObject.TypeError(
|
|
722
|
+
"'get password' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
727
|
+
try {
|
|
728
|
+
return esValue[implSymbol]["password"];
|
|
729
|
+
} finally {
|
|
730
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
set password(V) {
|
|
735
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
736
|
+
|
|
737
|
+
if (!exports.is(esValue)) {
|
|
738
|
+
throw new globalObject.TypeError(
|
|
739
|
+
"'set password' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
740
|
+
);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
V = conversions["USVString"](V, {
|
|
744
|
+
context: "Failed to set the 'password' property on 'HTMLAnchorElement': The provided value",
|
|
745
|
+
globals: globalObject
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
749
|
+
try {
|
|
750
|
+
esValue[implSymbol]["password"] = V;
|
|
751
|
+
} finally {
|
|
752
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
get host() {
|
|
757
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
758
|
+
|
|
759
|
+
if (!exports.is(esValue)) {
|
|
760
|
+
throw new globalObject.TypeError(
|
|
761
|
+
"'get host' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
762
|
+
);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
766
|
+
try {
|
|
767
|
+
return esValue[implSymbol]["host"];
|
|
768
|
+
} finally {
|
|
769
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
set host(V) {
|
|
774
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
775
|
+
|
|
776
|
+
if (!exports.is(esValue)) {
|
|
777
|
+
throw new globalObject.TypeError(
|
|
778
|
+
"'set host' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
779
|
+
);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
V = conversions["USVString"](V, {
|
|
783
|
+
context: "Failed to set the 'host' property on 'HTMLAnchorElement': The provided value",
|
|
784
|
+
globals: globalObject
|
|
785
|
+
});
|
|
786
|
+
|
|
787
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
788
|
+
try {
|
|
789
|
+
esValue[implSymbol]["host"] = V;
|
|
790
|
+
} finally {
|
|
791
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
get hostname() {
|
|
796
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
797
|
+
|
|
798
|
+
if (!exports.is(esValue)) {
|
|
799
|
+
throw new globalObject.TypeError(
|
|
800
|
+
"'get hostname' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
801
|
+
);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
805
|
+
try {
|
|
806
|
+
return esValue[implSymbol]["hostname"];
|
|
807
|
+
} finally {
|
|
808
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
set hostname(V) {
|
|
813
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
814
|
+
|
|
815
|
+
if (!exports.is(esValue)) {
|
|
816
|
+
throw new globalObject.TypeError(
|
|
817
|
+
"'set hostname' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
V = conversions["USVString"](V, {
|
|
822
|
+
context: "Failed to set the 'hostname' property on 'HTMLAnchorElement': The provided value",
|
|
823
|
+
globals: globalObject
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
827
|
+
try {
|
|
828
|
+
esValue[implSymbol]["hostname"] = V;
|
|
829
|
+
} finally {
|
|
830
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
get port() {
|
|
835
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
836
|
+
|
|
837
|
+
if (!exports.is(esValue)) {
|
|
838
|
+
throw new globalObject.TypeError(
|
|
839
|
+
"'get port' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
840
|
+
);
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
844
|
+
try {
|
|
845
|
+
return esValue[implSymbol]["port"];
|
|
846
|
+
} finally {
|
|
847
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
set port(V) {
|
|
852
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
853
|
+
|
|
854
|
+
if (!exports.is(esValue)) {
|
|
855
|
+
throw new globalObject.TypeError(
|
|
856
|
+
"'set port' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
V = conversions["USVString"](V, {
|
|
861
|
+
context: "Failed to set the 'port' property on 'HTMLAnchorElement': The provided value",
|
|
862
|
+
globals: globalObject
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
866
|
+
try {
|
|
867
|
+
esValue[implSymbol]["port"] = V;
|
|
868
|
+
} finally {
|
|
869
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
get pathname() {
|
|
874
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
875
|
+
|
|
876
|
+
if (!exports.is(esValue)) {
|
|
877
|
+
throw new globalObject.TypeError(
|
|
878
|
+
"'get pathname' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
883
|
+
try {
|
|
884
|
+
return esValue[implSymbol]["pathname"];
|
|
885
|
+
} finally {
|
|
886
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
set pathname(V) {
|
|
891
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
892
|
+
|
|
893
|
+
if (!exports.is(esValue)) {
|
|
894
|
+
throw new globalObject.TypeError(
|
|
895
|
+
"'set pathname' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
V = conversions["USVString"](V, {
|
|
900
|
+
context: "Failed to set the 'pathname' property on 'HTMLAnchorElement': The provided value",
|
|
901
|
+
globals: globalObject
|
|
902
|
+
});
|
|
903
|
+
|
|
904
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
905
|
+
try {
|
|
906
|
+
esValue[implSymbol]["pathname"] = V;
|
|
907
|
+
} finally {
|
|
908
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
get search() {
|
|
913
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
914
|
+
|
|
915
|
+
if (!exports.is(esValue)) {
|
|
916
|
+
throw new globalObject.TypeError(
|
|
917
|
+
"'get search' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
918
|
+
);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
922
|
+
try {
|
|
923
|
+
return esValue[implSymbol]["search"];
|
|
924
|
+
} finally {
|
|
925
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
set search(V) {
|
|
930
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
931
|
+
|
|
932
|
+
if (!exports.is(esValue)) {
|
|
933
|
+
throw new globalObject.TypeError(
|
|
934
|
+
"'set search' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
935
|
+
);
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
V = conversions["USVString"](V, {
|
|
939
|
+
context: "Failed to set the 'search' property on 'HTMLAnchorElement': The provided value",
|
|
940
|
+
globals: globalObject
|
|
941
|
+
});
|
|
942
|
+
|
|
943
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
944
|
+
try {
|
|
945
|
+
esValue[implSymbol]["search"] = V;
|
|
946
|
+
} finally {
|
|
947
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
get hash() {
|
|
952
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
953
|
+
|
|
954
|
+
if (!exports.is(esValue)) {
|
|
955
|
+
throw new globalObject.TypeError(
|
|
956
|
+
"'get hash' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
957
|
+
);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
961
|
+
try {
|
|
962
|
+
return esValue[implSymbol]["hash"];
|
|
963
|
+
} finally {
|
|
964
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
set hash(V) {
|
|
969
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
970
|
+
|
|
971
|
+
if (!exports.is(esValue)) {
|
|
972
|
+
throw new globalObject.TypeError(
|
|
973
|
+
"'set hash' called on an object that is not a valid instance of HTMLAnchorElement."
|
|
974
|
+
);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
V = conversions["USVString"](V, {
|
|
978
|
+
context: "Failed to set the 'hash' property on 'HTMLAnchorElement': The provided value",
|
|
979
|
+
globals: globalObject
|
|
980
|
+
});
|
|
981
|
+
|
|
982
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
983
|
+
try {
|
|
984
|
+
esValue[implSymbol]["hash"] = V;
|
|
985
|
+
} finally {
|
|
986
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
Object.defineProperties(HTMLAnchorElement.prototype, {
|
|
991
|
+
target: { enumerable: true },
|
|
992
|
+
download: { enumerable: true },
|
|
993
|
+
rel: { enumerable: true },
|
|
994
|
+
relList: { enumerable: true },
|
|
995
|
+
hreflang: { enumerable: true },
|
|
996
|
+
type: { enumerable: true },
|
|
997
|
+
text: { enumerable: true },
|
|
998
|
+
coords: { enumerable: true },
|
|
999
|
+
charset: { enumerable: true },
|
|
1000
|
+
name: { enumerable: true },
|
|
1001
|
+
rev: { enumerable: true },
|
|
1002
|
+
shape: { enumerable: true },
|
|
1003
|
+
href: { enumerable: true },
|
|
1004
|
+
toString: { enumerable: true },
|
|
1005
|
+
origin: { enumerable: true },
|
|
1006
|
+
protocol: { enumerable: true },
|
|
1007
|
+
username: { enumerable: true },
|
|
1008
|
+
password: { enumerable: true },
|
|
1009
|
+
host: { enumerable: true },
|
|
1010
|
+
hostname: { enumerable: true },
|
|
1011
|
+
port: { enumerable: true },
|
|
1012
|
+
pathname: { enumerable: true },
|
|
1013
|
+
search: { enumerable: true },
|
|
1014
|
+
hash: { enumerable: true },
|
|
1015
|
+
[Symbol.toStringTag]: { value: "HTMLAnchorElement", configurable: true }
|
|
1016
|
+
});
|
|
1017
|
+
ctorRegistry[interfaceName] = HTMLAnchorElement;
|
|
1018
|
+
|
|
1019
|
+
Object.defineProperty(globalObject, interfaceName, {
|
|
1020
|
+
configurable: true,
|
|
1021
|
+
writable: true,
|
|
1022
|
+
value: HTMLAnchorElement
|
|
1023
|
+
});
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
const Impl = require("../../jsdom/living/nodes/HTMLAnchorElement-impl.js");
|