@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.
Files changed (538) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +38 -0
  3. package/changes.json +38 -0
  4. package/lib/api.js +373 -0
  5. package/lib/generated/event-sets.js +115 -0
  6. package/lib/generated/idl/AbortController.js +143 -0
  7. package/lib/generated/idl/AbortSignal.js +249 -0
  8. package/lib/generated/idl/AbstractRange.js +171 -0
  9. package/lib/generated/idl/AddEventListenerOptions.js +53 -0
  10. package/lib/generated/idl/AssignedNodesOptions.js +28 -0
  11. package/lib/generated/idl/Attr.js +219 -0
  12. package/lib/generated/idl/BarProp.js +117 -0
  13. package/lib/generated/idl/BeforeUnloadEvent.js +139 -0
  14. package/lib/generated/idl/BinaryType.js +12 -0
  15. package/lib/generated/idl/Blob.js +253 -0
  16. package/lib/generated/idl/BlobCallback.js +30 -0
  17. package/lib/generated/idl/BlobEvent.js +157 -0
  18. package/lib/generated/idl/BlobEventInit.js +43 -0
  19. package/lib/generated/idl/BlobPropertyBag.js +42 -0
  20. package/lib/generated/idl/CDATASection.js +109 -0
  21. package/lib/generated/idl/CanPlayTypeResult.js +12 -0
  22. package/lib/generated/idl/CharacterData.js +455 -0
  23. package/lib/generated/idl/CloseEvent.js +168 -0
  24. package/lib/generated/idl/CloseEventInit.js +65 -0
  25. package/lib/generated/idl/Comment.js +120 -0
  26. package/lib/generated/idl/CompositionEvent.js +219 -0
  27. package/lib/generated/idl/CompositionEventInit.js +32 -0
  28. package/lib/generated/idl/Crypto.js +148 -0
  29. package/lib/generated/idl/CustomElementConstructor.js +34 -0
  30. package/lib/generated/idl/CustomElementRegistry.js +269 -0
  31. package/lib/generated/idl/CustomEvent.js +206 -0
  32. package/lib/generated/idl/CustomEventInit.js +32 -0
  33. package/lib/generated/idl/DOMException.js +222 -0
  34. package/lib/generated/idl/DOMImplementation.js +237 -0
  35. package/lib/generated/idl/DOMParser.js +140 -0
  36. package/lib/generated/idl/DOMRect.js +276 -0
  37. package/lib/generated/idl/DOMRectInit.js +76 -0
  38. package/lib/generated/idl/DOMRectReadOnly.js +285 -0
  39. package/lib/generated/idl/DOMStringMap.js +299 -0
  40. package/lib/generated/idl/DOMTokenList.js +539 -0
  41. package/lib/generated/idl/DeviceMotionEvent.js +183 -0
  42. package/lib/generated/idl/DeviceMotionEventAcceleration.js +145 -0
  43. package/lib/generated/idl/DeviceMotionEventAccelerationInit.js +61 -0
  44. package/lib/generated/idl/DeviceMotionEventInit.js +70 -0
  45. package/lib/generated/idl/DeviceMotionEventRotationRate.js +145 -0
  46. package/lib/generated/idl/DeviceMotionEventRotationRateInit.js +61 -0
  47. package/lib/generated/idl/DeviceOrientationEvent.js +183 -0
  48. package/lib/generated/idl/DeviceOrientationEventInit.js +80 -0
  49. package/lib/generated/idl/Document.js +4511 -0
  50. package/lib/generated/idl/DocumentFragment.js +336 -0
  51. package/lib/generated/idl/DocumentReadyState.js +12 -0
  52. package/lib/generated/idl/DocumentType.js +254 -0
  53. package/lib/generated/idl/Element.js +3720 -0
  54. package/lib/generated/idl/ElementCreationOptions.js +26 -0
  55. package/lib/generated/idl/ElementDefinitionOptions.js +29 -0
  56. package/lib/generated/idl/ElementInternals.js +2152 -0
  57. package/lib/generated/idl/EndingType.js +12 -0
  58. package/lib/generated/idl/ErrorEvent.js +192 -0
  59. package/lib/generated/idl/ErrorEventInit.js +92 -0
  60. package/lib/generated/idl/Event.js +430 -0
  61. package/lib/generated/idl/EventHandlerNonNull.js +36 -0
  62. package/lib/generated/idl/EventInit.js +58 -0
  63. package/lib/generated/idl/EventListener.js +35 -0
  64. package/lib/generated/idl/EventListenerOptions.js +28 -0
  65. package/lib/generated/idl/EventModifierInit.js +221 -0
  66. package/lib/generated/idl/EventTarget.js +259 -0
  67. package/lib/generated/idl/External.js +130 -0
  68. package/lib/generated/idl/File.js +185 -0
  69. package/lib/generated/idl/FileList.js +298 -0
  70. package/lib/generated/idl/FilePropertyBag.js +33 -0
  71. package/lib/generated/idl/FileReader.js +468 -0
  72. package/lib/generated/idl/FocusEvent.js +144 -0
  73. package/lib/generated/idl/FocusEventInit.js +36 -0
  74. package/lib/generated/idl/FormData.js +468 -0
  75. package/lib/generated/idl/Function.js +42 -0
  76. package/lib/generated/idl/GetRootNodeOptions.js +31 -0
  77. package/lib/generated/idl/HTMLAnchorElement.js +1026 -0
  78. package/lib/generated/idl/HTMLAreaElement.js +825 -0
  79. package/lib/generated/idl/HTMLAudioElement.js +111 -0
  80. package/lib/generated/idl/HTMLBRElement.js +156 -0
  81. package/lib/generated/idl/HTMLBaseElement.js +196 -0
  82. package/lib/generated/idl/HTMLBodyElement.js +880 -0
  83. package/lib/generated/idl/HTMLButtonElement.js +525 -0
  84. package/lib/generated/idl/HTMLCanvasElement.js +307 -0
  85. package/lib/generated/idl/HTMLCollection.js +352 -0
  86. package/lib/generated/idl/HTMLDListElement.js +159 -0
  87. package/lib/generated/idl/HTMLDataElement.js +156 -0
  88. package/lib/generated/idl/HTMLDataListElement.js +126 -0
  89. package/lib/generated/idl/HTMLDetailsElement.js +159 -0
  90. package/lib/generated/idl/HTMLDialogElement.js +159 -0
  91. package/lib/generated/idl/HTMLDirectoryElement.js +159 -0
  92. package/lib/generated/idl/HTMLDivElement.js +156 -0
  93. package/lib/generated/idl/HTMLElement.js +3492 -0
  94. package/lib/generated/idl/HTMLEmbedElement.js +381 -0
  95. package/lib/generated/idl/HTMLFieldSetElement.js +332 -0
  96. package/lib/generated/idl/HTMLFontElement.js +239 -0
  97. package/lib/generated/idl/HTMLFormControlsCollection.js +318 -0
  98. package/lib/generated/idl/HTMLFormElement.js +661 -0
  99. package/lib/generated/idl/HTMLFrameElement.js +513 -0
  100. package/lib/generated/idl/HTMLFrameSetElement.js +711 -0
  101. package/lib/generated/idl/HTMLHRElement.js +323 -0
  102. package/lib/generated/idl/HTMLHeadElement.js +111 -0
  103. package/lib/generated/idl/HTMLHeadingElement.js +156 -0
  104. package/lib/generated/idl/HTMLHtmlElement.js +156 -0
  105. package/lib/generated/idl/HTMLIFrameElement.js +689 -0
  106. package/lib/generated/idl/HTMLImageElement.js +906 -0
  107. package/lib/generated/idl/HTMLInputElement.js +1931 -0
  108. package/lib/generated/idl/HTMLLIElement.js +204 -0
  109. package/lib/generated/idl/HTMLLabelElement.js +182 -0
  110. package/lib/generated/idl/HTMLLegendElement.js +169 -0
  111. package/lib/generated/idl/HTMLLinkElement.js +555 -0
  112. package/lib/generated/idl/HTMLMapElement.js +171 -0
  113. package/lib/generated/idl/HTMLMarqueeElement.js +558 -0
  114. package/lib/generated/idl/HTMLMediaElement.js +900 -0
  115. package/lib/generated/idl/HTMLMenuElement.js +159 -0
  116. package/lib/generated/idl/HTMLMetaElement.js +279 -0
  117. package/lib/generated/idl/HTMLMeterElement.js +368 -0
  118. package/lib/generated/idl/HTMLModElement.js +217 -0
  119. package/lib/generated/idl/HTMLOListElement.js +284 -0
  120. package/lib/generated/idl/HTMLObjectElement.js +945 -0
  121. package/lib/generated/idl/HTMLOptGroupElement.js +200 -0
  122. package/lib/generated/idl/HTMLOptionElement.js +379 -0
  123. package/lib/generated/idl/HTMLOptionsCollection.js +513 -0
  124. package/lib/generated/idl/HTMLOutputElement.js +395 -0
  125. package/lib/generated/idl/HTMLParagraphElement.js +156 -0
  126. package/lib/generated/idl/HTMLParamElement.js +279 -0
  127. package/lib/generated/idl/HTMLPictureElement.js +111 -0
  128. package/lib/generated/idl/HTMLPreElement.js +163 -0
  129. package/lib/generated/idl/HTMLProgressElement.js +232 -0
  130. package/lib/generated/idl/HTMLQuoteElement.js +176 -0
  131. package/lib/generated/idl/HTMLScriptElement.js +472 -0
  132. package/lib/generated/idl/HTMLSelectElement.js +993 -0
  133. package/lib/generated/idl/HTMLSlotElement.js +195 -0
  134. package/lib/generated/idl/HTMLSourceElement.js +340 -0
  135. package/lib/generated/idl/HTMLSpanElement.js +111 -0
  136. package/lib/generated/idl/HTMLStyleElement.js +210 -0
  137. package/lib/generated/idl/HTMLTableCaptionElement.js +156 -0
  138. package/lib/generated/idl/HTMLTableCellElement.js +733 -0
  139. package/lib/generated/idl/HTMLTableColElement.js +376 -0
  140. package/lib/generated/idl/HTMLTableElement.js +802 -0
  141. package/lib/generated/idl/HTMLTableRowElement.js +417 -0
  142. package/lib/generated/idl/HTMLTableSectionElement.js +349 -0
  143. package/lib/generated/idl/HTMLTemplateElement.js +124 -0
  144. package/lib/generated/idl/HTMLTextAreaElement.js +1210 -0
  145. package/lib/generated/idl/HTMLTimeElement.js +156 -0
  146. package/lib/generated/idl/HTMLTitleElement.js +155 -0
  147. package/lib/generated/idl/HTMLTrackElement.js +366 -0
  148. package/lib/generated/idl/HTMLUListElement.js +200 -0
  149. package/lib/generated/idl/HTMLUnknownElement.js +109 -0
  150. package/lib/generated/idl/HTMLVideoElement.js +344 -0
  151. package/lib/generated/idl/HashChangeEvent.js +157 -0
  152. package/lib/generated/idl/HashChangeEventInit.js +50 -0
  153. package/lib/generated/idl/Headers.js +418 -0
  154. package/lib/generated/idl/History.js +266 -0
  155. package/lib/generated/idl/InputEvent.js +168 -0
  156. package/lib/generated/idl/InputEventInit.js +68 -0
  157. package/lib/generated/idl/KeyboardEvent.js +445 -0
  158. package/lib/generated/idl/KeyboardEventInit.js +116 -0
  159. package/lib/generated/idl/Location.js +404 -0
  160. package/lib/generated/idl/MessageEvent.js +317 -0
  161. package/lib/generated/idl/MessageEventInit.js +100 -0
  162. package/lib/generated/idl/MimeType.js +156 -0
  163. package/lib/generated/idl/MimeTypeArray.js +326 -0
  164. package/lib/generated/idl/MouseEvent.js +595 -0
  165. package/lib/generated/idl/MouseEventInit.js +189 -0
  166. package/lib/generated/idl/MutationCallback.js +34 -0
  167. package/lib/generated/idl/MutationObserver.js +178 -0
  168. package/lib/generated/idl/MutationObserverInit.js +121 -0
  169. package/lib/generated/idl/MutationRecord.js +229 -0
  170. package/lib/generated/idl/NamedNodeMap.js +529 -0
  171. package/lib/generated/idl/Navigator.js +326 -0
  172. package/lib/generated/idl/Node.js +765 -0
  173. package/lib/generated/idl/NodeFilter.js +75 -0
  174. package/lib/generated/idl/NodeIterator.js +207 -0
  175. package/lib/generated/idl/NodeList.js +302 -0
  176. package/lib/generated/idl/OnBeforeUnloadEventHandlerNonNull.js +42 -0
  177. package/lib/generated/idl/OnErrorEventHandlerNonNull.js +56 -0
  178. package/lib/generated/idl/PageTransitionEvent.js +144 -0
  179. package/lib/generated/idl/PageTransitionEventInit.js +35 -0
  180. package/lib/generated/idl/Performance.js +142 -0
  181. package/lib/generated/idl/Plugin.js +359 -0
  182. package/lib/generated/idl/PluginArray.js +336 -0
  183. package/lib/generated/idl/PointerEvent.js +324 -0
  184. package/lib/generated/idl/PointerEventInit.js +241 -0
  185. package/lib/generated/idl/PopStateEvent.js +144 -0
  186. package/lib/generated/idl/PopStateEventInit.js +32 -0
  187. package/lib/generated/idl/ProcessingInstruction.js +122 -0
  188. package/lib/generated/idl/ProgressEvent.js +170 -0
  189. package/lib/generated/idl/ProgressEventInit.js +65 -0
  190. package/lib/generated/idl/PromiseRejectionEvent.js +157 -0
  191. package/lib/generated/idl/PromiseRejectionEventInit.js +42 -0
  192. package/lib/generated/idl/RadioNodeList.js +296 -0
  193. package/lib/generated/idl/Range.js +643 -0
  194. package/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +136 -0
  195. package/lib/generated/idl/SVGAnimatedRect.js +136 -0
  196. package/lib/generated/idl/SVGAnimatedString.js +149 -0
  197. package/lib/generated/idl/SVGBoundingBoxOptions.js +64 -0
  198. package/lib/generated/idl/SVGDefsElement.js +109 -0
  199. package/lib/generated/idl/SVGDescElement.js +109 -0
  200. package/lib/generated/idl/SVGElement.js +3157 -0
  201. package/lib/generated/idl/SVGGElement.js +109 -0
  202. package/lib/generated/idl/SVGGraphicsElement.js +139 -0
  203. package/lib/generated/idl/SVGMetadataElement.js +109 -0
  204. package/lib/generated/idl/SVGNumber.js +132 -0
  205. package/lib/generated/idl/SVGPreserveAspectRatio.js +196 -0
  206. package/lib/generated/idl/SVGRect.js +210 -0
  207. package/lib/generated/idl/SVGSVGElement.js +786 -0
  208. package/lib/generated/idl/SVGStringList.js +511 -0
  209. package/lib/generated/idl/SVGSwitchElement.js +109 -0
  210. package/lib/generated/idl/SVGSymbolElement.js +146 -0
  211. package/lib/generated/idl/SVGTitleElement.js +109 -0
  212. package/lib/generated/idl/Screen.js +180 -0
  213. package/lib/generated/idl/ScrollBehavior.js +12 -0
  214. package/lib/generated/idl/ScrollIntoViewOptions.js +45 -0
  215. package/lib/generated/idl/ScrollLogicalPosition.js +14 -0
  216. package/lib/generated/idl/ScrollOptions.js +30 -0
  217. package/lib/generated/idl/ScrollRestoration.js +12 -0
  218. package/lib/generated/idl/Selection.js +571 -0
  219. package/lib/generated/idl/SelectionMode.js +12 -0
  220. package/lib/generated/idl/ShadowRoot.js +189 -0
  221. package/lib/generated/idl/ShadowRootInit.js +30 -0
  222. package/lib/generated/idl/ShadowRootMode.js +12 -0
  223. package/lib/generated/idl/StaticRange.js +123 -0
  224. package/lib/generated/idl/StaticRangeInit.js +72 -0
  225. package/lib/generated/idl/Storage.js +397 -0
  226. package/lib/generated/idl/StorageEvent.js +318 -0
  227. package/lib/generated/idl/StorageEventInit.js +99 -0
  228. package/lib/generated/idl/StyleSheetList.js +300 -0
  229. package/lib/generated/idl/SubmitEvent.js +144 -0
  230. package/lib/generated/idl/SubmitEventInit.js +36 -0
  231. package/lib/generated/idl/SupportedType.js +18 -0
  232. package/lib/generated/idl/Text.js +170 -0
  233. package/lib/generated/idl/TextDecodeOptions.js +28 -0
  234. package/lib/generated/idl/TextDecoder.js +211 -0
  235. package/lib/generated/idl/TextDecoderOptions.js +43 -0
  236. package/lib/generated/idl/TextEncoder.js +176 -0
  237. package/lib/generated/idl/TextEncoderEncodeIntoResult.js +42 -0
  238. package/lib/generated/idl/TextTrackKind.js +12 -0
  239. package/lib/generated/idl/TouchEvent.js +222 -0
  240. package/lib/generated/idl/TouchEventInit.js +89 -0
  241. package/lib/generated/idl/TransitionEvent.js +170 -0
  242. package/lib/generated/idl/TransitionEventInit.js +65 -0
  243. package/lib/generated/idl/TreeWalker.js +255 -0
  244. package/lib/generated/idl/UIEvent.js +235 -0
  245. package/lib/generated/idl/UIEventInit.js +62 -0
  246. package/lib/generated/idl/ValidityState.js +249 -0
  247. package/lib/generated/idl/VisibilityState.js +12 -0
  248. package/lib/generated/idl/VoidFunction.js +26 -0
  249. package/lib/generated/idl/WebSocket.js +480 -0
  250. package/lib/generated/idl/WheelEvent.js +191 -0
  251. package/lib/generated/idl/WheelEventInit.js +71 -0
  252. package/lib/generated/idl/XMLDocument.js +109 -0
  253. package/lib/generated/idl/XMLHttpRequest.js +663 -0
  254. package/lib/generated/idl/XMLHttpRequestEventTarget.js +334 -0
  255. package/lib/generated/idl/XMLHttpRequestResponseType.js +14 -0
  256. package/lib/generated/idl/XMLHttpRequestUpload.js +109 -0
  257. package/lib/generated/idl/XMLSerializer.js +132 -0
  258. package/lib/generated/idl/utils.js +252 -0
  259. package/lib/generated/js-globals.json +332 -0
  260. package/lib/jsdom/browser/Window.js +952 -0
  261. package/lib/jsdom/browser/default-stylesheet.css +415 -0
  262. package/lib/jsdom/browser/not-implemented.js +20 -0
  263. package/lib/jsdom/browser/parser/html.js +208 -0
  264. package/lib/jsdom/browser/parser/index.js +37 -0
  265. package/lib/jsdom/browser/parser/xml.js +202 -0
  266. package/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
  267. package/lib/jsdom/browser/resources/decompress-interceptor.js +184 -0
  268. package/lib/jsdom/browser/resources/jsdom-dispatcher.js +756 -0
  269. package/lib/jsdom/browser/resources/per-document-resource-loader.js +116 -0
  270. package/lib/jsdom/browser/resources/request-interceptor.js +171 -0
  271. package/lib/jsdom/browser/resources/request-manager.js +33 -0
  272. package/lib/jsdom/browser/resources/resource-queue.js +142 -0
  273. package/lib/jsdom/browser/resources/stream-handler.js +89 -0
  274. package/lib/jsdom/level2/style.js +65 -0
  275. package/lib/jsdom/level3/xpath.js +1875 -0
  276. package/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
  277. package/lib/jsdom/living/aborting/AbortSignal-impl.js +131 -0
  278. package/lib/jsdom/living/attributes/Attr-impl.js +60 -0
  279. package/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
  280. package/lib/jsdom/living/attributes.js +312 -0
  281. package/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
  282. package/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
  283. package/lib/jsdom/living/crypto/Crypto-impl.js +68 -0
  284. package/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
  285. package/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +279 -0
  286. package/lib/jsdom/living/custom-elements/ElementInternals-impl.js +56 -0
  287. package/lib/jsdom/living/deviceorientation/DeviceMotionEventAcceleration-impl.js +7 -0
  288. package/lib/jsdom/living/deviceorientation/DeviceMotionEventRotationRate-impl.js +7 -0
  289. package/lib/jsdom/living/documents.js +15 -0
  290. package/lib/jsdom/living/domparsing/DOMParser-impl.js +59 -0
  291. package/lib/jsdom/living/domparsing/InnerHTML-impl.js +30 -0
  292. package/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
  293. package/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
  294. package/lib/jsdom/living/domparsing/serialization.js +36 -0
  295. package/lib/jsdom/living/encoding/TextDecoder-impl.js +25 -0
  296. package/lib/jsdom/living/encoding/TextEncoder-impl.js +26 -0
  297. package/lib/jsdom/living/events/BeforeUnloadEvent-impl.js +12 -0
  298. package/lib/jsdom/living/events/BlobEvent-impl.js +14 -0
  299. package/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
  300. package/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
  301. package/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
  302. package/lib/jsdom/living/events/DeviceMotionEvent-impl.js +49 -0
  303. package/lib/jsdom/living/events/DeviceOrientationEvent-impl.js +10 -0
  304. package/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
  305. package/lib/jsdom/living/events/Event-impl.js +195 -0
  306. package/lib/jsdom/living/events/EventModifierMixin-impl.js +24 -0
  307. package/lib/jsdom/living/events/EventTarget-impl.js +438 -0
  308. package/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
  309. package/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
  310. package/lib/jsdom/living/events/InputEvent-impl.js +11 -0
  311. package/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
  312. package/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
  313. package/lib/jsdom/living/events/MouseEvent-impl.js +72 -0
  314. package/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
  315. package/lib/jsdom/living/events/PointerEvent-impl.js +21 -0
  316. package/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
  317. package/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
  318. package/lib/jsdom/living/events/PromiseRejectionEvent-impl.js +14 -0
  319. package/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
  320. package/lib/jsdom/living/events/SubmitEvent-impl.js +13 -0
  321. package/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
  322. package/lib/jsdom/living/events/TransitionEvent-impl.js +10 -0
  323. package/lib/jsdom/living/events/UIEvent-impl.js +43 -0
  324. package/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
  325. package/lib/jsdom/living/fetch/Headers-impl.js +173 -0
  326. package/lib/jsdom/living/fetch/header-list.js +158 -0
  327. package/lib/jsdom/living/fetch/header-types.js +205 -0
  328. package/lib/jsdom/living/fetch/header-utils.js +26 -0
  329. package/lib/jsdom/living/file-api/Blob-impl.js +125 -0
  330. package/lib/jsdom/living/file-api/File-impl.js +12 -0
  331. package/lib/jsdom/living/file-api/FileList-impl.js +15 -0
  332. package/lib/jsdom/living/file-api/FileReader-impl.js +148 -0
  333. package/lib/jsdom/living/geometry/DOMRect-impl.js +39 -0
  334. package/lib/jsdom/living/geometry/DOMRectReadOnly-impl.js +72 -0
  335. package/lib/jsdom/living/helpers/binary-data.js +63 -0
  336. package/lib/jsdom/living/helpers/by-id-cache.js +67 -0
  337. package/lib/jsdom/living/helpers/colors.js +245 -0
  338. package/lib/jsdom/living/helpers/create-element.js +329 -0
  339. package/lib/jsdom/living/helpers/create-event-accessor.js +209 -0
  340. package/lib/jsdom/living/helpers/custom-elements.js +272 -0
  341. package/lib/jsdom/living/helpers/dates-and-times.js +270 -0
  342. package/lib/jsdom/living/helpers/details.js +15 -0
  343. package/lib/jsdom/living/helpers/encoding.js +60 -0
  344. package/lib/jsdom/living/helpers/events.js +24 -0
  345. package/lib/jsdom/living/helpers/focusing.js +104 -0
  346. package/lib/jsdom/living/helpers/form-controls.js +309 -0
  347. package/lib/jsdom/living/helpers/html-constructor.js +78 -0
  348. package/lib/jsdom/living/helpers/internal-constants.js +12 -0
  349. package/lib/jsdom/living/helpers/is-window.js +18 -0
  350. package/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
  351. package/lib/jsdom/living/helpers/json.js +7 -0
  352. package/lib/jsdom/living/helpers/mutation-observers.js +198 -0
  353. package/lib/jsdom/living/helpers/namespaces.js +16 -0
  354. package/lib/jsdom/living/helpers/node.js +108 -0
  355. package/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
  356. package/lib/jsdom/living/helpers/ordered-set.js +104 -0
  357. package/lib/jsdom/living/helpers/page-transition-event.js +9 -0
  358. package/lib/jsdom/living/helpers/runtime-script-errors.js +75 -0
  359. package/lib/jsdom/living/helpers/shadow-dom.js +285 -0
  360. package/lib/jsdom/living/helpers/strings.js +168 -0
  361. package/lib/jsdom/living/helpers/style-rules.js +404 -0
  362. package/lib/jsdom/living/helpers/stylesheets.js +148 -0
  363. package/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
  364. package/lib/jsdom/living/helpers/svg/render.js +46 -0
  365. package/lib/jsdom/living/helpers/system-colors.js +147 -0
  366. package/lib/jsdom/living/helpers/text.js +19 -0
  367. package/lib/jsdom/living/helpers/traversal.js +72 -0
  368. package/lib/jsdom/living/helpers/validate-names.js +65 -0
  369. package/lib/jsdom/living/hr-time/Performance-impl.js +22 -0
  370. package/lib/jsdom/living/interfaces.js +252 -0
  371. package/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
  372. package/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
  373. package/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
  374. package/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
  375. package/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
  376. package/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
  377. package/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
  378. package/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
  379. package/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
  380. package/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
  381. package/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
  382. package/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
  383. package/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
  384. package/lib/jsdom/living/node-document-position.js +10 -0
  385. package/lib/jsdom/living/node-type.js +16 -0
  386. package/lib/jsdom/living/node.js +331 -0
  387. package/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
  388. package/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
  389. package/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
  390. package/lib/jsdom/living/nodes/Comment-impl.js +20 -0
  391. package/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
  392. package/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
  393. package/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
  394. package/lib/jsdom/living/nodes/Document-impl.js +1000 -0
  395. package/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
  396. package/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
  397. package/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
  398. package/lib/jsdom/living/nodes/Element-impl.js +584 -0
  399. package/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +22 -0
  400. package/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
  401. package/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +81 -0
  402. package/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
  403. package/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
  404. package/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
  405. package/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
  406. package/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +44 -0
  407. package/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +12 -0
  408. package/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
  409. package/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +136 -0
  410. package/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
  411. package/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
  412. package/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
  413. package/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
  414. package/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
  415. package/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
  416. package/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
  417. package/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
  418. package/lib/jsdom/living/nodes/HTMLElement-impl.js +211 -0
  419. package/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
  420. package/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
  421. package/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
  422. package/lib/jsdom/living/nodes/HTMLFormControlsCollection-impl.js +33 -0
  423. package/lib/jsdom/living/nodes/HTMLFormElement-impl.js +248 -0
  424. package/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +266 -0
  425. package/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +12 -0
  426. package/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
  427. package/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
  428. package/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
  429. package/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
  430. package/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +368 -0
  431. package/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
  432. package/lib/jsdom/living/nodes/HTMLImageElement-impl.js +127 -0
  433. package/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1097 -0
  434. package/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
  435. package/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
  436. package/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
  437. package/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +107 -0
  438. package/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
  439. package/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
  440. package/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
  441. package/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
  442. package/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
  443. package/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
  444. package/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
  445. package/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
  446. package/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
  447. package/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
  448. package/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
  449. package/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
  450. package/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +88 -0
  451. package/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
  452. package/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
  453. package/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
  454. package/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
  455. package/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
  456. package/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +72 -0
  457. package/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
  458. package/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +255 -0
  459. package/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
  460. package/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
  461. package/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
  462. package/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
  463. package/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +76 -0
  464. package/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
  465. package/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
  466. package/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
  467. package/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
  468. package/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
  469. package/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
  470. package/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
  471. package/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +244 -0
  472. package/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
  473. package/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
  474. package/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
  475. package/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
  476. package/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
  477. package/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
  478. package/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
  479. package/lib/jsdom/living/nodes/Node-impl.js +1179 -0
  480. package/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
  481. package/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
  482. package/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
  483. package/lib/jsdom/living/nodes/ParentNode-impl.js +90 -0
  484. package/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
  485. package/lib/jsdom/living/nodes/RadioNodeList-impl.js +49 -0
  486. package/lib/jsdom/living/nodes/SVGDefsElement-impl.js +9 -0
  487. package/lib/jsdom/living/nodes/SVGDescElement-impl.js +9 -0
  488. package/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
  489. package/lib/jsdom/living/nodes/SVGGElement-impl.js +9 -0
  490. package/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
  491. package/lib/jsdom/living/nodes/SVGMetadataElement-impl.js +9 -0
  492. package/lib/jsdom/living/nodes/SVGSVGElement-impl.js +40 -0
  493. package/lib/jsdom/living/nodes/SVGSwitchElement-impl.js +9 -0
  494. package/lib/jsdom/living/nodes/SVGSymbolElement-impl.js +9 -0
  495. package/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
  496. package/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
  497. package/lib/jsdom/living/nodes/ShadowRoot-impl.js +41 -0
  498. package/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
  499. package/lib/jsdom/living/nodes/Text-impl.js +96 -0
  500. package/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +14 -0
  501. package/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
  502. package/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
  503. package/lib/jsdom/living/range/Range-impl.js +902 -0
  504. package/lib/jsdom/living/range/StaticRange-impl.js +39 -0
  505. package/lib/jsdom/living/range/boundary-point.js +47 -0
  506. package/lib/jsdom/living/selection/Selection-impl.js +358 -0
  507. package/lib/jsdom/living/svg/SVGAnimatedPreserveAspectRatio-impl.js +24 -0
  508. package/lib/jsdom/living/svg/SVGAnimatedRect-impl.js +122 -0
  509. package/lib/jsdom/living/svg/SVGAnimatedString-impl.js +42 -0
  510. package/lib/jsdom/living/svg/SVGListBase.js +195 -0
  511. package/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
  512. package/lib/jsdom/living/svg/SVGPreserveAspectRatio-impl.js +100 -0
  513. package/lib/jsdom/living/svg/SVGRect-impl.js +143 -0
  514. package/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
  515. package/lib/jsdom/living/traversal/NodeIterator-impl.js +107 -0
  516. package/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
  517. package/lib/jsdom/living/traversal/helpers.js +44 -0
  518. package/lib/jsdom/living/webidl/DOMException-impl.js +46 -0
  519. package/lib/jsdom/living/websockets/WebSocket-impl.js +211 -0
  520. package/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
  521. package/lib/jsdom/living/window/BarProp-impl.js +10 -0
  522. package/lib/jsdom/living/window/External-impl.js +9 -0
  523. package/lib/jsdom/living/window/History-impl.js +148 -0
  524. package/lib/jsdom/living/window/Location-impl.js +227 -0
  525. package/lib/jsdom/living/window/Screen-impl.js +13 -0
  526. package/lib/jsdom/living/window/SessionHistory.js +163 -0
  527. package/lib/jsdom/living/window/navigation.js +87 -0
  528. package/lib/jsdom/living/window-properties.js +241 -0
  529. package/lib/jsdom/living/xhr/FormData-impl.js +191 -0
  530. package/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1057 -0
  531. package/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
  532. package/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
  533. package/lib/jsdom/living/xhr/multipart-form-data.js +99 -0
  534. package/lib/jsdom/living/xhr/xhr-sync-worker.js +51 -0
  535. package/lib/jsdom/living/xhr/xhr-utils.js +206 -0
  536. package/lib/jsdom/utils.js +105 -0
  537. package/lib/jsdom/virtual-console.js +46 -0
  538. package/package.json +143 -0
