@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,1210 @@
|
|
|
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 SelectionMode = require("./SelectionMode.js");
|
|
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 create_DOMException = require("./DOMException.js").create;
|
|
16
|
+
const implSymbol = utils.implSymbol;
|
|
17
|
+
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
|
|
18
|
+
const HTMLElement = require("./HTMLElement.js");
|
|
19
|
+
|
|
20
|
+
const interfaceName = "HTMLTextAreaElement";
|
|
21
|
+
|
|
22
|
+
exports.is = value => {
|
|
23
|
+
return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
|
|
24
|
+
};
|
|
25
|
+
exports.isImpl = value => {
|
|
26
|
+
return utils.isObject(value) && value instanceof Impl.implementation;
|
|
27
|
+
};
|
|
28
|
+
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
|
|
29
|
+
if (exports.is(value)) {
|
|
30
|
+
return utils.implForWrapper(value);
|
|
31
|
+
}
|
|
32
|
+
throw new globalObject.TypeError(`${context} is not of type 'HTMLTextAreaElement'.`);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
function makeWrapper(globalObject, newTarget) {
|
|
36
|
+
let proto;
|
|
37
|
+
if (newTarget !== undefined) {
|
|
38
|
+
proto = newTarget.prototype;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (!utils.isObject(proto)) {
|
|
42
|
+
proto = globalObject[ctorRegistrySymbol]["HTMLTextAreaElement"].prototype;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return Object.create(proto);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.create = (globalObject, constructorArgs, privateData) => {
|
|
49
|
+
const wrapper = makeWrapper(globalObject);
|
|
50
|
+
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.createImpl = (globalObject, constructorArgs, privateData) => {
|
|
54
|
+
const wrapper = exports.create(globalObject, constructorArgs, privateData);
|
|
55
|
+
return utils.implForWrapper(wrapper);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports._internalSetup = (wrapper, globalObject) => {
|
|
59
|
+
HTMLElement._internalSetup(wrapper, globalObject);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
|
|
63
|
+
privateData.wrapper = wrapper;
|
|
64
|
+
|
|
65
|
+
exports._internalSetup(wrapper, globalObject);
|
|
66
|
+
Object.defineProperty(wrapper, implSymbol, {
|
|
67
|
+
value: new Impl.implementation(globalObject, constructorArgs, privateData),
|
|
68
|
+
configurable: true
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
|
|
72
|
+
if (Impl.init) {
|
|
73
|
+
Impl.init(wrapper[implSymbol]);
|
|
74
|
+
}
|
|
75
|
+
return wrapper;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
exports.new = (globalObject, newTarget) => {
|
|
79
|
+
const wrapper = makeWrapper(globalObject, newTarget);
|
|
80
|
+
|
|
81
|
+
exports._internalSetup(wrapper, globalObject);
|
|
82
|
+
Object.defineProperty(wrapper, implSymbol, {
|
|
83
|
+
value: Object.create(Impl.implementation.prototype),
|
|
84
|
+
configurable: true
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
|
|
88
|
+
if (Impl.init) {
|
|
89
|
+
Impl.init(wrapper[implSymbol]);
|
|
90
|
+
}
|
|
91
|
+
return wrapper[implSymbol];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const exposed = new Set(["Window"]);
|
|
95
|
+
|
|
96
|
+
exports.install = (globalObject, globalNames) => {
|
|
97
|
+
if (!globalNames.some(globalName => exposed.has(globalName))) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const ctorRegistry = utils.initCtorRegistry(globalObject);
|
|
102
|
+
class HTMLTextAreaElement extends globalObject.HTMLElement {
|
|
103
|
+
constructor() {
|
|
104
|
+
return HTMLConstructor_jsdom_living_helpers_html_constructor(globalObject, interfaceName, new.target);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
checkValidity() {
|
|
108
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
109
|
+
if (!exports.is(esValue)) {
|
|
110
|
+
throw new globalObject.TypeError(
|
|
111
|
+
"'checkValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return esValue[implSymbol].checkValidity();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
reportValidity() {
|
|
119
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
120
|
+
if (!exports.is(esValue)) {
|
|
121
|
+
throw new globalObject.TypeError(
|
|
122
|
+
"'reportValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return esValue[implSymbol].reportValidity();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
setCustomValidity(error) {
|
|
130
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
131
|
+
if (!exports.is(esValue)) {
|
|
132
|
+
throw new globalObject.TypeError(
|
|
133
|
+
"'setCustomValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (arguments.length < 1) {
|
|
138
|
+
throw new globalObject.TypeError(
|
|
139
|
+
`Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': 1 argument required, but only ${arguments.length} present.`
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
const args = [];
|
|
143
|
+
{
|
|
144
|
+
let curArg = arguments[0];
|
|
145
|
+
curArg = conversions["DOMString"](curArg, {
|
|
146
|
+
context: "Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': parameter 1",
|
|
147
|
+
globals: globalObject
|
|
148
|
+
});
|
|
149
|
+
args.push(curArg);
|
|
150
|
+
}
|
|
151
|
+
return esValue[implSymbol].setCustomValidity(...args);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
select() {
|
|
155
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
156
|
+
if (!exports.is(esValue)) {
|
|
157
|
+
throw new globalObject.TypeError(
|
|
158
|
+
"'select' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return esValue[implSymbol].select();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
setRangeText(replacement) {
|
|
166
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
167
|
+
if (!exports.is(esValue)) {
|
|
168
|
+
throw new globalObject.TypeError(
|
|
169
|
+
"'setRangeText' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (arguments.length < 1) {
|
|
174
|
+
throw new globalObject.TypeError(
|
|
175
|
+
`Failed to execute 'setRangeText' on 'HTMLTextAreaElement': 1 argument required, but only ${arguments.length} present.`
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
const args = [];
|
|
179
|
+
switch (arguments.length) {
|
|
180
|
+
case 1:
|
|
181
|
+
{
|
|
182
|
+
let curArg = arguments[0];
|
|
183
|
+
curArg = conversions["DOMString"](curArg, {
|
|
184
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1",
|
|
185
|
+
globals: globalObject
|
|
186
|
+
});
|
|
187
|
+
args.push(curArg);
|
|
188
|
+
}
|
|
189
|
+
break;
|
|
190
|
+
case 2:
|
|
191
|
+
throw new globalObject.TypeError(
|
|
192
|
+
`Failed to execute 'setRangeText' on 'HTMLTextAreaElement': only ${arguments.length} arguments present.`
|
|
193
|
+
);
|
|
194
|
+
break;
|
|
195
|
+
case 3:
|
|
196
|
+
{
|
|
197
|
+
let curArg = arguments[0];
|
|
198
|
+
curArg = conversions["DOMString"](curArg, {
|
|
199
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1",
|
|
200
|
+
globals: globalObject
|
|
201
|
+
});
|
|
202
|
+
args.push(curArg);
|
|
203
|
+
}
|
|
204
|
+
{
|
|
205
|
+
let curArg = arguments[1];
|
|
206
|
+
curArg = conversions["unsigned long"](curArg, {
|
|
207
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2",
|
|
208
|
+
globals: globalObject
|
|
209
|
+
});
|
|
210
|
+
args.push(curArg);
|
|
211
|
+
}
|
|
212
|
+
{
|
|
213
|
+
let curArg = arguments[2];
|
|
214
|
+
curArg = conversions["unsigned long"](curArg, {
|
|
215
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3",
|
|
216
|
+
globals: globalObject
|
|
217
|
+
});
|
|
218
|
+
args.push(curArg);
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
default:
|
|
222
|
+
{
|
|
223
|
+
let curArg = arguments[0];
|
|
224
|
+
curArg = conversions["DOMString"](curArg, {
|
|
225
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1",
|
|
226
|
+
globals: globalObject
|
|
227
|
+
});
|
|
228
|
+
args.push(curArg);
|
|
229
|
+
}
|
|
230
|
+
{
|
|
231
|
+
let curArg = arguments[1];
|
|
232
|
+
curArg = conversions["unsigned long"](curArg, {
|
|
233
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2",
|
|
234
|
+
globals: globalObject
|
|
235
|
+
});
|
|
236
|
+
args.push(curArg);
|
|
237
|
+
}
|
|
238
|
+
{
|
|
239
|
+
let curArg = arguments[2];
|
|
240
|
+
curArg = conversions["unsigned long"](curArg, {
|
|
241
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3",
|
|
242
|
+
globals: globalObject
|
|
243
|
+
});
|
|
244
|
+
args.push(curArg);
|
|
245
|
+
}
|
|
246
|
+
{
|
|
247
|
+
let curArg = arguments[3];
|
|
248
|
+
if (curArg !== undefined) {
|
|
249
|
+
curArg = SelectionMode.convert(globalObject, curArg, {
|
|
250
|
+
context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 4"
|
|
251
|
+
});
|
|
252
|
+
} else {
|
|
253
|
+
curArg = "preserve";
|
|
254
|
+
}
|
|
255
|
+
args.push(curArg);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return esValue[implSymbol].setRangeText(...args);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
setSelectionRange(start, end) {
|
|
262
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
263
|
+
if (!exports.is(esValue)) {
|
|
264
|
+
throw new globalObject.TypeError(
|
|
265
|
+
"'setSelectionRange' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (arguments.length < 2) {
|
|
270
|
+
throw new globalObject.TypeError(
|
|
271
|
+
`Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': 2 arguments required, but only ${arguments.length} present.`
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
const args = [];
|
|
275
|
+
{
|
|
276
|
+
let curArg = arguments[0];
|
|
277
|
+
curArg = conversions["unsigned long"](curArg, {
|
|
278
|
+
context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 1",
|
|
279
|
+
globals: globalObject
|
|
280
|
+
});
|
|
281
|
+
args.push(curArg);
|
|
282
|
+
}
|
|
283
|
+
{
|
|
284
|
+
let curArg = arguments[1];
|
|
285
|
+
curArg = conversions["unsigned long"](curArg, {
|
|
286
|
+
context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 2",
|
|
287
|
+
globals: globalObject
|
|
288
|
+
});
|
|
289
|
+
args.push(curArg);
|
|
290
|
+
}
|
|
291
|
+
{
|
|
292
|
+
let curArg = arguments[2];
|
|
293
|
+
if (curArg !== undefined) {
|
|
294
|
+
curArg = conversions["DOMString"](curArg, {
|
|
295
|
+
context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 3",
|
|
296
|
+
globals: globalObject
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
args.push(curArg);
|
|
300
|
+
}
|
|
301
|
+
return esValue[implSymbol].setSelectionRange(...args);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
get autocomplete() {
|
|
305
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
306
|
+
|
|
307
|
+
if (!exports.is(esValue)) {
|
|
308
|
+
throw new globalObject.TypeError(
|
|
309
|
+
"'get autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
314
|
+
try {
|
|
315
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("autocomplete");
|
|
316
|
+
return value === null ? "" : value;
|
|
317
|
+
} finally {
|
|
318
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
set autocomplete(V) {
|
|
323
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
324
|
+
|
|
325
|
+
if (!exports.is(esValue)) {
|
|
326
|
+
throw new globalObject.TypeError(
|
|
327
|
+
"'set autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
V = conversions["DOMString"](V, {
|
|
332
|
+
context: "Failed to set the 'autocomplete' property on 'HTMLTextAreaElement': The provided value",
|
|
333
|
+
globals: globalObject
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
337
|
+
try {
|
|
338
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("autocomplete", V);
|
|
339
|
+
} finally {
|
|
340
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
get autofocus() {
|
|
345
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
346
|
+
|
|
347
|
+
if (!exports.is(esValue)) {
|
|
348
|
+
throw new globalObject.TypeError(
|
|
349
|
+
"'get autofocus' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
354
|
+
try {
|
|
355
|
+
return esValue[implSymbol]._reflectGetTheContentAttribute("autofocus") !== null;
|
|
356
|
+
} finally {
|
|
357
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
set autofocus(V) {
|
|
362
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
363
|
+
|
|
364
|
+
if (!exports.is(esValue)) {
|
|
365
|
+
throw new globalObject.TypeError(
|
|
366
|
+
"'set autofocus' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
V = conversions["boolean"](V, {
|
|
371
|
+
context: "Failed to set the 'autofocus' property on 'HTMLTextAreaElement': The provided value",
|
|
372
|
+
globals: globalObject
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
376
|
+
try {
|
|
377
|
+
if (V) {
|
|
378
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("autofocus", "");
|
|
379
|
+
} else {
|
|
380
|
+
esValue[implSymbol]._reflectDeleteTheContentAttribute("autofocus");
|
|
381
|
+
}
|
|
382
|
+
} finally {
|
|
383
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
get cols() {
|
|
388
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
389
|
+
|
|
390
|
+
if (!exports.is(esValue)) {
|
|
391
|
+
throw new globalObject.TypeError(
|
|
392
|
+
"'get cols' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
397
|
+
try {
|
|
398
|
+
let value = esValue[implSymbol]._reflectGetTheContentAttribute("cols");
|
|
399
|
+
if (value !== null) {
|
|
400
|
+
value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
|
|
401
|
+
if (value !== null && value >= 1 && value <= 2147483647) {
|
|
402
|
+
return value;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return 20;
|
|
406
|
+
} finally {
|
|
407
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
set cols(V) {
|
|
412
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
413
|
+
|
|
414
|
+
if (!exports.is(esValue)) {
|
|
415
|
+
throw new globalObject.TypeError(
|
|
416
|
+
"'set cols' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
V = conversions["unsigned long"](V, {
|
|
421
|
+
context: "Failed to set the 'cols' property on 'HTMLTextAreaElement': The provided value",
|
|
422
|
+
globals: globalObject
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
426
|
+
try {
|
|
427
|
+
const newValue = V <= 2147483647 && V >= 1 ? V : 20;
|
|
428
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("cols", String(newValue));
|
|
429
|
+
} finally {
|
|
430
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
get dirName() {
|
|
435
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
436
|
+
|
|
437
|
+
if (!exports.is(esValue)) {
|
|
438
|
+
throw new globalObject.TypeError(
|
|
439
|
+
"'get dirName' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
444
|
+
try {
|
|
445
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("dirname");
|
|
446
|
+
return value === null ? "" : value;
|
|
447
|
+
} finally {
|
|
448
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
set dirName(V) {
|
|
453
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
454
|
+
|
|
455
|
+
if (!exports.is(esValue)) {
|
|
456
|
+
throw new globalObject.TypeError(
|
|
457
|
+
"'set dirName' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
V = conversions["DOMString"](V, {
|
|
462
|
+
context: "Failed to set the 'dirName' property on 'HTMLTextAreaElement': The provided value",
|
|
463
|
+
globals: globalObject
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
467
|
+
try {
|
|
468
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("dirname", V);
|
|
469
|
+
} finally {
|
|
470
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
get disabled() {
|
|
475
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
476
|
+
|
|
477
|
+
if (!exports.is(esValue)) {
|
|
478
|
+
throw new globalObject.TypeError(
|
|
479
|
+
"'get disabled' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
484
|
+
try {
|
|
485
|
+
return esValue[implSymbol]._reflectGetTheContentAttribute("disabled") !== null;
|
|
486
|
+
} finally {
|
|
487
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
set disabled(V) {
|
|
492
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
493
|
+
|
|
494
|
+
if (!exports.is(esValue)) {
|
|
495
|
+
throw new globalObject.TypeError(
|
|
496
|
+
"'set disabled' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
V = conversions["boolean"](V, {
|
|
501
|
+
context: "Failed to set the 'disabled' property on 'HTMLTextAreaElement': The provided value",
|
|
502
|
+
globals: globalObject
|
|
503
|
+
});
|
|
504
|
+
|
|
505
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
506
|
+
try {
|
|
507
|
+
if (V) {
|
|
508
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("disabled", "");
|
|
509
|
+
} else {
|
|
510
|
+
esValue[implSymbol]._reflectDeleteTheContentAttribute("disabled");
|
|
511
|
+
}
|
|
512
|
+
} finally {
|
|
513
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
get form() {
|
|
518
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
519
|
+
|
|
520
|
+
if (!exports.is(esValue)) {
|
|
521
|
+
throw new globalObject.TypeError(
|
|
522
|
+
"'get form' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
get inputMode() {
|
|
530
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
531
|
+
|
|
532
|
+
if (!exports.is(esValue)) {
|
|
533
|
+
throw new globalObject.TypeError(
|
|
534
|
+
"'get inputMode' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
535
|
+
);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
539
|
+
try {
|
|
540
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("inputmode");
|
|
541
|
+
return value === null ? "" : value;
|
|
542
|
+
} finally {
|
|
543
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
set inputMode(V) {
|
|
548
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
549
|
+
|
|
550
|
+
if (!exports.is(esValue)) {
|
|
551
|
+
throw new globalObject.TypeError(
|
|
552
|
+
"'set inputMode' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
V = conversions["DOMString"](V, {
|
|
557
|
+
context: "Failed to set the 'inputMode' property on 'HTMLTextAreaElement': The provided value",
|
|
558
|
+
globals: globalObject
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
562
|
+
try {
|
|
563
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("inputmode", V);
|
|
564
|
+
} finally {
|
|
565
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
get maxLength() {
|
|
570
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
571
|
+
|
|
572
|
+
if (!exports.is(esValue)) {
|
|
573
|
+
throw new globalObject.TypeError(
|
|
574
|
+
"'get maxLength' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
579
|
+
try {
|
|
580
|
+
let value = esValue[implSymbol]._reflectGetTheContentAttribute("maxlength");
|
|
581
|
+
if (value !== null) {
|
|
582
|
+
value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
|
|
583
|
+
if (value !== null && conversions.long(value) === value) {
|
|
584
|
+
return value;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
return -1;
|
|
588
|
+
} finally {
|
|
589
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
set maxLength(V) {
|
|
594
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
595
|
+
|
|
596
|
+
if (!exports.is(esValue)) {
|
|
597
|
+
throw new globalObject.TypeError(
|
|
598
|
+
"'set maxLength' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
V = conversions["long"](V, {
|
|
603
|
+
context: "Failed to set the 'maxLength' property on 'HTMLTextAreaElement': The provided value",
|
|
604
|
+
globals: globalObject
|
|
605
|
+
});
|
|
606
|
+
|
|
607
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
608
|
+
try {
|
|
609
|
+
if (V < 0) {
|
|
610
|
+
throw create_DOMException(globalObject, [
|
|
611
|
+
`The negative value ${V} cannot be set for the maxLength property.`,
|
|
612
|
+
"IndexSizeError"
|
|
613
|
+
]);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("maxlength", String(V));
|
|
617
|
+
} finally {
|
|
618
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
get minLength() {
|
|
623
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
624
|
+
|
|
625
|
+
if (!exports.is(esValue)) {
|
|
626
|
+
throw new globalObject.TypeError(
|
|
627
|
+
"'get minLength' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
632
|
+
try {
|
|
633
|
+
let value = esValue[implSymbol]._reflectGetTheContentAttribute("minlength");
|
|
634
|
+
if (value !== null) {
|
|
635
|
+
value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
|
|
636
|
+
if (value !== null && conversions.long(value) === value) {
|
|
637
|
+
return value;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
return -1;
|
|
641
|
+
} finally {
|
|
642
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
set minLength(V) {
|
|
647
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
648
|
+
|
|
649
|
+
if (!exports.is(esValue)) {
|
|
650
|
+
throw new globalObject.TypeError(
|
|
651
|
+
"'set minLength' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
V = conversions["long"](V, {
|
|
656
|
+
context: "Failed to set the 'minLength' property on 'HTMLTextAreaElement': The provided value",
|
|
657
|
+
globals: globalObject
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
661
|
+
try {
|
|
662
|
+
if (V < 0) {
|
|
663
|
+
throw create_DOMException(globalObject, [
|
|
664
|
+
`The negative value ${V} cannot be set for the minLength property.`,
|
|
665
|
+
"IndexSizeError"
|
|
666
|
+
]);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("minlength", String(V));
|
|
670
|
+
} finally {
|
|
671
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
get name() {
|
|
676
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
677
|
+
|
|
678
|
+
if (!exports.is(esValue)) {
|
|
679
|
+
throw new globalObject.TypeError(
|
|
680
|
+
"'get name' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
681
|
+
);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
685
|
+
try {
|
|
686
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("name");
|
|
687
|
+
return value === null ? "" : value;
|
|
688
|
+
} finally {
|
|
689
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
set name(V) {
|
|
694
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
695
|
+
|
|
696
|
+
if (!exports.is(esValue)) {
|
|
697
|
+
throw new globalObject.TypeError(
|
|
698
|
+
"'set name' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
V = conversions["DOMString"](V, {
|
|
703
|
+
context: "Failed to set the 'name' property on 'HTMLTextAreaElement': The provided value",
|
|
704
|
+
globals: globalObject
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
708
|
+
try {
|
|
709
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("name", V);
|
|
710
|
+
} finally {
|
|
711
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
get placeholder() {
|
|
716
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
717
|
+
|
|
718
|
+
if (!exports.is(esValue)) {
|
|
719
|
+
throw new globalObject.TypeError(
|
|
720
|
+
"'get placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
721
|
+
);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
725
|
+
try {
|
|
726
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("placeholder");
|
|
727
|
+
return value === null ? "" : value;
|
|
728
|
+
} finally {
|
|
729
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
set placeholder(V) {
|
|
734
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
735
|
+
|
|
736
|
+
if (!exports.is(esValue)) {
|
|
737
|
+
throw new globalObject.TypeError(
|
|
738
|
+
"'set placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
V = conversions["DOMString"](V, {
|
|
743
|
+
context: "Failed to set the 'placeholder' property on 'HTMLTextAreaElement': The provided value",
|
|
744
|
+
globals: globalObject
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
748
|
+
try {
|
|
749
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("placeholder", V);
|
|
750
|
+
} finally {
|
|
751
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
get readOnly() {
|
|
756
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
757
|
+
|
|
758
|
+
if (!exports.is(esValue)) {
|
|
759
|
+
throw new globalObject.TypeError(
|
|
760
|
+
"'get readOnly' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
761
|
+
);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
765
|
+
try {
|
|
766
|
+
return esValue[implSymbol]._reflectGetTheContentAttribute("readonly") !== null;
|
|
767
|
+
} finally {
|
|
768
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
set readOnly(V) {
|
|
773
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
774
|
+
|
|
775
|
+
if (!exports.is(esValue)) {
|
|
776
|
+
throw new globalObject.TypeError(
|
|
777
|
+
"'set readOnly' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
778
|
+
);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
V = conversions["boolean"](V, {
|
|
782
|
+
context: "Failed to set the 'readOnly' property on 'HTMLTextAreaElement': The provided value",
|
|
783
|
+
globals: globalObject
|
|
784
|
+
});
|
|
785
|
+
|
|
786
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
787
|
+
try {
|
|
788
|
+
if (V) {
|
|
789
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("readonly", "");
|
|
790
|
+
} else {
|
|
791
|
+
esValue[implSymbol]._reflectDeleteTheContentAttribute("readonly");
|
|
792
|
+
}
|
|
793
|
+
} finally {
|
|
794
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
get required() {
|
|
799
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
800
|
+
|
|
801
|
+
if (!exports.is(esValue)) {
|
|
802
|
+
throw new globalObject.TypeError(
|
|
803
|
+
"'get required' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
804
|
+
);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
808
|
+
try {
|
|
809
|
+
return esValue[implSymbol]._reflectGetTheContentAttribute("required") !== null;
|
|
810
|
+
} finally {
|
|
811
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
set required(V) {
|
|
816
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
817
|
+
|
|
818
|
+
if (!exports.is(esValue)) {
|
|
819
|
+
throw new globalObject.TypeError(
|
|
820
|
+
"'set required' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
821
|
+
);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
V = conversions["boolean"](V, {
|
|
825
|
+
context: "Failed to set the 'required' property on 'HTMLTextAreaElement': The provided value",
|
|
826
|
+
globals: globalObject
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
830
|
+
try {
|
|
831
|
+
if (V) {
|
|
832
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("required", "");
|
|
833
|
+
} else {
|
|
834
|
+
esValue[implSymbol]._reflectDeleteTheContentAttribute("required");
|
|
835
|
+
}
|
|
836
|
+
} finally {
|
|
837
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
get rows() {
|
|
842
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
843
|
+
|
|
844
|
+
if (!exports.is(esValue)) {
|
|
845
|
+
throw new globalObject.TypeError(
|
|
846
|
+
"'get rows' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
851
|
+
try {
|
|
852
|
+
let value = esValue[implSymbol]._reflectGetTheContentAttribute("rows");
|
|
853
|
+
if (value !== null) {
|
|
854
|
+
value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
|
|
855
|
+
if (value !== null && value >= 1 && value <= 2147483647) {
|
|
856
|
+
return value;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
return 2;
|
|
860
|
+
} finally {
|
|
861
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
set rows(V) {
|
|
866
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
867
|
+
|
|
868
|
+
if (!exports.is(esValue)) {
|
|
869
|
+
throw new globalObject.TypeError(
|
|
870
|
+
"'set rows' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
871
|
+
);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
V = conversions["unsigned long"](V, {
|
|
875
|
+
context: "Failed to set the 'rows' property on 'HTMLTextAreaElement': The provided value",
|
|
876
|
+
globals: globalObject
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
880
|
+
try {
|
|
881
|
+
const newValue = V <= 2147483647 && V >= 1 ? V : 2;
|
|
882
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("rows", String(newValue));
|
|
883
|
+
} finally {
|
|
884
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
get wrap() {
|
|
889
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
890
|
+
|
|
891
|
+
if (!exports.is(esValue)) {
|
|
892
|
+
throw new globalObject.TypeError(
|
|
893
|
+
"'get wrap' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
898
|
+
try {
|
|
899
|
+
const value = esValue[implSymbol]._reflectGetTheContentAttribute("wrap");
|
|
900
|
+
return value === null ? "" : value;
|
|
901
|
+
} finally {
|
|
902
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
set wrap(V) {
|
|
907
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
908
|
+
|
|
909
|
+
if (!exports.is(esValue)) {
|
|
910
|
+
throw new globalObject.TypeError(
|
|
911
|
+
"'set wrap' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
V = conversions["DOMString"](V, {
|
|
916
|
+
context: "Failed to set the 'wrap' property on 'HTMLTextAreaElement': The provided value",
|
|
917
|
+
globals: globalObject
|
|
918
|
+
});
|
|
919
|
+
|
|
920
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
921
|
+
try {
|
|
922
|
+
esValue[implSymbol]._reflectSetTheContentAttribute("wrap", V);
|
|
923
|
+
} finally {
|
|
924
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
get type() {
|
|
929
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
930
|
+
|
|
931
|
+
if (!exports.is(esValue)) {
|
|
932
|
+
throw new globalObject.TypeError(
|
|
933
|
+
"'get type' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
934
|
+
);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
return esValue[implSymbol]["type"];
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
get defaultValue() {
|
|
941
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
942
|
+
|
|
943
|
+
if (!exports.is(esValue)) {
|
|
944
|
+
throw new globalObject.TypeError(
|
|
945
|
+
"'get defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
946
|
+
);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
950
|
+
try {
|
|
951
|
+
return esValue[implSymbol]["defaultValue"];
|
|
952
|
+
} finally {
|
|
953
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
set defaultValue(V) {
|
|
958
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
959
|
+
|
|
960
|
+
if (!exports.is(esValue)) {
|
|
961
|
+
throw new globalObject.TypeError(
|
|
962
|
+
"'set defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
963
|
+
);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
V = conversions["DOMString"](V, {
|
|
967
|
+
context: "Failed to set the 'defaultValue' property on 'HTMLTextAreaElement': The provided value",
|
|
968
|
+
globals: globalObject
|
|
969
|
+
});
|
|
970
|
+
|
|
971
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
972
|
+
try {
|
|
973
|
+
esValue[implSymbol]["defaultValue"] = V;
|
|
974
|
+
} finally {
|
|
975
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
get value() {
|
|
980
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
981
|
+
|
|
982
|
+
if (!exports.is(esValue)) {
|
|
983
|
+
throw new globalObject.TypeError(
|
|
984
|
+
"'get value' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
985
|
+
);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
989
|
+
try {
|
|
990
|
+
return esValue[implSymbol]["value"];
|
|
991
|
+
} finally {
|
|
992
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
set value(V) {
|
|
997
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
998
|
+
|
|
999
|
+
if (!exports.is(esValue)) {
|
|
1000
|
+
throw new globalObject.TypeError(
|
|
1001
|
+
"'set value' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
V = conversions["DOMString"](V, {
|
|
1006
|
+
context: "Failed to set the 'value' property on 'HTMLTextAreaElement': The provided value",
|
|
1007
|
+
globals: globalObject,
|
|
1008
|
+
treatNullAsEmptyString: true
|
|
1009
|
+
});
|
|
1010
|
+
|
|
1011
|
+
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
1012
|
+
try {
|
|
1013
|
+
esValue[implSymbol]["value"] = V;
|
|
1014
|
+
} finally {
|
|
1015
|
+
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
get textLength() {
|
|
1020
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1021
|
+
|
|
1022
|
+
if (!exports.is(esValue)) {
|
|
1023
|
+
throw new globalObject.TypeError(
|
|
1024
|
+
"'get textLength' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
return esValue[implSymbol]["textLength"];
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
get willValidate() {
|
|
1032
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1033
|
+
|
|
1034
|
+
if (!exports.is(esValue)) {
|
|
1035
|
+
throw new globalObject.TypeError(
|
|
1036
|
+
"'get willValidate' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
return esValue[implSymbol]["willValidate"];
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
get validity() {
|
|
1044
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1045
|
+
|
|
1046
|
+
if (!exports.is(esValue)) {
|
|
1047
|
+
throw new globalObject.TypeError(
|
|
1048
|
+
"'get validity' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
get validationMessage() {
|
|
1056
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1057
|
+
|
|
1058
|
+
if (!exports.is(esValue)) {
|
|
1059
|
+
throw new globalObject.TypeError(
|
|
1060
|
+
"'get validationMessage' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1061
|
+
);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
return esValue[implSymbol]["validationMessage"];
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
get labels() {
|
|
1068
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1069
|
+
|
|
1070
|
+
if (!exports.is(esValue)) {
|
|
1071
|
+
throw new globalObject.TypeError(
|
|
1072
|
+
"'get labels' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
get selectionStart() {
|
|
1080
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1081
|
+
|
|
1082
|
+
if (!exports.is(esValue)) {
|
|
1083
|
+
throw new globalObject.TypeError(
|
|
1084
|
+
"'get selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
return esValue[implSymbol]["selectionStart"];
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
set selectionStart(V) {
|
|
1092
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1093
|
+
|
|
1094
|
+
if (!exports.is(esValue)) {
|
|
1095
|
+
throw new globalObject.TypeError(
|
|
1096
|
+
"'set selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1097
|
+
);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
V = conversions["unsigned long"](V, {
|
|
1101
|
+
context: "Failed to set the 'selectionStart' property on 'HTMLTextAreaElement': The provided value",
|
|
1102
|
+
globals: globalObject
|
|
1103
|
+
});
|
|
1104
|
+
|
|
1105
|
+
esValue[implSymbol]["selectionStart"] = V;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
get selectionEnd() {
|
|
1109
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1110
|
+
|
|
1111
|
+
if (!exports.is(esValue)) {
|
|
1112
|
+
throw new globalObject.TypeError(
|
|
1113
|
+
"'get selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1114
|
+
);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
return esValue[implSymbol]["selectionEnd"];
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
set selectionEnd(V) {
|
|
1121
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1122
|
+
|
|
1123
|
+
if (!exports.is(esValue)) {
|
|
1124
|
+
throw new globalObject.TypeError(
|
|
1125
|
+
"'set selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
V = conversions["unsigned long"](V, {
|
|
1130
|
+
context: "Failed to set the 'selectionEnd' property on 'HTMLTextAreaElement': The provided value",
|
|
1131
|
+
globals: globalObject
|
|
1132
|
+
});
|
|
1133
|
+
|
|
1134
|
+
esValue[implSymbol]["selectionEnd"] = V;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
get selectionDirection() {
|
|
1138
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1139
|
+
|
|
1140
|
+
if (!exports.is(esValue)) {
|
|
1141
|
+
throw new globalObject.TypeError(
|
|
1142
|
+
"'get selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1143
|
+
);
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
return esValue[implSymbol]["selectionDirection"];
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
set selectionDirection(V) {
|
|
1150
|
+
const esValue = this !== null && this !== undefined ? this : globalObject;
|
|
1151
|
+
|
|
1152
|
+
if (!exports.is(esValue)) {
|
|
1153
|
+
throw new globalObject.TypeError(
|
|
1154
|
+
"'set selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
V = conversions["DOMString"](V, {
|
|
1159
|
+
context: "Failed to set the 'selectionDirection' property on 'HTMLTextAreaElement': The provided value",
|
|
1160
|
+
globals: globalObject
|
|
1161
|
+
});
|
|
1162
|
+
|
|
1163
|
+
esValue[implSymbol]["selectionDirection"] = V;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
Object.defineProperties(HTMLTextAreaElement.prototype, {
|
|
1167
|
+
checkValidity: { enumerable: true },
|
|
1168
|
+
reportValidity: { enumerable: true },
|
|
1169
|
+
setCustomValidity: { enumerable: true },
|
|
1170
|
+
select: { enumerable: true },
|
|
1171
|
+
setRangeText: { enumerable: true },
|
|
1172
|
+
setSelectionRange: { enumerable: true },
|
|
1173
|
+
autocomplete: { enumerable: true },
|
|
1174
|
+
autofocus: { enumerable: true },
|
|
1175
|
+
cols: { enumerable: true },
|
|
1176
|
+
dirName: { enumerable: true },
|
|
1177
|
+
disabled: { enumerable: true },
|
|
1178
|
+
form: { enumerable: true },
|
|
1179
|
+
inputMode: { enumerable: true },
|
|
1180
|
+
maxLength: { enumerable: true },
|
|
1181
|
+
minLength: { enumerable: true },
|
|
1182
|
+
name: { enumerable: true },
|
|
1183
|
+
placeholder: { enumerable: true },
|
|
1184
|
+
readOnly: { enumerable: true },
|
|
1185
|
+
required: { enumerable: true },
|
|
1186
|
+
rows: { enumerable: true },
|
|
1187
|
+
wrap: { enumerable: true },
|
|
1188
|
+
type: { enumerable: true },
|
|
1189
|
+
defaultValue: { enumerable: true },
|
|
1190
|
+
value: { enumerable: true },
|
|
1191
|
+
textLength: { enumerable: true },
|
|
1192
|
+
willValidate: { enumerable: true },
|
|
1193
|
+
validity: { enumerable: true },
|
|
1194
|
+
validationMessage: { enumerable: true },
|
|
1195
|
+
labels: { enumerable: true },
|
|
1196
|
+
selectionStart: { enumerable: true },
|
|
1197
|
+
selectionEnd: { enumerable: true },
|
|
1198
|
+
selectionDirection: { enumerable: true },
|
|
1199
|
+
[Symbol.toStringTag]: { value: "HTMLTextAreaElement", configurable: true }
|
|
1200
|
+
});
|
|
1201
|
+
ctorRegistry[interfaceName] = HTMLTextAreaElement;
|
|
1202
|
+
|
|
1203
|
+
Object.defineProperty(globalObject, interfaceName, {
|
|
1204
|
+
configurable: true,
|
|
1205
|
+
writable: true,
|
|
1206
|
+
value: HTMLTextAreaElement
|
|
1207
|
+
});
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
const Impl = require("../../jsdom/living/nodes/HTMLTextAreaElement-impl.js");
|