@@ -0,0 +1,1931 @@
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 FileList = require("./FileList.js");
14
+ const parseNonNegativeInteger_jsdom_living_helpers_strings =
15
+ require("../../jsdom/living/helpers/strings.js").parseNonNegativeInteger;
16
+ const create_DOMException = require("./DOMException.js").create;
17
+ const serializeURLwhatwg_url = require("whatwg-url").serializeURL;
18
+ const implSymbol = utils.implSymbol;
19
+ const ctorRegistrySymbol = utils.ctorRegistrySymbol;
20
+ const HTMLElement = require("./HTMLElement.js");
21
+
22
+ const interfaceName = "HTMLInputElement";
23
+
24
+ exports.is = value => {
25
+ return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
26
+ };
27
+ exports.isImpl = value => {
28
+ return utils.isObject(value) && value instanceof Impl.implementation;
29
+ };
30
+ exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
31
+ if (exports.is(value)) {
32
+ return utils.implForWrapper(value);
33
+ }
34
+ throw new globalObject.TypeError(`${context} is not of type 'HTMLInputElement'.`);
35
+ };
36
+
37
+ function makeWrapper(globalObject, newTarget) {
38
+ let proto;
39
+ if (newTarget !== undefined) {
40
+ proto = newTarget.prototype;
41
+ }
42
+
43
+ if (!utils.isObject(proto)) {
44
+ proto = globalObject[ctorRegistrySymbol]["HTMLInputElement"].prototype;
45
+ }
46
+
47
+ return Object.create(proto);
48
+ }
49
+
50
+ exports.create = (globalObject, constructorArgs, privateData) => {
51
+ const wrapper = makeWrapper(globalObject);
52
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
53
+ };
54
+
55
+ exports.createImpl = (globalObject, constructorArgs, privateData) => {
56
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
57
+ return utils.implForWrapper(wrapper);
58
+ };
59
+
60
+ exports._internalSetup = (wrapper, globalObject) => {
61
+ HTMLElement._internalSetup(wrapper, globalObject);
62
+ };
63
+
64
+ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
65
+ privateData.wrapper = wrapper;
66
+
67
+ exports._internalSetup(wrapper, globalObject);
68
+ Object.defineProperty(wrapper, implSymbol, {
69
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
70
+ configurable: true
71
+ });
72
+
73
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
74
+ if (Impl.init) {
75
+ Impl.init(wrapper[implSymbol]);
76
+ }
77
+ return wrapper;
78
+ };
79
+
80
+ exports.new = (globalObject, newTarget) => {
81
+ const wrapper = makeWrapper(globalObject, newTarget);
82
+
83
+ exports._internalSetup(wrapper, globalObject);
84
+ Object.defineProperty(wrapper, implSymbol, {
85
+ value: Object.create(Impl.implementation.prototype),
86
+ configurable: true
87
+ });
88
+
89
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
90
+ if (Impl.init) {
91
+ Impl.init(wrapper[implSymbol]);
92
+ }
93
+ return wrapper[implSymbol];
94
+ };
95
+
96
+ const exposed = new Set(["Window"]);
97
+
98
+ exports.install = (globalObject, globalNames) => {
99
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
100
+ return;
101
+ }
102
+
103
+ const ctorRegistry = utils.initCtorRegistry(globalObject);
104
+ class HTMLInputElement extends globalObject.HTMLElement {
105
+ constructor() {
106
+ return HTMLConstructor_jsdom_living_helpers_html_constructor(globalObject, interfaceName, new.target);
107
+ }
108
+
109
+ stepUp() {
110
+ const esValue = this !== null && this !== undefined ? this : globalObject;
111
+ if (!exports.is(esValue)) {
112
+ throw new globalObject.TypeError(
113
+ "'stepUp' called on an object that is not a valid instance of HTMLInputElement."
114
+ );
115
+ }
116
+ const args = [];
117
+ {
118
+ let curArg = arguments[0];
119
+ if (curArg !== undefined) {
120
+ curArg = conversions["long"](curArg, {
121
+ context: "Failed to execute 'stepUp' on 'HTMLInputElement': parameter 1",
122
+ globals: globalObject
123
+ });
124
+ } else {
125
+ curArg = 1;
126
+ }
127
+ args.push(curArg);
128
+ }
129
+ return esValue[implSymbol].stepUp(...args);
130
+ }
131
+
132
+ stepDown() {
133
+ const esValue = this !== null && this !== undefined ? this : globalObject;
134
+ if (!exports.is(esValue)) {
135
+ throw new globalObject.TypeError(
136
+ "'stepDown' called on an object that is not a valid instance of HTMLInputElement."
137
+ );
138
+ }
139
+ const args = [];
140
+ {
141
+ let curArg = arguments[0];
142
+ if (curArg !== undefined) {
143
+ curArg = conversions["long"](curArg, {
144
+ context: "Failed to execute 'stepDown' on 'HTMLInputElement': parameter 1",
145
+ globals: globalObject
146
+ });
147
+ } else {
148
+ curArg = 1;
149
+ }
150
+ args.push(curArg);
151
+ }
152
+ return esValue[implSymbol].stepDown(...args);
153
+ }
154
+
155
+ checkValidity() {
156
+ const esValue = this !== null && this !== undefined ? this : globalObject;
157
+ if (!exports.is(esValue)) {
158
+ throw new globalObject.TypeError(
159
+ "'checkValidity' called on an object that is not a valid instance of HTMLInputElement."
160
+ );
161
+ }
162
+
163
+ return esValue[implSymbol].checkValidity();
164
+ }
165
+
166
+ reportValidity() {
167
+ const esValue = this !== null && this !== undefined ? this : globalObject;
168
+ if (!exports.is(esValue)) {
169
+ throw new globalObject.TypeError(
170
+ "'reportValidity' called on an object that is not a valid instance of HTMLInputElement."
171
+ );
172
+ }
173
+
174
+ return esValue[implSymbol].reportValidity();
175
+ }
176
+
177
+ setCustomValidity(error) {
178
+ const esValue = this !== null && this !== undefined ? this : globalObject;
179
+ if (!exports.is(esValue)) {
180
+ throw new globalObject.TypeError(
181
+ "'setCustomValidity' called on an object that is not a valid instance of HTMLInputElement."
182
+ );
183
+ }
184
+
185
+ if (arguments.length < 1) {
186
+ throw new globalObject.TypeError(
187
+ `Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only ${arguments.length} present.`
188
+ );
189
+ }
190
+ const args = [];
191
+ {
192
+ let curArg = arguments[0];
193
+ curArg = conversions["DOMString"](curArg, {
194
+ context: "Failed to execute 'setCustomValidity' on 'HTMLInputElement': parameter 1",
195
+ globals: globalObject
196
+ });
197
+ args.push(curArg);
198
+ }
199
+ return esValue[implSymbol].setCustomValidity(...args);
200
+ }
201
+
202
+ select() {
203
+ const esValue = this !== null && this !== undefined ? this : globalObject;
204
+ if (!exports.is(esValue)) {
205
+ throw new globalObject.TypeError(
206
+ "'select' called on an object that is not a valid instance of HTMLInputElement."
207
+ );
208
+ }
209
+
210
+ return esValue[implSymbol].select();
211
+ }
212
+
213
+ setRangeText(replacement) {
214
+ const esValue = this !== null && this !== undefined ? this : globalObject;
215
+ if (!exports.is(esValue)) {
216
+ throw new globalObject.TypeError(
217
+ "'setRangeText' called on an object that is not a valid instance of HTMLInputElement."
218
+ );
219
+ }
220
+
221
+ if (arguments.length < 1) {
222
+ throw new globalObject.TypeError(
223
+ `Failed to execute 'setRangeText' on 'HTMLInputElement': 1 argument required, but only ${arguments.length} present.`
224
+ );
225
+ }
226
+ const args = [];
227
+ switch (arguments.length) {
228
+ case 1:
229
+ {
230
+ let curArg = arguments[0];
231
+ curArg = conversions["DOMString"](curArg, {
232
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1",
233
+ globals: globalObject
234
+ });
235
+ args.push(curArg);
236
+ }
237
+ break;
238
+ case 2:
239
+ throw new globalObject.TypeError(
240
+ `Failed to execute 'setRangeText' on 'HTMLInputElement': only ${arguments.length} arguments present.`
241
+ );
242
+ break;
243
+ case 3:
244
+ {
245
+ let curArg = arguments[0];
246
+ curArg = conversions["DOMString"](curArg, {
247
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1",
248
+ globals: globalObject
249
+ });
250
+ args.push(curArg);
251
+ }
252
+ {
253
+ let curArg = arguments[1];
254
+ curArg = conversions["unsigned long"](curArg, {
255
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2",
256
+ globals: globalObject
257
+ });
258
+ args.push(curArg);
259
+ }
260
+ {
261
+ let curArg = arguments[2];
262
+ curArg = conversions["unsigned long"](curArg, {
263
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3",
264
+ globals: globalObject
265
+ });
266
+ args.push(curArg);
267
+ }
268
+ break;
269
+ default:
270
+ {
271
+ let curArg = arguments[0];
272
+ curArg = conversions["DOMString"](curArg, {
273
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1",
274
+ globals: globalObject
275
+ });
276
+ args.push(curArg);
277
+ }
278
+ {
279
+ let curArg = arguments[1];
280
+ curArg = conversions["unsigned long"](curArg, {
281
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2",
282
+ globals: globalObject
283
+ });
284
+ args.push(curArg);
285
+ }
286
+ {
287
+ let curArg = arguments[2];
288
+ curArg = conversions["unsigned long"](curArg, {
289
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3",
290
+ globals: globalObject
291
+ });
292
+ args.push(curArg);
293
+ }
294
+ {
295
+ let curArg = arguments[3];
296
+ if (curArg !== undefined) {
297
+ curArg = SelectionMode.convert(globalObject, curArg, {
298
+ context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 4"
299
+ });
300
+ } else {
301
+ curArg = "preserve";
302
+ }
303
+ args.push(curArg);
304
+ }
305
+ }
306
+ return esValue[implSymbol].setRangeText(...args);
307
+ }
308
+
309
+ setSelectionRange(start, end) {
310
+ const esValue = this !== null && this !== undefined ? this : globalObject;
311
+ if (!exports.is(esValue)) {
312
+ throw new globalObject.TypeError(
313
+ "'setSelectionRange' called on an object that is not a valid instance of HTMLInputElement."
314
+ );
315
+ }
316
+
317
+ if (arguments.length < 2) {
318
+ throw new globalObject.TypeError(
319
+ `Failed to execute 'setSelectionRange' on 'HTMLInputElement': 2 arguments required, but only ${arguments.length} present.`
320
+ );
321
+ }
322
+ const args = [];
323
+ {
324
+ let curArg = arguments[0];
325
+ curArg = conversions["unsigned long"](curArg, {
326
+ context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 1",
327
+ globals: globalObject
328
+ });
329
+ args.push(curArg);
330
+ }
331
+ {
332
+ let curArg = arguments[1];
333
+ curArg = conversions["unsigned long"](curArg, {
334
+ context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 2",
335
+ globals: globalObject
336
+ });
337
+ args.push(curArg);
338
+ }
339
+ {
340
+ let curArg = arguments[2];
341
+ if (curArg !== undefined) {
342
+ curArg = conversions["DOMString"](curArg, {
343
+ context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 3",
344
+ globals: globalObject
345
+ });
346
+ }
347
+ args.push(curArg);
348
+ }
349
+ return esValue[implSymbol].setSelectionRange(...args);
350
+ }
351
+
352
+ get accept() {
353
+ const esValue = this !== null && this !== undefined ? this : globalObject;
354
+
355
+ if (!exports.is(esValue)) {
356
+ throw new globalObject.TypeError(
357
+ "'get accept' called on an object that is not a valid instance of HTMLInputElement."
358
+ );
359
+ }
360
+
361
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
362
+ try {
363
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("accept");
364
+ return value === null ? "" : value;
365
+ } finally {
366
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
367
+ }
368
+ }
369
+
370
+ set accept(V) {
371
+ const esValue = this !== null && this !== undefined ? this : globalObject;
372
+
373
+ if (!exports.is(esValue)) {
374
+ throw new globalObject.TypeError(
375
+ "'set accept' called on an object that is not a valid instance of HTMLInputElement."
376
+ );
377
+ }
378
+
379
+ V = conversions["DOMString"](V, {
380
+ context: "Failed to set the 'accept' property on 'HTMLInputElement': The provided value",
381
+ globals: globalObject
382
+ });
383
+
384
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
385
+ try {
386
+ esValue[implSymbol]._reflectSetTheContentAttribute("accept", V);
387
+ } finally {
388
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
389
+ }
390
+ }
391
+
392
+ get alt() {
393
+ const esValue = this !== null && this !== undefined ? this : globalObject;
394
+
395
+ if (!exports.is(esValue)) {
396
+ throw new globalObject.TypeError(
397
+ "'get alt' called on an object that is not a valid instance of HTMLInputElement."
398
+ );
399
+ }
400
+
401
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
402
+ try {
403
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("alt");
404
+ return value === null ? "" : value;
405
+ } finally {
406
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
407
+ }
408
+ }
409
+
410
+ set alt(V) {
411
+ const esValue = this !== null && this !== undefined ? this : globalObject;
412
+
413
+ if (!exports.is(esValue)) {
414
+ throw new globalObject.TypeError(
415
+ "'set alt' called on an object that is not a valid instance of HTMLInputElement."
416
+ );
417
+ }
418
+
419
+ V = conversions["DOMString"](V, {
420
+ context: "Failed to set the 'alt' property on 'HTMLInputElement': The provided value",
421
+ globals: globalObject
422
+ });
423
+
424
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
425
+ try {
426
+ esValue[implSymbol]._reflectSetTheContentAttribute("alt", V);
427
+ } finally {
428
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
429
+ }
430
+ }
431
+
432
+ get autocomplete() {
433
+ const esValue = this !== null && this !== undefined ? this : globalObject;
434
+
435
+ if (!exports.is(esValue)) {
436
+ throw new globalObject.TypeError(
437
+ "'get autocomplete' called on an object that is not a valid instance of HTMLInputElement."
438
+ );
439
+ }
440
+
441
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
442
+ try {
443
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("autocomplete");
444
+ return value === null ? "" : value;
445
+ } finally {
446
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
447
+ }
448
+ }
449
+
450
+ set autocomplete(V) {
451
+ const esValue = this !== null && this !== undefined ? this : globalObject;
452
+
453
+ if (!exports.is(esValue)) {
454
+ throw new globalObject.TypeError(
455
+ "'set autocomplete' called on an object that is not a valid instance of HTMLInputElement."
456
+ );
457
+ }
458
+
459
+ V = conversions["DOMString"](V, {
460
+ context: "Failed to set the 'autocomplete' property on 'HTMLInputElement': The provided value",
461
+ globals: globalObject
462
+ });
463
+
464
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
465
+ try {
466
+ esValue[implSymbol]._reflectSetTheContentAttribute("autocomplete", V);
467
+ } finally {
468
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
469
+ }
470
+ }
471
+
472
+ get autofocus() {
473
+ const esValue = this !== null && this !== undefined ? this : globalObject;
474
+
475
+ if (!exports.is(esValue)) {
476
+ throw new globalObject.TypeError(
477
+ "'get autofocus' called on an object that is not a valid instance of HTMLInputElement."
478
+ );
479
+ }
480
+
481
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
482
+ try {
483
+ return esValue[implSymbol]._reflectGetTheContentAttribute("autofocus") !== null;
484
+ } finally {
485
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
486
+ }
487
+ }
488
+
489
+ set autofocus(V) {
490
+ const esValue = this !== null && this !== undefined ? this : globalObject;
491
+
492
+ if (!exports.is(esValue)) {
493
+ throw new globalObject.TypeError(
494
+ "'set autofocus' called on an object that is not a valid instance of HTMLInputElement."
495
+ );
496
+ }
497
+
498
+ V = conversions["boolean"](V, {
499
+ context: "Failed to set the 'autofocus' property on 'HTMLInputElement': The provided value",
500
+ globals: globalObject
501
+ });
502
+
503
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
504
+ try {
505
+ if (V) {
506
+ esValue[implSymbol]._reflectSetTheContentAttribute("autofocus", "");
507
+ } else {
508
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("autofocus");
509
+ }
510
+ } finally {
511
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
512
+ }
513
+ }
514
+
515
+ get defaultChecked() {
516
+ const esValue = this !== null && this !== undefined ? this : globalObject;
517
+
518
+ if (!exports.is(esValue)) {
519
+ throw new globalObject.TypeError(
520
+ "'get defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
521
+ );
522
+ }
523
+
524
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
525
+ try {
526
+ return esValue[implSymbol]._reflectGetTheContentAttribute("checked") !== null;
527
+ } finally {
528
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
529
+ }
530
+ }
531
+
532
+ set defaultChecked(V) {
533
+ const esValue = this !== null && this !== undefined ? this : globalObject;
534
+
535
+ if (!exports.is(esValue)) {
536
+ throw new globalObject.TypeError(
537
+ "'set defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
538
+ );
539
+ }
540
+
541
+ V = conversions["boolean"](V, {
542
+ context: "Failed to set the 'defaultChecked' property on 'HTMLInputElement': The provided value",
543
+ globals: globalObject
544
+ });
545
+
546
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
547
+ try {
548
+ if (V) {
549
+ esValue[implSymbol]._reflectSetTheContentAttribute("checked", "");
550
+ } else {
551
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("checked");
552
+ }
553
+ } finally {
554
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
555
+ }
556
+ }
557
+
558
+ get checked() {
559
+ const esValue = this !== null && this !== undefined ? this : globalObject;
560
+
561
+ if (!exports.is(esValue)) {
562
+ throw new globalObject.TypeError(
563
+ "'get checked' called on an object that is not a valid instance of HTMLInputElement."
564
+ );
565
+ }
566
+
567
+ return esValue[implSymbol]["checked"];
568
+ }
569
+
570
+ set checked(V) {
571
+ const esValue = this !== null && this !== undefined ? this : globalObject;
572
+
573
+ if (!exports.is(esValue)) {
574
+ throw new globalObject.TypeError(
575
+ "'set checked' called on an object that is not a valid instance of HTMLInputElement."
576
+ );
577
+ }
578
+
579
+ V = conversions["boolean"](V, {
580
+ context: "Failed to set the 'checked' property on 'HTMLInputElement': The provided value",
581
+ globals: globalObject
582
+ });
583
+
584
+ esValue[implSymbol]["checked"] = V;
585
+ }
586
+
587
+ get dirName() {
588
+ const esValue = this !== null && this !== undefined ? this : globalObject;
589
+
590
+ if (!exports.is(esValue)) {
591
+ throw new globalObject.TypeError(
592
+ "'get dirName' called on an object that is not a valid instance of HTMLInputElement."
593
+ );
594
+ }
595
+
596
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
597
+ try {
598
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("dirname");
599
+ return value === null ? "" : value;
600
+ } finally {
601
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
602
+ }
603
+ }
604
+
605
+ set dirName(V) {
606
+ const esValue = this !== null && this !== undefined ? this : globalObject;
607
+
608
+ if (!exports.is(esValue)) {
609
+ throw new globalObject.TypeError(
610
+ "'set dirName' called on an object that is not a valid instance of HTMLInputElement."
611
+ );
612
+ }
613
+
614
+ V = conversions["DOMString"](V, {
615
+ context: "Failed to set the 'dirName' property on 'HTMLInputElement': The provided value",
616
+ globals: globalObject
617
+ });
618
+
619
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
620
+ try {
621
+ esValue[implSymbol]._reflectSetTheContentAttribute("dirname", V);
622
+ } finally {
623
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
624
+ }
625
+ }
626
+
627
+ get disabled() {
628
+ const esValue = this !== null && this !== undefined ? this : globalObject;
629
+
630
+ if (!exports.is(esValue)) {
631
+ throw new globalObject.TypeError(
632
+ "'get disabled' called on an object that is not a valid instance of HTMLInputElement."
633
+ );
634
+ }
635
+
636
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
637
+ try {
638
+ return esValue[implSymbol]._reflectGetTheContentAttribute("disabled") !== null;
639
+ } finally {
640
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
641
+ }
642
+ }
643
+
644
+ set disabled(V) {
645
+ const esValue = this !== null && this !== undefined ? this : globalObject;
646
+
647
+ if (!exports.is(esValue)) {
648
+ throw new globalObject.TypeError(
649
+ "'set disabled' called on an object that is not a valid instance of HTMLInputElement."
650
+ );
651
+ }
652
+
653
+ V = conversions["boolean"](V, {
654
+ context: "Failed to set the 'disabled' property on 'HTMLInputElement': The provided value",
655
+ globals: globalObject
656
+ });
657
+
658
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
659
+ try {
660
+ if (V) {
661
+ esValue[implSymbol]._reflectSetTheContentAttribute("disabled", "");
662
+ } else {
663
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("disabled");
664
+ }
665
+ } finally {
666
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
667
+ }
668
+ }
669
+
670
+ get form() {
671
+ const esValue = this !== null && this !== undefined ? this : globalObject;
672
+
673
+ if (!exports.is(esValue)) {
674
+ throw new globalObject.TypeError(
675
+ "'get form' called on an object that is not a valid instance of HTMLInputElement."
676
+ );
677
+ }
678
+
679
+ return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
680
+ }
681
+
682
+ get files() {
683
+ const esValue = this !== null && this !== undefined ? this : globalObject;
684
+
685
+ if (!exports.is(esValue)) {
686
+ throw new globalObject.TypeError(
687
+ "'get files' called on an object that is not a valid instance of HTMLInputElement."
688
+ );
689
+ }
690
+
691
+ return utils.tryWrapperForImpl(esValue[implSymbol]["files"]);
692
+ }
693
+
694
+ set files(V) {
695
+ const esValue = this !== null && this !== undefined ? this : globalObject;
696
+
697
+ if (!exports.is(esValue)) {
698
+ throw new globalObject.TypeError(
699
+ "'set files' called on an object that is not a valid instance of HTMLInputElement."
700
+ );
701
+ }
702
+
703
+ if (V === null || V === undefined) {
704
+ V = null;
705
+ } else {
706
+ V = FileList.convert(globalObject, V, {
707
+ context: "Failed to set the 'files' property on 'HTMLInputElement': The provided value"
708
+ });
709
+ }
710
+ esValue[implSymbol]["files"] = V;
711
+ }
712
+
713
+ get formNoValidate() {
714
+ const esValue = this !== null && this !== undefined ? this : globalObject;
715
+
716
+ if (!exports.is(esValue)) {
717
+ throw new globalObject.TypeError(
718
+ "'get formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
719
+ );
720
+ }
721
+
722
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
723
+ try {
724
+ return esValue[implSymbol]._reflectGetTheContentAttribute("formnovalidate") !== null;
725
+ } finally {
726
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
727
+ }
728
+ }
729
+
730
+ set formNoValidate(V) {
731
+ const esValue = this !== null && this !== undefined ? this : globalObject;
732
+
733
+ if (!exports.is(esValue)) {
734
+ throw new globalObject.TypeError(
735
+ "'set formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
736
+ );
737
+ }
738
+
739
+ V = conversions["boolean"](V, {
740
+ context: "Failed to set the 'formNoValidate' property on 'HTMLInputElement': The provided value",
741
+ globals: globalObject
742
+ });
743
+
744
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
745
+ try {
746
+ if (V) {
747
+ esValue[implSymbol]._reflectSetTheContentAttribute("formnovalidate", "");
748
+ } else {
749
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("formnovalidate");
750
+ }
751
+ } finally {
752
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
753
+ }
754
+ }
755
+
756
+ get formTarget() {
757
+ const esValue = this !== null && this !== undefined ? this : globalObject;
758
+
759
+ if (!exports.is(esValue)) {
760
+ throw new globalObject.TypeError(
761
+ "'get formTarget' called on an object that is not a valid instance of HTMLInputElement."
762
+ );
763
+ }
764
+
765
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
766
+ try {
767
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("formtarget");
768
+ return value === null ? "" : value;
769
+ } finally {
770
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
771
+ }
772
+ }
773
+
774
+ set formTarget(V) {
775
+ const esValue = this !== null && this !== undefined ? this : globalObject;
776
+
777
+ if (!exports.is(esValue)) {
778
+ throw new globalObject.TypeError(
779
+ "'set formTarget' called on an object that is not a valid instance of HTMLInputElement."
780
+ );
781
+ }
782
+
783
+ V = conversions["DOMString"](V, {
784
+ context: "Failed to set the 'formTarget' property on 'HTMLInputElement': The provided value",
785
+ globals: globalObject
786
+ });
787
+
788
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
789
+ try {
790
+ esValue[implSymbol]._reflectSetTheContentAttribute("formtarget", V);
791
+ } finally {
792
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
793
+ }
794
+ }
795
+
796
+ get indeterminate() {
797
+ const esValue = this !== null && this !== undefined ? this : globalObject;
798
+
799
+ if (!exports.is(esValue)) {
800
+ throw new globalObject.TypeError(
801
+ "'get indeterminate' called on an object that is not a valid instance of HTMLInputElement."
802
+ );
803
+ }
804
+
805
+ return esValue[implSymbol]["indeterminate"];
806
+ }
807
+
808
+ set indeterminate(V) {
809
+ const esValue = this !== null && this !== undefined ? this : globalObject;
810
+
811
+ if (!exports.is(esValue)) {
812
+ throw new globalObject.TypeError(
813
+ "'set indeterminate' called on an object that is not a valid instance of HTMLInputElement."
814
+ );
815
+ }
816
+
817
+ V = conversions["boolean"](V, {
818
+ context: "Failed to set the 'indeterminate' property on 'HTMLInputElement': The provided value",
819
+ globals: globalObject
820
+ });
821
+
822
+ esValue[implSymbol]["indeterminate"] = V;
823
+ }
824
+
825
+ get inputMode() {
826
+ const esValue = this !== null && this !== undefined ? this : globalObject;
827
+
828
+ if (!exports.is(esValue)) {
829
+ throw new globalObject.TypeError(
830
+ "'get inputMode' called on an object that is not a valid instance of HTMLInputElement."
831
+ );
832
+ }
833
+
834
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
835
+ try {
836
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("inputmode");
837
+ return value === null ? "" : value;
838
+ } finally {
839
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
840
+ }
841
+ }
842
+
843
+ set inputMode(V) {
844
+ const esValue = this !== null && this !== undefined ? this : globalObject;
845
+
846
+ if (!exports.is(esValue)) {
847
+ throw new globalObject.TypeError(
848
+ "'set inputMode' called on an object that is not a valid instance of HTMLInputElement."
849
+ );
850
+ }
851
+
852
+ V = conversions["DOMString"](V, {
853
+ context: "Failed to set the 'inputMode' property on 'HTMLInputElement': The provided value",
854
+ globals: globalObject
855
+ });
856
+
857
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
858
+ try {
859
+ esValue[implSymbol]._reflectSetTheContentAttribute("inputmode", V);
860
+ } finally {
861
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
862
+ }
863
+ }
864
+
865
+ get list() {
866
+ const esValue = this !== null && this !== undefined ? this : globalObject;
867
+
868
+ if (!exports.is(esValue)) {
869
+ throw new globalObject.TypeError(
870
+ "'get list' called on an object that is not a valid instance of HTMLInputElement."
871
+ );
872
+ }
873
+
874
+ return utils.tryWrapperForImpl(esValue[implSymbol]["list"]);
875
+ }
876
+
877
+ get max() {
878
+ const esValue = this !== null && this !== undefined ? this : globalObject;
879
+
880
+ if (!exports.is(esValue)) {
881
+ throw new globalObject.TypeError(
882
+ "'get max' called on an object that is not a valid instance of HTMLInputElement."
883
+ );
884
+ }
885
+
886
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
887
+ try {
888
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("max");
889
+ return value === null ? "" : value;
890
+ } finally {
891
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
892
+ }
893
+ }
894
+
895
+ set max(V) {
896
+ const esValue = this !== null && this !== undefined ? this : globalObject;
897
+
898
+ if (!exports.is(esValue)) {
899
+ throw new globalObject.TypeError(
900
+ "'set max' called on an object that is not a valid instance of HTMLInputElement."
901
+ );
902
+ }
903
+
904
+ V = conversions["DOMString"](V, {
905
+ context: "Failed to set the 'max' property on 'HTMLInputElement': The provided value",
906
+ globals: globalObject
907
+ });
908
+
909
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
910
+ try {
911
+ esValue[implSymbol]._reflectSetTheContentAttribute("max", V);
912
+ } finally {
913
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
914
+ }
915
+ }
916
+
917
+ get maxLength() {
918
+ const esValue = this !== null && this !== undefined ? this : globalObject;
919
+
920
+ if (!exports.is(esValue)) {
921
+ throw new globalObject.TypeError(
922
+ "'get maxLength' called on an object that is not a valid instance of HTMLInputElement."
923
+ );
924
+ }
925
+
926
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
927
+ try {
928
+ let value = esValue[implSymbol]._reflectGetTheContentAttribute("maxlength");
929
+ if (value !== null) {
930
+ value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
931
+ if (value !== null && conversions.long(value) === value) {
932
+ return value;
933
+ }
934
+ }
935
+ return -1;
936
+ } finally {
937
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
938
+ }
939
+ }
940
+
941
+ set maxLength(V) {
942
+ const esValue = this !== null && this !== undefined ? this : globalObject;
943
+
944
+ if (!exports.is(esValue)) {
945
+ throw new globalObject.TypeError(
946
+ "'set maxLength' called on an object that is not a valid instance of HTMLInputElement."
947
+ );
948
+ }
949
+
950
+ V = conversions["long"](V, {
951
+ context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value",
952
+ globals: globalObject
953
+ });
954
+
955
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
956
+ try {
957
+ if (V < 0) {
958
+ throw create_DOMException(globalObject, [
959
+ `The negative value ${V} cannot be set for the maxLength property.`,
960
+ "IndexSizeError"
961
+ ]);
962
+ }
963
+
964
+ esValue[implSymbol]._reflectSetTheContentAttribute("maxlength", String(V));
965
+ } finally {
966
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
967
+ }
968
+ }
969
+
970
+ get min() {
971
+ const esValue = this !== null && this !== undefined ? this : globalObject;
972
+
973
+ if (!exports.is(esValue)) {
974
+ throw new globalObject.TypeError(
975
+ "'get min' called on an object that is not a valid instance of HTMLInputElement."
976
+ );
977
+ }
978
+
979
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
980
+ try {
981
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("min");
982
+ return value === null ? "" : value;
983
+ } finally {
984
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
985
+ }
986
+ }
987
+
988
+ set min(V) {
989
+ const esValue = this !== null && this !== undefined ? this : globalObject;
990
+
991
+ if (!exports.is(esValue)) {
992
+ throw new globalObject.TypeError(
993
+ "'set min' called on an object that is not a valid instance of HTMLInputElement."
994
+ );
995
+ }
996
+
997
+ V = conversions["DOMString"](V, {
998
+ context: "Failed to set the 'min' property on 'HTMLInputElement': The provided value",
999
+ globals: globalObject
1000
+ });
1001
+
1002
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1003
+ try {
1004
+ esValue[implSymbol]._reflectSetTheContentAttribute("min", V);
1005
+ } finally {
1006
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1007
+ }
1008
+ }
1009
+
1010
+ get minLength() {
1011
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1012
+
1013
+ if (!exports.is(esValue)) {
1014
+ throw new globalObject.TypeError(
1015
+ "'get minLength' called on an object that is not a valid instance of HTMLInputElement."
1016
+ );
1017
+ }
1018
+
1019
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1020
+ try {
1021
+ let value = esValue[implSymbol]._reflectGetTheContentAttribute("minlength");
1022
+ if (value !== null) {
1023
+ value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
1024
+ if (value !== null && conversions.long(value) === value) {
1025
+ return value;
1026
+ }
1027
+ }
1028
+ return -1;
1029
+ } finally {
1030
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1031
+ }
1032
+ }
1033
+
1034
+ set minLength(V) {
1035
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1036
+
1037
+ if (!exports.is(esValue)) {
1038
+ throw new globalObject.TypeError(
1039
+ "'set minLength' called on an object that is not a valid instance of HTMLInputElement."
1040
+ );
1041
+ }
1042
+
1043
+ V = conversions["long"](V, {
1044
+ context: "Failed to set the 'minLength' property on 'HTMLInputElement': The provided value",
1045
+ globals: globalObject
1046
+ });
1047
+
1048
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1049
+ try {
1050
+ if (V < 0) {
1051
+ throw create_DOMException(globalObject, [
1052
+ `The negative value ${V} cannot be set for the minLength property.`,
1053
+ "IndexSizeError"
1054
+ ]);
1055
+ }
1056
+
1057
+ esValue[implSymbol]._reflectSetTheContentAttribute("minlength", String(V));
1058
+ } finally {
1059
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1060
+ }
1061
+ }
1062
+
1063
+ get multiple() {
1064
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1065
+
1066
+ if (!exports.is(esValue)) {
1067
+ throw new globalObject.TypeError(
1068
+ "'get multiple' called on an object that is not a valid instance of HTMLInputElement."
1069
+ );
1070
+ }
1071
+
1072
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1073
+ try {
1074
+ return esValue[implSymbol]._reflectGetTheContentAttribute("multiple") !== null;
1075
+ } finally {
1076
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1077
+ }
1078
+ }
1079
+
1080
+ set multiple(V) {
1081
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1082
+
1083
+ if (!exports.is(esValue)) {
1084
+ throw new globalObject.TypeError(
1085
+ "'set multiple' called on an object that is not a valid instance of HTMLInputElement."
1086
+ );
1087
+ }
1088
+
1089
+ V = conversions["boolean"](V, {
1090
+ context: "Failed to set the 'multiple' property on 'HTMLInputElement': The provided value",
1091
+ globals: globalObject
1092
+ });
1093
+
1094
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1095
+ try {
1096
+ if (V) {
1097
+ esValue[implSymbol]._reflectSetTheContentAttribute("multiple", "");
1098
+ } else {
1099
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("multiple");
1100
+ }
1101
+ } finally {
1102
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1103
+ }
1104
+ }
1105
+
1106
+ get name() {
1107
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1108
+
1109
+ if (!exports.is(esValue)) {
1110
+ throw new globalObject.TypeError(
1111
+ "'get name' called on an object that is not a valid instance of HTMLInputElement."
1112
+ );
1113
+ }
1114
+
1115
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1116
+ try {
1117
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("name");
1118
+ return value === null ? "" : value;
1119
+ } finally {
1120
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1121
+ }
1122
+ }
1123
+
1124
+ set name(V) {
1125
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1126
+
1127
+ if (!exports.is(esValue)) {
1128
+ throw new globalObject.TypeError(
1129
+ "'set name' called on an object that is not a valid instance of HTMLInputElement."
1130
+ );
1131
+ }
1132
+
1133
+ V = conversions["DOMString"](V, {
1134
+ context: "Failed to set the 'name' property on 'HTMLInputElement': The provided value",
1135
+ globals: globalObject
1136
+ });
1137
+
1138
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1139
+ try {
1140
+ esValue[implSymbol]._reflectSetTheContentAttribute("name", V);
1141
+ } finally {
1142
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1143
+ }
1144
+ }
1145
+
1146
+ get pattern() {
1147
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1148
+
1149
+ if (!exports.is(esValue)) {
1150
+ throw new globalObject.TypeError(
1151
+ "'get pattern' called on an object that is not a valid instance of HTMLInputElement."
1152
+ );
1153
+ }
1154
+
1155
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1156
+ try {
1157
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("pattern");
1158
+ return value === null ? "" : value;
1159
+ } finally {
1160
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1161
+ }
1162
+ }
1163
+
1164
+ set pattern(V) {
1165
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1166
+
1167
+ if (!exports.is(esValue)) {
1168
+ throw new globalObject.TypeError(
1169
+ "'set pattern' called on an object that is not a valid instance of HTMLInputElement."
1170
+ );
1171
+ }
1172
+
1173
+ V = conversions["DOMString"](V, {
1174
+ context: "Failed to set the 'pattern' property on 'HTMLInputElement': The provided value",
1175
+ globals: globalObject
1176
+ });
1177
+
1178
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1179
+ try {
1180
+ esValue[implSymbol]._reflectSetTheContentAttribute("pattern", V);
1181
+ } finally {
1182
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1183
+ }
1184
+ }
1185
+
1186
+ get placeholder() {
1187
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1188
+
1189
+ if (!exports.is(esValue)) {
1190
+ throw new globalObject.TypeError(
1191
+ "'get placeholder' called on an object that is not a valid instance of HTMLInputElement."
1192
+ );
1193
+ }
1194
+
1195
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1196
+ try {
1197
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("placeholder");
1198
+ return value === null ? "" : value;
1199
+ } finally {
1200
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1201
+ }
1202
+ }
1203
+
1204
+ set placeholder(V) {
1205
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1206
+
1207
+ if (!exports.is(esValue)) {
1208
+ throw new globalObject.TypeError(
1209
+ "'set placeholder' called on an object that is not a valid instance of HTMLInputElement."
1210
+ );
1211
+ }
1212
+
1213
+ V = conversions["DOMString"](V, {
1214
+ context: "Failed to set the 'placeholder' property on 'HTMLInputElement': The provided value",
1215
+ globals: globalObject
1216
+ });
1217
+
1218
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1219
+ try {
1220
+ esValue[implSymbol]._reflectSetTheContentAttribute("placeholder", V);
1221
+ } finally {
1222
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1223
+ }
1224
+ }
1225
+
1226
+ get readOnly() {
1227
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1228
+
1229
+ if (!exports.is(esValue)) {
1230
+ throw new globalObject.TypeError(
1231
+ "'get readOnly' called on an object that is not a valid instance of HTMLInputElement."
1232
+ );
1233
+ }
1234
+
1235
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1236
+ try {
1237
+ return esValue[implSymbol]._reflectGetTheContentAttribute("readonly") !== null;
1238
+ } finally {
1239
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1240
+ }
1241
+ }
1242
+
1243
+ set readOnly(V) {
1244
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1245
+
1246
+ if (!exports.is(esValue)) {
1247
+ throw new globalObject.TypeError(
1248
+ "'set readOnly' called on an object that is not a valid instance of HTMLInputElement."
1249
+ );
1250
+ }
1251
+
1252
+ V = conversions["boolean"](V, {
1253
+ context: "Failed to set the 'readOnly' property on 'HTMLInputElement': The provided value",
1254
+ globals: globalObject
1255
+ });
1256
+
1257
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1258
+ try {
1259
+ if (V) {
1260
+ esValue[implSymbol]._reflectSetTheContentAttribute("readonly", "");
1261
+ } else {
1262
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("readonly");
1263
+ }
1264
+ } finally {
1265
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1266
+ }
1267
+ }
1268
+
1269
+ get required() {
1270
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1271
+
1272
+ if (!exports.is(esValue)) {
1273
+ throw new globalObject.TypeError(
1274
+ "'get required' called on an object that is not a valid instance of HTMLInputElement."
1275
+ );
1276
+ }
1277
+
1278
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1279
+ try {
1280
+ return esValue[implSymbol]._reflectGetTheContentAttribute("required") !== null;
1281
+ } finally {
1282
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1283
+ }
1284
+ }
1285
+
1286
+ set required(V) {
1287
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1288
+
1289
+ if (!exports.is(esValue)) {
1290
+ throw new globalObject.TypeError(
1291
+ "'set required' called on an object that is not a valid instance of HTMLInputElement."
1292
+ );
1293
+ }
1294
+
1295
+ V = conversions["boolean"](V, {
1296
+ context: "Failed to set the 'required' property on 'HTMLInputElement': The provided value",
1297
+ globals: globalObject
1298
+ });
1299
+
1300
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1301
+ try {
1302
+ if (V) {
1303
+ esValue[implSymbol]._reflectSetTheContentAttribute("required", "");
1304
+ } else {
1305
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("required");
1306
+ }
1307
+ } finally {
1308
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1309
+ }
1310
+ }
1311
+
1312
+ get size() {
1313
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1314
+
1315
+ if (!exports.is(esValue)) {
1316
+ throw new globalObject.TypeError(
1317
+ "'get size' called on an object that is not a valid instance of HTMLInputElement."
1318
+ );
1319
+ }
1320
+
1321
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1322
+ try {
1323
+ let value = esValue[implSymbol]._reflectGetTheContentAttribute("size");
1324
+ if (value !== null) {
1325
+ value = parseNonNegativeInteger_jsdom_living_helpers_strings(value);
1326
+ if (value !== null && value >= 1 && value <= 2147483647) {
1327
+ return value;
1328
+ }
1329
+ }
1330
+ return 20;
1331
+ } finally {
1332
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1333
+ }
1334
+ }
1335
+
1336
+ set size(V) {
1337
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1338
+
1339
+ if (!exports.is(esValue)) {
1340
+ throw new globalObject.TypeError(
1341
+ "'set size' called on an object that is not a valid instance of HTMLInputElement."
1342
+ );
1343
+ }
1344
+
1345
+ V = conversions["unsigned long"](V, {
1346
+ context: "Failed to set the 'size' property on 'HTMLInputElement': The provided value",
1347
+ globals: globalObject
1348
+ });
1349
+
1350
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1351
+ try {
1352
+ if (V === 0) {
1353
+ throw create_DOMException(globalObject, [
1354
+ `The value ${V} cannot be set for the size property.`,
1355
+ "IndexSizeError"
1356
+ ]);
1357
+ }
1358
+
1359
+ const newValue = V <= 2147483647 && V >= 1 ? V : 20;
1360
+ esValue[implSymbol]._reflectSetTheContentAttribute("size", String(newValue));
1361
+ } finally {
1362
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1363
+ }
1364
+ }
1365
+
1366
+ get src() {
1367
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1368
+
1369
+ if (!exports.is(esValue)) {
1370
+ throw new globalObject.TypeError(
1371
+ "'get src' called on an object that is not a valid instance of HTMLInputElement."
1372
+ );
1373
+ }
1374
+
1375
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1376
+ try {
1377
+ const impl = esValue[implSymbol];
1378
+ const value = impl._reflectGetTheContentAttribute("src");
1379
+ if (value === null) {
1380
+ return "";
1381
+ }
1382
+
1383
+ const document = impl._ownerDocument;
1384
+ if (this._srcURLCacheKey === value && this._baseURLCache === document._baseURLCache) {
1385
+ return this._srcURLCache;
1386
+ }
1387
+
1388
+ this._srcURLCacheKey = value;
1389
+ this._baseURLCache = document._baseURLCache;
1390
+
1391
+ const urlRecord = document.encodingParseAURL(value);
1392
+ if (urlRecord !== null) {
1393
+ this._srcURLCache = serializeURLwhatwg_url(urlRecord);
1394
+ return this._srcURLCache;
1395
+ }
1396
+ this._srcURLCache = conversions.USVString(value);
1397
+ return this._srcURLCache;
1398
+ } finally {
1399
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1400
+ }
1401
+ }
1402
+
1403
+ set src(V) {
1404
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1405
+
1406
+ if (!exports.is(esValue)) {
1407
+ throw new globalObject.TypeError(
1408
+ "'set src' called on an object that is not a valid instance of HTMLInputElement."
1409
+ );
1410
+ }
1411
+
1412
+ V = conversions["USVString"](V, {
1413
+ context: "Failed to set the 'src' property on 'HTMLInputElement': The provided value",
1414
+ globals: globalObject
1415
+ });
1416
+
1417
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1418
+ try {
1419
+ esValue[implSymbol]._reflectSetTheContentAttribute("src", V);
1420
+ } finally {
1421
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1422
+ }
1423
+ }
1424
+
1425
+ get step() {
1426
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1427
+
1428
+ if (!exports.is(esValue)) {
1429
+ throw new globalObject.TypeError(
1430
+ "'get step' called on an object that is not a valid instance of HTMLInputElement."
1431
+ );
1432
+ }
1433
+
1434
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1435
+ try {
1436
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("step");
1437
+ return value === null ? "" : value;
1438
+ } finally {
1439
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1440
+ }
1441
+ }
1442
+
1443
+ set step(V) {
1444
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1445
+
1446
+ if (!exports.is(esValue)) {
1447
+ throw new globalObject.TypeError(
1448
+ "'set step' called on an object that is not a valid instance of HTMLInputElement."
1449
+ );
1450
+ }
1451
+
1452
+ V = conversions["DOMString"](V, {
1453
+ context: "Failed to set the 'step' property on 'HTMLInputElement': The provided value",
1454
+ globals: globalObject
1455
+ });
1456
+
1457
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1458
+ try {
1459
+ esValue[implSymbol]._reflectSetTheContentAttribute("step", V);
1460
+ } finally {
1461
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1462
+ }
1463
+ }
1464
+
1465
+ get type() {
1466
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1467
+
1468
+ if (!exports.is(esValue)) {
1469
+ throw new globalObject.TypeError(
1470
+ "'get type' called on an object that is not a valid instance of HTMLInputElement."
1471
+ );
1472
+ }
1473
+
1474
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1475
+ try {
1476
+ return esValue[implSymbol]["type"];
1477
+ } finally {
1478
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1479
+ }
1480
+ }
1481
+
1482
+ set type(V) {
1483
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1484
+
1485
+ if (!exports.is(esValue)) {
1486
+ throw new globalObject.TypeError(
1487
+ "'set type' called on an object that is not a valid instance of HTMLInputElement."
1488
+ );
1489
+ }
1490
+
1491
+ V = conversions["DOMString"](V, {
1492
+ context: "Failed to set the 'type' property on 'HTMLInputElement': The provided value",
1493
+ globals: globalObject
1494
+ });
1495
+
1496
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1497
+ try {
1498
+ esValue[implSymbol]["type"] = V;
1499
+ } finally {
1500
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1501
+ }
1502
+ }
1503
+
1504
+ get defaultValue() {
1505
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1506
+
1507
+ if (!exports.is(esValue)) {
1508
+ throw new globalObject.TypeError(
1509
+ "'get defaultValue' called on an object that is not a valid instance of HTMLInputElement."
1510
+ );
1511
+ }
1512
+
1513
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1514
+ try {
1515
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("value");
1516
+ return value === null ? "" : value;
1517
+ } finally {
1518
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1519
+ }
1520
+ }
1521
+
1522
+ set defaultValue(V) {
1523
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1524
+
1525
+ if (!exports.is(esValue)) {
1526
+ throw new globalObject.TypeError(
1527
+ "'set defaultValue' called on an object that is not a valid instance of HTMLInputElement."
1528
+ );
1529
+ }
1530
+
1531
+ V = conversions["DOMString"](V, {
1532
+ context: "Failed to set the 'defaultValue' property on 'HTMLInputElement': The provided value",
1533
+ globals: globalObject
1534
+ });
1535
+
1536
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1537
+ try {
1538
+ esValue[implSymbol]._reflectSetTheContentAttribute("value", V);
1539
+ } finally {
1540
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1541
+ }
1542
+ }
1543
+
1544
+ get value() {
1545
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1546
+
1547
+ if (!exports.is(esValue)) {
1548
+ throw new globalObject.TypeError(
1549
+ "'get value' called on an object that is not a valid instance of HTMLInputElement."
1550
+ );
1551
+ }
1552
+
1553
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1554
+ try {
1555
+ return esValue[implSymbol]["value"];
1556
+ } finally {
1557
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1558
+ }
1559
+ }
1560
+
1561
+ set value(V) {
1562
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1563
+
1564
+ if (!exports.is(esValue)) {
1565
+ throw new globalObject.TypeError(
1566
+ "'set value' called on an object that is not a valid instance of HTMLInputElement."
1567
+ );
1568
+ }
1569
+
1570
+ V = conversions["DOMString"](V, {
1571
+ context: "Failed to set the 'value' property on 'HTMLInputElement': The provided value",
1572
+ globals: globalObject,
1573
+ treatNullAsEmptyString: true
1574
+ });
1575
+
1576
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1577
+ try {
1578
+ esValue[implSymbol]["value"] = V;
1579
+ } finally {
1580
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1581
+ }
1582
+ }
1583
+
1584
+ get valueAsDate() {
1585
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1586
+
1587
+ if (!exports.is(esValue)) {
1588
+ throw new globalObject.TypeError(
1589
+ "'get valueAsDate' called on an object that is not a valid instance of HTMLInputElement."
1590
+ );
1591
+ }
1592
+
1593
+ return esValue[implSymbol]["valueAsDate"];
1594
+ }
1595
+
1596
+ set valueAsDate(V) {
1597
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1598
+
1599
+ if (!exports.is(esValue)) {
1600
+ throw new globalObject.TypeError(
1601
+ "'set valueAsDate' called on an object that is not a valid instance of HTMLInputElement."
1602
+ );
1603
+ }
1604
+
1605
+ if (V === null || V === undefined) {
1606
+ V = null;
1607
+ } else {
1608
+ V = conversions["object"](V, {
1609
+ context: "Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value",
1610
+ globals: globalObject
1611
+ });
1612
+ }
1613
+ esValue[implSymbol]["valueAsDate"] = V;
1614
+ }
1615
+
1616
+ get valueAsNumber() {
1617
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1618
+
1619
+ if (!exports.is(esValue)) {
1620
+ throw new globalObject.TypeError(
1621
+ "'get valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
1622
+ );
1623
+ }
1624
+
1625
+ return esValue[implSymbol]["valueAsNumber"];
1626
+ }
1627
+
1628
+ set valueAsNumber(V) {
1629
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1630
+
1631
+ if (!exports.is(esValue)) {
1632
+ throw new globalObject.TypeError(
1633
+ "'set valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
1634
+ );
1635
+ }
1636
+
1637
+ V = conversions["unrestricted double"](V, {
1638
+ context: "Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The provided value",
1639
+ globals: globalObject
1640
+ });
1641
+
1642
+ esValue[implSymbol]["valueAsNumber"] = V;
1643
+ }
1644
+
1645
+ get willValidate() {
1646
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1647
+
1648
+ if (!exports.is(esValue)) {
1649
+ throw new globalObject.TypeError(
1650
+ "'get willValidate' called on an object that is not a valid instance of HTMLInputElement."
1651
+ );
1652
+ }
1653
+
1654
+ return esValue[implSymbol]["willValidate"];
1655
+ }
1656
+
1657
+ get validity() {
1658
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1659
+
1660
+ if (!exports.is(esValue)) {
1661
+ throw new globalObject.TypeError(
1662
+ "'get validity' called on an object that is not a valid instance of HTMLInputElement."
1663
+ );
1664
+ }
1665
+
1666
+ return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
1667
+ }
1668
+
1669
+ get validationMessage() {
1670
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1671
+
1672
+ if (!exports.is(esValue)) {
1673
+ throw new globalObject.TypeError(
1674
+ "'get validationMessage' called on an object that is not a valid instance of HTMLInputElement."
1675
+ );
1676
+ }
1677
+
1678
+ return esValue[implSymbol]["validationMessage"];
1679
+ }
1680
+
1681
+ get labels() {
1682
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1683
+
1684
+ if (!exports.is(esValue)) {
1685
+ throw new globalObject.TypeError(
1686
+ "'get labels' called on an object that is not a valid instance of HTMLInputElement."
1687
+ );
1688
+ }
1689
+
1690
+ return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
1691
+ }
1692
+
1693
+ get selectionStart() {
1694
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1695
+
1696
+ if (!exports.is(esValue)) {
1697
+ throw new globalObject.TypeError(
1698
+ "'get selectionStart' called on an object that is not a valid instance of HTMLInputElement."
1699
+ );
1700
+ }
1701
+
1702
+ return esValue[implSymbol]["selectionStart"];
1703
+ }
1704
+
1705
+ set selectionStart(V) {
1706
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1707
+
1708
+ if (!exports.is(esValue)) {
1709
+ throw new globalObject.TypeError(
1710
+ "'set selectionStart' called on an object that is not a valid instance of HTMLInputElement."
1711
+ );
1712
+ }
1713
+
1714
+ if (V === null || V === undefined) {
1715
+ V = null;
1716
+ } else {
1717
+ V = conversions["unsigned long"](V, {
1718
+ context: "Failed to set the 'selectionStart' property on 'HTMLInputElement': The provided value",
1719
+ globals: globalObject
1720
+ });
1721
+ }
1722
+ esValue[implSymbol]["selectionStart"] = V;
1723
+ }
1724
+
1725
+ get selectionEnd() {
1726
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1727
+
1728
+ if (!exports.is(esValue)) {
1729
+ throw new globalObject.TypeError(
1730
+ "'get selectionEnd' called on an object that is not a valid instance of HTMLInputElement."
1731
+ );
1732
+ }
1733
+
1734
+ return esValue[implSymbol]["selectionEnd"];
1735
+ }
1736
+
1737
+ set selectionEnd(V) {
1738
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1739
+
1740
+ if (!exports.is(esValue)) {
1741
+ throw new globalObject.TypeError(
1742
+ "'set selectionEnd' called on an object that is not a valid instance of HTMLInputElement."
1743
+ );
1744
+ }
1745
+
1746
+ if (V === null || V === undefined) {
1747
+ V = null;
1748
+ } else {
1749
+ V = conversions["unsigned long"](V, {
1750
+ context: "Failed to set the 'selectionEnd' property on 'HTMLInputElement': The provided value",
1751
+ globals: globalObject
1752
+ });
1753
+ }
1754
+ esValue[implSymbol]["selectionEnd"] = V;
1755
+ }
1756
+
1757
+ get selectionDirection() {
1758
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1759
+
1760
+ if (!exports.is(esValue)) {
1761
+ throw new globalObject.TypeError(
1762
+ "'get selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
1763
+ );
1764
+ }
1765
+
1766
+ return esValue[implSymbol]["selectionDirection"];
1767
+ }
1768
+
1769
+ set selectionDirection(V) {
1770
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1771
+
1772
+ if (!exports.is(esValue)) {
1773
+ throw new globalObject.TypeError(
1774
+ "'set selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
1775
+ );
1776
+ }
1777
+
1778
+ if (V === null || V === undefined) {
1779
+ V = null;
1780
+ } else {
1781
+ V = conversions["DOMString"](V, {
1782
+ context: "Failed to set the 'selectionDirection' property on 'HTMLInputElement': The provided value",
1783
+ globals: globalObject
1784
+ });
1785
+ }
1786
+ esValue[implSymbol]["selectionDirection"] = V;
1787
+ }
1788
+
1789
+ get align() {
1790
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1791
+
1792
+ if (!exports.is(esValue)) {
1793
+ throw new globalObject.TypeError(
1794
+ "'get align' called on an object that is not a valid instance of HTMLInputElement."
1795
+ );
1796
+ }
1797
+
1798
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1799
+ try {
1800
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("align");
1801
+ return value === null ? "" : value;
1802
+ } finally {
1803
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1804
+ }
1805
+ }
1806
+
1807
+ set align(V) {
1808
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1809
+
1810
+ if (!exports.is(esValue)) {
1811
+ throw new globalObject.TypeError(
1812
+ "'set align' called on an object that is not a valid instance of HTMLInputElement."
1813
+ );
1814
+ }
1815
+
1816
+ V = conversions["DOMString"](V, {
1817
+ context: "Failed to set the 'align' property on 'HTMLInputElement': The provided value",
1818
+ globals: globalObject
1819
+ });
1820
+
1821
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1822
+ try {
1823
+ esValue[implSymbol]._reflectSetTheContentAttribute("align", V);
1824
+ } finally {
1825
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1826
+ }
1827
+ }
1828
+
1829
+ get useMap() {
1830
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1831
+
1832
+ if (!exports.is(esValue)) {
1833
+ throw new globalObject.TypeError(
1834
+ "'get useMap' called on an object that is not a valid instance of HTMLInputElement."
1835
+ );
1836
+ }
1837
+
1838
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1839
+ try {
1840
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("usemap");
1841
+ return value === null ? "" : value;
1842
+ } finally {
1843
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1844
+ }
1845
+ }
1846
+
1847
+ set useMap(V) {
1848
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1849
+
1850
+ if (!exports.is(esValue)) {
1851
+ throw new globalObject.TypeError(
1852
+ "'set useMap' called on an object that is not a valid instance of HTMLInputElement."
1853
+ );
1854
+ }
1855
+
1856
+ V = conversions["DOMString"](V, {
1857
+ context: "Failed to set the 'useMap' property on 'HTMLInputElement': The provided value",
1858
+ globals: globalObject
1859
+ });
1860
+
1861
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1862
+ try {
1863
+ esValue[implSymbol]._reflectSetTheContentAttribute("usemap", V);
1864
+ } finally {
1865
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1866
+ }
1867
+ }
1868
+ }
1869
+ Object.defineProperties(HTMLInputElement.prototype, {
1870
+ stepUp: { enumerable: true },
1871
+ stepDown: { enumerable: true },
1872
+ checkValidity: { enumerable: true },
1873
+ reportValidity: { enumerable: true },
1874
+ setCustomValidity: { enumerable: true },
1875
+ select: { enumerable: true },
1876
+ setRangeText: { enumerable: true },
1877
+ setSelectionRange: { enumerable: true },
1878
+ accept: { enumerable: true },
1879
+ alt: { enumerable: true },
1880
+ autocomplete: { enumerable: true },
1881
+ autofocus: { enumerable: true },
1882
+ defaultChecked: { enumerable: true },
1883
+ checked: { enumerable: true },
1884
+ dirName: { enumerable: true },
1885
+ disabled: { enumerable: true },
1886
+ form: { enumerable: true },
1887
+ files: { enumerable: true },
1888
+ formNoValidate: { enumerable: true },
1889
+ formTarget: { enumerable: true },
1890
+ indeterminate: { enumerable: true },
1891
+ inputMode: { enumerable: true },
1892
+ list: { enumerable: true },
1893
+ max: { enumerable: true },
1894
+ maxLength: { enumerable: true },
1895
+ min: { enumerable: true },
1896
+ minLength: { enumerable: true },
1897
+ multiple: { enumerable: true },
1898
+ name: { enumerable: true },
1899
+ pattern: { enumerable: true },
1900
+ placeholder: { enumerable: true },
1901
+ readOnly: { enumerable: true },
1902
+ required: { enumerable: true },
1903
+ size: { enumerable: true },
1904
+ src: { enumerable: true },
1905
+ step: { enumerable: true },
1906
+ type: { enumerable: true },
1907
+ defaultValue: { enumerable: true },
1908
+ value: { enumerable: true },
1909
+ valueAsDate: { enumerable: true },
1910
+ valueAsNumber: { enumerable: true },
1911
+ willValidate: { enumerable: true },
1912
+ validity: { enumerable: true },
1913
+ validationMessage: { enumerable: true },
1914
+ labels: { enumerable: true },
1915
+ selectionStart: { enumerable: true },
1916
+ selectionEnd: { enumerable: true },
1917
+ selectionDirection: { enumerable: true },
1918
+ align: { enumerable: true },
1919
+ useMap: { enumerable: true },
1920
+ [Symbol.toStringTag]: { value: "HTMLInputElement", configurable: true }
1921
+ });
1922
+ ctorRegistry[interfaceName] = HTMLInputElement;
1923
+
1924
+ Object.defineProperty(globalObject, interfaceName, {
1925
+ configurable: true,
1926
+ writable: true,
1927
+ value: HTMLInputElement
1928
+ });
1929
+ };
1930
+
1931
+ const Impl = require("../../jsdom/living/nodes/HTMLInputElement-impl.js");