@depup/jsdom 30.1.1-depup.2 → 30.1.2-depup.0

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 (222) hide show
  1. package/README.md +3 -14
  2. package/changes.json +3 -28
  3. package/lib/generated/css-property-definitions.js +1130 -10853
  4. package/lib/generated/css-property-descriptors.js +28 -28
  5. package/lib/generated/css-property-metadata.js +864 -7813
  6. package/lib/generated/idl/AbortController.js +6 -13
  7. package/lib/generated/idl/AbortSignal.js +9 -34
  8. package/lib/generated/idl/AbstractRange.js +9 -35
  9. package/lib/generated/idl/Attr.js +12 -42
  10. package/lib/generated/idl/BarProp.js +5 -5
  11. package/lib/generated/idl/BeforeUnloadEvent.js +6 -13
  12. package/lib/generated/idl/Blob.js +10 -29
  13. package/lib/generated/idl/BlobEvent.js +6 -12
  14. package/lib/generated/idl/CSSConditionRule.js +5 -7
  15. package/lib/generated/idl/CSSContainerRule.js +6 -14
  16. package/lib/generated/idl/CSSCounterStyleRule.js +26 -143
  17. package/lib/generated/idl/CSSFontFaceRule.js +6 -14
  18. package/lib/generated/idl/CSSGroupingRule.js +7 -21
  19. package/lib/generated/idl/CSSImportRule.js +10 -42
  20. package/lib/generated/idl/CSSKeyframeRule.js +8 -27
  21. package/lib/generated/idl/CSSKeyframesRule.js +11 -48
  22. package/lib/generated/idl/CSSLayerBlockRule.js +5 -7
  23. package/lib/generated/idl/CSSLayerStatementRule.js +5 -7
  24. package/lib/generated/idl/CSSMediaRule.js +7 -21
  25. package/lib/generated/idl/CSSNamespaceRule.js +6 -14
  26. package/lib/generated/idl/CSSNestedDeclarations.js +6 -14
  27. package/lib/generated/idl/CSSPageRule.js +8 -27
  28. package/lib/generated/idl/CSSRule.js +9 -28
  29. package/lib/generated/idl/CSSRuleList.js +6 -12
  30. package/lib/generated/idl/CSSScopeRule.js +6 -12
  31. package/lib/generated/idl/CSSStyleDeclaration.js +13 -61
  32. package/lib/generated/idl/CSSStyleProperties.js +3282 -19668
  33. package/lib/generated/idl/CSSStyleRule.js +8 -27
  34. package/lib/generated/idl/CSSStyleSheet.js +13 -61
  35. package/lib/generated/idl/CSSSupportsRule.js +5 -7
  36. package/lib/generated/idl/CharacterData.js +18 -88
  37. package/lib/generated/idl/CloseEvent.js +7 -19
  38. package/lib/generated/idl/CompositionEvent.js +6 -14
  39. package/lib/generated/idl/Crypto.js +6 -12
  40. package/lib/generated/idl/CustomElementRegistry.js +9 -35
  41. package/lib/generated/idl/CustomEvent.js +6 -14
  42. package/lib/generated/idl/DOMException.js +7 -21
  43. package/lib/generated/idl/DOMImplementation.js +8 -27
  44. package/lib/generated/idl/DOMParser.js +5 -7
  45. package/lib/generated/idl/DOMRect.js +12 -36
  46. package/lib/generated/idl/DOMRectReadOnly.js +13 -63
  47. package/lib/generated/idl/DOMTokenList.js +15 -62
  48. package/lib/generated/idl/DeviceMotionEvent.js +8 -28
  49. package/lib/generated/idl/DeviceMotionEventAcceleration.js +7 -21
  50. package/lib/generated/idl/DeviceMotionEventRotationRate.js +7 -21
  51. package/lib/generated/idl/DeviceOrientationEvent.js +8 -28
  52. package/lib/generated/idl/Document.js +258 -1534
  53. package/lib/generated/idl/DocumentFragment.js +14 -67
  54. package/lib/generated/idl/DocumentType.js +11 -40
  55. package/lib/generated/idl/Element.js +160 -936
  56. package/lib/generated/idl/ElementInternals.js +90 -518
  57. package/lib/generated/idl/ErrorEvent.js +9 -31
  58. package/lib/generated/idl/Event.js +24 -116
  59. package/lib/generated/idl/EventTarget.js +7 -21
  60. package/lib/generated/idl/External.js +6 -14
  61. package/lib/generated/idl/File.js +6 -12
  62. package/lib/generated/idl/FileList.js +6 -10
  63. package/lib/generated/idl/FileReader.js +24 -130
  64. package/lib/generated/idl/FocusEvent.js +5 -7
  65. package/lib/generated/idl/FormData.js +14 -50
  66. package/lib/generated/idl/HTMLAnchorElement.js +50 -279
  67. package/lib/generated/idl/HTMLAreaElement.js +40 -219
  68. package/lib/generated/idl/HTMLBRElement.js +6 -12
  69. package/lib/generated/idl/HTMLBaseElement.js +8 -24
  70. package/lib/generated/idl/HTMLBodyElement.js +48 -280
  71. package/lib/generated/idl/HTMLButtonElement.js +26 -140
  72. package/lib/generated/idl/HTMLCanvasElement.js +11 -44
  73. package/lib/generated/idl/HTMLCollection.js +7 -19
  74. package/lib/generated/idl/HTMLDListElement.js +6 -12
  75. package/lib/generated/idl/HTMLDataElement.js +6 -12
  76. package/lib/generated/idl/HTMLDataListElement.js +5 -7
  77. package/lib/generated/idl/HTMLDetailsElement.js +6 -12
  78. package/lib/generated/idl/HTMLDialogElement.js +6 -12
  79. package/lib/generated/idl/HTMLDirectoryElement.js +6 -12
  80. package/lib/generated/idl/HTMLDivElement.js +6 -12
  81. package/lib/generated/idl/HTMLElement.js +210 -1322
  82. package/lib/generated/idl/HTMLEmbedElement.js +16 -72
  83. package/lib/generated/idl/HTMLFieldSetElement.js +17 -87
  84. package/lib/generated/idl/HTMLFontElement.js +10 -36
  85. package/lib/generated/idl/HTMLFormControlsCollection.js +5 -7
  86. package/lib/generated/idl/HTMLFormElement.js +25 -132
  87. package/lib/generated/idl/HTMLFrameElement.js +22 -110
  88. package/lib/generated/idl/HTMLFrameSetElement.js +40 -232
  89. package/lib/generated/idl/HTMLHRElement.js +14 -60
  90. package/lib/generated/idl/HTMLHeadingElement.js +6 -12
  91. package/lib/generated/idl/HTMLHtmlElement.js +6 -12
  92. package/lib/generated/idl/HTMLIFrameElement.js +31 -165
  93. package/lib/generated/idl/HTMLImageElement.js +40 -220
  94. package/lib/generated/idl/HTMLInputElement.js +90 -536
  95. package/lib/generated/idl/HTMLLIElement.js +8 -24
  96. package/lib/generated/idl/HTMLLabelElement.js +8 -26
  97. package/lib/generated/idl/HTMLLegendElement.js +7 -19
  98. package/lib/generated/idl/HTMLLinkElement.js +25 -129
  99. package/lib/generated/idl/HTMLMapElement.js +7 -19
  100. package/lib/generated/idl/HTMLMarqueeElement.js +24 -120
  101. package/lib/generated/idl/HTMLMediaElement.js +46 -275
  102. package/lib/generated/idl/HTMLMenuElement.js +6 -12
  103. package/lib/generated/idl/HTMLMetaElement.js +12 -48
  104. package/lib/generated/idl/HTMLMeterElement.js +17 -79
  105. package/lib/generated/idl/HTMLModElement.js +8 -24
  106. package/lib/generated/idl/HTMLOListElement.js +12 -48
  107. package/lib/generated/idl/HTMLObjectElement.js +44 -248
  108. package/lib/generated/idl/HTMLOptGroupElement.js +8 -24
  109. package/lib/generated/idl/HTMLOptionElement.js +18 -87
  110. package/lib/generated/idl/HTMLOptionsCollection.js +10 -39
  111. package/lib/generated/idl/HTMLOutputElement.js +21 -113
  112. package/lib/generated/idl/HTMLParagraphElement.js +6 -12
  113. package/lib/generated/idl/HTMLParamElement.js +12 -48
  114. package/lib/generated/idl/HTMLPreElement.js +6 -12
  115. package/lib/generated/idl/HTMLProgressElement.js +10 -38
  116. package/lib/generated/idl/HTMLQuoteElement.js +6 -12
  117. package/lib/generated/idl/HTMLScriptElement.js +20 -96
  118. package/lib/generated/idl/HTMLSelectElement.js +37 -214
  119. package/lib/generated/idl/HTMLSlotElement.js +8 -24
  120. package/lib/generated/idl/HTMLSourceElement.js +14 -60
  121. package/lib/generated/idl/HTMLStyleElement.js +11 -44
  122. package/lib/generated/idl/HTMLTableCaptionElement.js +6 -12
  123. package/lib/generated/idl/HTMLTableCellElement.js +33 -175
  124. package/lib/generated/idl/HTMLTableColElement.js +16 -72
  125. package/lib/generated/idl/HTMLTableElement.js +39 -220
  126. package/lib/generated/idl/HTMLTableRowElement.js +19 -94
  127. package/lib/generated/idl/HTMLTableSectionElement.js +15 -68
  128. package/lib/generated/idl/HTMLTemplateElement.js +5 -7
  129. package/lib/generated/idl/HTMLTextAreaElement.js +55 -322
  130. package/lib/generated/idl/HTMLTimeElement.js +6 -12
  131. package/lib/generated/idl/HTMLTitleElement.js +6 -12
  132. package/lib/generated/idl/HTMLTrackElement.js +15 -67
  133. package/lib/generated/idl/HTMLUListElement.js +8 -24
  134. package/lib/generated/idl/HTMLVideoElement.js +14 -62
  135. package/lib/generated/idl/HashChangeEvent.js +6 -14
  136. package/lib/generated/idl/Headers.js +14 -50
  137. package/lib/generated/idl/History.js +11 -34
  138. package/lib/generated/idl/InputEvent.js +7 -19
  139. package/lib/generated/idl/KeyboardEvent.js +17 -91
  140. package/lib/generated/idl/Location.js +25 -114
  141. package/lib/generated/idl/MediaList.js +11 -41
  142. package/lib/generated/idl/MessageEvent.js +10 -42
  143. package/lib/generated/idl/MimeType.js +8 -26
  144. package/lib/generated/idl/MimeTypeArray.js +7 -19
  145. package/lib/generated/idl/MouseEvent.js +25 -139
  146. package/lib/generated/idl/MutationObserver.js +7 -21
  147. package/lib/generated/idl/MutationRecord.js +13 -63
  148. package/lib/generated/idl/NamedNodeMap.js +12 -54
  149. package/lib/generated/idl/Navigator.js +21 -115
  150. package/lib/generated/idl/Node.js +35 -161
  151. package/lib/generated/idl/NodeIterator.js +12 -54
  152. package/lib/generated/idl/NodeList.js +6 -10
  153. package/lib/generated/idl/PageTransitionEvent.js +5 -7
  154. package/lib/generated/idl/Performance.js +7 -17
  155. package/lib/generated/idl/Plugin.js +10 -32
  156. package/lib/generated/idl/PluginArray.js +8 -24
  157. package/lib/generated/idl/PointerEvent.js +19 -105
  158. package/lib/generated/idl/PopStateEvent.js +5 -7
  159. package/lib/generated/idl/ProcessingInstruction.js +5 -7
  160. package/lib/generated/idl/ProgressEvent.js +7 -21
  161. package/lib/generated/idl/PromiseRejectionEvent.js +6 -14
  162. package/lib/generated/idl/QuotaExceededError.js +6 -14
  163. package/lib/generated/idl/RadioNodeList.js +6 -13
  164. package/lib/generated/idl/Range.js +27 -126
  165. package/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +6 -14
  166. package/lib/generated/idl/SVGAnimatedRect.js +6 -14
  167. package/lib/generated/idl/SVGAnimatedString.js +7 -20
  168. package/lib/generated/idl/SVGElement.js +192 -1208
  169. package/lib/generated/idl/SVGGraphicsElement.js +6 -14
  170. package/lib/generated/idl/SVGNumber.js +6 -9
  171. package/lib/generated/idl/SVGPreserveAspectRatio.js +8 -26
  172. package/lib/generated/idl/SVGRect.js +12 -36
  173. package/lib/generated/idl/SVGSVGElement.js +45 -271
  174. package/lib/generated/idl/SVGStringList.js +13 -61
  175. package/lib/generated/idl/SVGSymbolElement.js +6 -14
  176. package/lib/generated/idl/Screen.js +10 -38
  177. package/lib/generated/idl/Selection.js +26 -140
  178. package/lib/generated/idl/ShadowRoot.js +9 -29
  179. package/lib/generated/idl/Storage.js +10 -30
  180. package/lib/generated/idl/StorageEvent.js +10 -38
  181. package/lib/generated/idl/StyleSheet.js +13 -52
  182. package/lib/generated/idl/StyleSheetList.js +6 -12
  183. package/lib/generated/idl/SubmitEvent.js +5 -7
  184. package/lib/generated/idl/Text.js +7 -17
  185. package/lib/generated/idl/TextDecoder.js +8 -25
  186. package/lib/generated/idl/TextEncoder.js +7 -18
  187. package/lib/generated/idl/TouchEvent.js +11 -49
  188. package/lib/generated/idl/TransitionEvent.js +7 -21
  189. package/lib/generated/idl/TreeWalker.js +16 -77
  190. package/lib/generated/idl/UIEvent.js +8 -20
  191. package/lib/generated/idl/ValidityState.js +15 -77
  192. package/lib/generated/idl/WebSocket.js +21 -103
  193. package/lib/generated/idl/WheelEvent.js +8 -28
  194. package/lib/generated/idl/XMLHttpRequest.js +27 -150
  195. package/lib/generated/idl/XMLHttpRequestEventTarget.js +18 -91
  196. package/lib/generated/idl/XMLSerializer.js +5 -7
  197. package/lib/generated/idl/utils.js +11 -0
  198. package/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +4 -1
  199. package/lib/jsdom/living/css/CSSGroupingRule-impl.js +2 -2
  200. package/lib/jsdom/living/css/CSSMediaRule-impl.js +2 -1
  201. package/lib/jsdom/living/css/CSSRule-impl.js +13 -0
  202. package/lib/jsdom/living/css/CSSRuleList-impl.js +1 -1
  203. package/lib/jsdom/living/css/CSSStyleDeclaration-impl.js +19 -8
  204. package/lib/jsdom/living/css/CSSStyleRule-impl.js +2 -0
  205. package/lib/jsdom/living/css/CSSStyleSheet-impl.js +4 -4
  206. package/lib/jsdom/living/css/MediaList-impl.js +9 -0
  207. package/lib/jsdom/living/css/StyleSheet-impl.js +10 -1
  208. package/lib/jsdom/living/css/helpers/computed-style.js +7 -3
  209. package/lib/jsdom/living/css/helpers/css-parser.js +7 -2
  210. package/lib/jsdom/living/css/helpers/css-values.js +2 -1
  211. package/lib/jsdom/living/helpers/document-named-properties.js +17 -0
  212. package/lib/jsdom/living/helpers/focusing.js +27 -20
  213. package/lib/jsdom/living/helpers/iterable-weak-list.js +16 -9
  214. package/lib/jsdom/living/helpers/shadow-dom.js +48 -1
  215. package/lib/jsdom/living/nodes/Document-impl.js +15 -17
  216. package/lib/jsdom/living/nodes/HTMLCollection-impl.js +1 -0
  217. package/lib/jsdom/living/nodes/HTMLInputElement-impl.js +34 -14
  218. package/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +17 -7
  219. package/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +9 -8
  220. package/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +10 -3
  221. package/lib/jsdom/living/nodes/Node-impl.js +21 -2
  222. package/package.json +18 -43
@@ -23,6 +23,10 @@ const interfaceName = "HTMLInputElement";
23
23
  const $interfaceDescriptor = utils.createInterfaceDescriptor(() => HTMLElement.interfaceDescriptor);
24
24
  exports.interfaceDescriptor = $interfaceDescriptor;
25
25
 
26
+ function $requireImpl(wrapper, globalObject, context) {
27
+ return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
28
+ }
29
+
26
30
  exports.is = value => {
27
31
  return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
28
32
  };
@@ -106,12 +110,7 @@ exports.install = (globalObject, globalNames) => {
106
110
  }
107
111
 
108
112
  stepUp() {
109
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
110
- if ($impl === null) {
111
- throw new globalObject.TypeError(
112
- "'stepUp' called on an object that is not a valid instance of HTMLInputElement."
113
- );
114
- }
113
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "stepUp");
115
114
  const args = [];
116
115
  {
117
116
  let curArg = arguments[0];
@@ -129,12 +128,7 @@ exports.install = (globalObject, globalNames) => {
129
128
  }
130
129
 
131
130
  stepDown() {
132
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
133
- if ($impl === null) {
134
- throw new globalObject.TypeError(
135
- "'stepDown' called on an object that is not a valid instance of HTMLInputElement."
136
- );
137
- }
131
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "stepDown");
138
132
  const args = [];
139
133
  {
140
134
  let curArg = arguments[0];
@@ -152,35 +146,17 @@ exports.install = (globalObject, globalNames) => {
152
146
  }
153
147
 
154
148
  checkValidity() {
155
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
156
- if ($impl === null) {
157
- throw new globalObject.TypeError(
158
- "'checkValidity' called on an object that is not a valid instance of HTMLInputElement."
159
- );
160
- }
161
-
149
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "checkValidity");
162
150
  return $impl.checkValidity();
163
151
  }
164
152
 
165
153
  reportValidity() {
166
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
167
- if ($impl === null) {
168
- throw new globalObject.TypeError(
169
- "'reportValidity' called on an object that is not a valid instance of HTMLInputElement."
170
- );
171
- }
172
-
154
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "reportValidity");
173
155
  return $impl.reportValidity();
174
156
  }
175
157
 
176
158
  setCustomValidity(error) {
177
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
178
- if ($impl === null) {
179
- throw new globalObject.TypeError(
180
- "'setCustomValidity' called on an object that is not a valid instance of HTMLInputElement."
181
- );
182
- }
183
-
159
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "setCustomValidity");
184
160
  if (arguments.length < 1) {
185
161
  throw new globalObject.TypeError(
186
162
  `Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only ${arguments.length} present.`
@@ -199,24 +175,12 @@ exports.install = (globalObject, globalNames) => {
199
175
  }
200
176
 
201
177
  select() {
202
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
203
- if ($impl === null) {
204
- throw new globalObject.TypeError(
205
- "'select' called on an object that is not a valid instance of HTMLInputElement."
206
- );
207
- }
208
-
178
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "select");
209
179
  return $impl.select();
210
180
  }
211
181
 
212
182
  setRangeText(replacement) {
213
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
214
- if ($impl === null) {
215
- throw new globalObject.TypeError(
216
- "'setRangeText' called on an object that is not a valid instance of HTMLInputElement."
217
- );
218
- }
219
-
183
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "setRangeText");
220
184
  if (arguments.length < 1) {
221
185
  throw new globalObject.TypeError(
222
186
  `Failed to execute 'setRangeText' on 'HTMLInputElement': 1 argument required, but only ${arguments.length} present.`
@@ -306,13 +270,7 @@ exports.install = (globalObject, globalNames) => {
306
270
  }
307
271
 
308
272
  setSelectionRange(start, end) {
309
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
310
- if ($impl === null) {
311
- throw new globalObject.TypeError(
312
- "'setSelectionRange' called on an object that is not a valid instance of HTMLInputElement."
313
- );
314
- }
315
-
273
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "setSelectionRange");
316
274
  if (arguments.length < 2) {
317
275
  throw new globalObject.TypeError(
318
276
  `Failed to execute 'setSelectionRange' on 'HTMLInputElement': 2 arguments required, but only ${arguments.length} present.`
@@ -349,12 +307,7 @@ exports.install = (globalObject, globalNames) => {
349
307
  }
350
308
 
351
309
  get accept() {
352
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
353
- if ($impl === null) {
354
- throw new globalObject.TypeError(
355
- "'get accept' called on an object that is not a valid instance of HTMLInputElement."
356
- );
357
- }
310
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get accept");
358
311
 
359
312
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
360
313
  try {
@@ -366,12 +319,7 @@ exports.install = (globalObject, globalNames) => {
366
319
  }
367
320
 
368
321
  set accept(V) {
369
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
370
- if ($impl === null) {
371
- throw new globalObject.TypeError(
372
- "'set accept' called on an object that is not a valid instance of HTMLInputElement."
373
- );
374
- }
322
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set accept");
375
323
 
376
324
  V = conversions["DOMString"](V, {
377
325
  context: "Failed to set the 'accept' property on 'HTMLInputElement': The provided value",
@@ -387,12 +335,7 @@ exports.install = (globalObject, globalNames) => {
387
335
  }
388
336
 
389
337
  get alt() {
390
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
391
- if ($impl === null) {
392
- throw new globalObject.TypeError(
393
- "'get alt' called on an object that is not a valid instance of HTMLInputElement."
394
- );
395
- }
338
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get alt");
396
339
 
397
340
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
398
341
  try {
@@ -404,12 +347,7 @@ exports.install = (globalObject, globalNames) => {
404
347
  }
405
348
 
406
349
  set alt(V) {
407
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
408
- if ($impl === null) {
409
- throw new globalObject.TypeError(
410
- "'set alt' called on an object that is not a valid instance of HTMLInputElement."
411
- );
412
- }
350
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set alt");
413
351
 
414
352
  V = conversions["DOMString"](V, {
415
353
  context: "Failed to set the 'alt' property on 'HTMLInputElement': The provided value",
@@ -425,12 +363,7 @@ exports.install = (globalObject, globalNames) => {
425
363
  }
426
364
 
427
365
  get autocomplete() {
428
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
429
- if ($impl === null) {
430
- throw new globalObject.TypeError(
431
- "'get autocomplete' called on an object that is not a valid instance of HTMLInputElement."
432
- );
433
- }
366
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get autocomplete");
434
367
 
435
368
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
436
369
  try {
@@ -442,12 +375,7 @@ exports.install = (globalObject, globalNames) => {
442
375
  }
443
376
 
444
377
  set autocomplete(V) {
445
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
446
- if ($impl === null) {
447
- throw new globalObject.TypeError(
448
- "'set autocomplete' called on an object that is not a valid instance of HTMLInputElement."
449
- );
450
- }
378
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set autocomplete");
451
379
 
452
380
  V = conversions["DOMString"](V, {
453
381
  context: "Failed to set the 'autocomplete' property on 'HTMLInputElement': The provided value",
@@ -463,12 +391,7 @@ exports.install = (globalObject, globalNames) => {
463
391
  }
464
392
 
465
393
  get autofocus() {
466
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
467
- if ($impl === null) {
468
- throw new globalObject.TypeError(
469
- "'get autofocus' called on an object that is not a valid instance of HTMLInputElement."
470
- );
471
- }
394
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get autofocus");
472
395
 
473
396
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
474
397
  try {
@@ -479,12 +402,7 @@ exports.install = (globalObject, globalNames) => {
479
402
  }
480
403
 
481
404
  set autofocus(V) {
482
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
483
- if ($impl === null) {
484
- throw new globalObject.TypeError(
485
- "'set autofocus' called on an object that is not a valid instance of HTMLInputElement."
486
- );
487
- }
405
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set autofocus");
488
406
 
489
407
  V = conversions["boolean"](V, {
490
408
  context: "Failed to set the 'autofocus' property on 'HTMLInputElement': The provided value",
@@ -504,12 +422,7 @@ exports.install = (globalObject, globalNames) => {
504
422
  }
505
423
 
506
424
  get defaultChecked() {
507
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
508
- if ($impl === null) {
509
- throw new globalObject.TypeError(
510
- "'get defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
511
- );
512
- }
425
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get defaultChecked");
513
426
 
514
427
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
515
428
  try {
@@ -520,12 +433,7 @@ exports.install = (globalObject, globalNames) => {
520
433
  }
521
434
 
522
435
  set defaultChecked(V) {
523
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
524
- if ($impl === null) {
525
- throw new globalObject.TypeError(
526
- "'set defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
527
- );
528
- }
436
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set defaultChecked");
529
437
 
530
438
  V = conversions["boolean"](V, {
531
439
  context: "Failed to set the 'defaultChecked' property on 'HTMLInputElement': The provided value",
@@ -545,23 +453,12 @@ exports.install = (globalObject, globalNames) => {
545
453
  }
546
454
 
547
455
  get checked() {
548
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
549
- if ($impl === null) {
550
- throw new globalObject.TypeError(
551
- "'get checked' called on an object that is not a valid instance of HTMLInputElement."
552
- );
553
- }
554
-
456
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get checked");
555
457
  return $impl["checked"];
556
458
  }
557
459
 
558
460
  set checked(V) {
559
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
560
- if ($impl === null) {
561
- throw new globalObject.TypeError(
562
- "'set checked' called on an object that is not a valid instance of HTMLInputElement."
563
- );
564
- }
461
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set checked");
565
462
 
566
463
  V = conversions["boolean"](V, {
567
464
  context: "Failed to set the 'checked' property on 'HTMLInputElement': The provided value",
@@ -572,12 +469,7 @@ exports.install = (globalObject, globalNames) => {
572
469
  }
573
470
 
574
471
  get dirName() {
575
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
576
- if ($impl === null) {
577
- throw new globalObject.TypeError(
578
- "'get dirName' called on an object that is not a valid instance of HTMLInputElement."
579
- );
580
- }
472
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get dirName");
581
473
 
582
474
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
583
475
  try {
@@ -589,12 +481,7 @@ exports.install = (globalObject, globalNames) => {
589
481
  }
590
482
 
591
483
  set dirName(V) {
592
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
593
- if ($impl === null) {
594
- throw new globalObject.TypeError(
595
- "'set dirName' called on an object that is not a valid instance of HTMLInputElement."
596
- );
597
- }
484
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set dirName");
598
485
 
599
486
  V = conversions["DOMString"](V, {
600
487
  context: "Failed to set the 'dirName' property on 'HTMLInputElement': The provided value",
@@ -610,12 +497,7 @@ exports.install = (globalObject, globalNames) => {
610
497
  }
611
498
 
612
499
  get disabled() {
613
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
614
- if ($impl === null) {
615
- throw new globalObject.TypeError(
616
- "'get disabled' called on an object that is not a valid instance of HTMLInputElement."
617
- );
618
- }
500
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get disabled");
619
501
 
620
502
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
621
503
  try {
@@ -626,12 +508,7 @@ exports.install = (globalObject, globalNames) => {
626
508
  }
627
509
 
628
510
  set disabled(V) {
629
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
630
- if ($impl === null) {
631
- throw new globalObject.TypeError(
632
- "'set disabled' called on an object that is not a valid instance of HTMLInputElement."
633
- );
634
- }
511
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set disabled");
635
512
 
636
513
  V = conversions["boolean"](V, {
637
514
  context: "Failed to set the 'disabled' property on 'HTMLInputElement': The provided value",
@@ -651,34 +528,17 @@ exports.install = (globalObject, globalNames) => {
651
528
  }
652
529
 
653
530
  get form() {
654
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
655
- if ($impl === null) {
656
- throw new globalObject.TypeError(
657
- "'get form' called on an object that is not a valid instance of HTMLInputElement."
658
- );
659
- }
660
-
531
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get form");
661
532
  return utils.tryWrapperForImpl($impl["form"]);
662
533
  }
663
534
 
664
535
  get files() {
665
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
666
- if ($impl === null) {
667
- throw new globalObject.TypeError(
668
- "'get files' called on an object that is not a valid instance of HTMLInputElement."
669
- );
670
- }
671
-
536
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get files");
672
537
  return utils.tryWrapperForImpl($impl["files"]);
673
538
  }
674
539
 
675
540
  set files(V) {
676
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
677
- if ($impl === null) {
678
- throw new globalObject.TypeError(
679
- "'set files' called on an object that is not a valid instance of HTMLInputElement."
680
- );
681
- }
541
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set files");
682
542
 
683
543
  if (V === null || V === undefined) {
684
544
  V = null;
@@ -691,12 +551,7 @@ exports.install = (globalObject, globalNames) => {
691
551
  }
692
552
 
693
553
  get formNoValidate() {
694
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
695
- if ($impl === null) {
696
- throw new globalObject.TypeError(
697
- "'get formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
698
- );
699
- }
554
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get formNoValidate");
700
555
 
701
556
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
702
557
  try {
@@ -707,12 +562,7 @@ exports.install = (globalObject, globalNames) => {
707
562
  }
708
563
 
709
564
  set formNoValidate(V) {
710
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
711
- if ($impl === null) {
712
- throw new globalObject.TypeError(
713
- "'set formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
714
- );
715
- }
565
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set formNoValidate");
716
566
 
717
567
  V = conversions["boolean"](V, {
718
568
  context: "Failed to set the 'formNoValidate' property on 'HTMLInputElement': The provided value",
@@ -732,12 +582,7 @@ exports.install = (globalObject, globalNames) => {
732
582
  }
733
583
 
734
584
  get formTarget() {
735
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
736
- if ($impl === null) {
737
- throw new globalObject.TypeError(
738
- "'get formTarget' called on an object that is not a valid instance of HTMLInputElement."
739
- );
740
- }
585
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get formTarget");
741
586
 
742
587
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
743
588
  try {
@@ -749,12 +594,7 @@ exports.install = (globalObject, globalNames) => {
749
594
  }
750
595
 
751
596
  set formTarget(V) {
752
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
753
- if ($impl === null) {
754
- throw new globalObject.TypeError(
755
- "'set formTarget' called on an object that is not a valid instance of HTMLInputElement."
756
- );
757
- }
597
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set formTarget");
758
598
 
759
599
  V = conversions["DOMString"](V, {
760
600
  context: "Failed to set the 'formTarget' property on 'HTMLInputElement': The provided value",
@@ -770,23 +610,12 @@ exports.install = (globalObject, globalNames) => {
770
610
  }
771
611
 
772
612
  get indeterminate() {
773
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
774
- if ($impl === null) {
775
- throw new globalObject.TypeError(
776
- "'get indeterminate' called on an object that is not a valid instance of HTMLInputElement."
777
- );
778
- }
779
-
613
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get indeterminate");
780
614
  return $impl["indeterminate"];
781
615
  }
782
616
 
783
617
  set indeterminate(V) {
784
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
785
- if ($impl === null) {
786
- throw new globalObject.TypeError(
787
- "'set indeterminate' called on an object that is not a valid instance of HTMLInputElement."
788
- );
789
- }
618
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set indeterminate");
790
619
 
791
620
  V = conversions["boolean"](V, {
792
621
  context: "Failed to set the 'indeterminate' property on 'HTMLInputElement': The provided value",
@@ -797,12 +626,7 @@ exports.install = (globalObject, globalNames) => {
797
626
  }
798
627
 
799
628
  get inputMode() {
800
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
801
- if ($impl === null) {
802
- throw new globalObject.TypeError(
803
- "'get inputMode' called on an object that is not a valid instance of HTMLInputElement."
804
- );
805
- }
629
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get inputMode");
806
630
 
807
631
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
808
632
  try {
@@ -814,12 +638,7 @@ exports.install = (globalObject, globalNames) => {
814
638
  }
815
639
 
816
640
  set inputMode(V) {
817
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
818
- if ($impl === null) {
819
- throw new globalObject.TypeError(
820
- "'set inputMode' called on an object that is not a valid instance of HTMLInputElement."
821
- );
822
- }
641
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set inputMode");
823
642
 
824
643
  V = conversions["DOMString"](V, {
825
644
  context: "Failed to set the 'inputMode' property on 'HTMLInputElement': The provided value",
@@ -835,23 +654,12 @@ exports.install = (globalObject, globalNames) => {
835
654
  }
836
655
 
837
656
  get list() {
838
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
839
- if ($impl === null) {
840
- throw new globalObject.TypeError(
841
- "'get list' called on an object that is not a valid instance of HTMLInputElement."
842
- );
843
- }
844
-
657
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get list");
845
658
  return utils.tryWrapperForImpl($impl["list"]);
846
659
  }
847
660
 
848
661
  get max() {
849
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
850
- if ($impl === null) {
851
- throw new globalObject.TypeError(
852
- "'get max' called on an object that is not a valid instance of HTMLInputElement."
853
- );
854
- }
662
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get max");
855
663
 
856
664
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
857
665
  try {
@@ -863,12 +671,7 @@ exports.install = (globalObject, globalNames) => {
863
671
  }
864
672
 
865
673
  set max(V) {
866
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
867
- if ($impl === null) {
868
- throw new globalObject.TypeError(
869
- "'set max' called on an object that is not a valid instance of HTMLInputElement."
870
- );
871
- }
674
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set max");
872
675
 
873
676
  V = conversions["DOMString"](V, {
874
677
  context: "Failed to set the 'max' property on 'HTMLInputElement': The provided value",
@@ -884,12 +687,7 @@ exports.install = (globalObject, globalNames) => {
884
687
  }
885
688
 
886
689
  get maxLength() {
887
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
888
- if ($impl === null) {
889
- throw new globalObject.TypeError(
890
- "'get maxLength' called on an object that is not a valid instance of HTMLInputElement."
891
- );
892
- }
690
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get maxLength");
893
691
 
894
692
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
895
693
  try {
@@ -907,12 +705,7 @@ exports.install = (globalObject, globalNames) => {
907
705
  }
908
706
 
909
707
  set maxLength(V) {
910
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
911
- if ($impl === null) {
912
- throw new globalObject.TypeError(
913
- "'set maxLength' called on an object that is not a valid instance of HTMLInputElement."
914
- );
915
- }
708
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set maxLength");
916
709
 
917
710
  V = conversions["long"](V, {
918
711
  context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value",
@@ -935,12 +728,7 @@ exports.install = (globalObject, globalNames) => {
935
728
  }
936
729
 
937
730
  get min() {
938
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
939
- if ($impl === null) {
940
- throw new globalObject.TypeError(
941
- "'get min' called on an object that is not a valid instance of HTMLInputElement."
942
- );
943
- }
731
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get min");
944
732
 
945
733
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
946
734
  try {
@@ -952,12 +740,7 @@ exports.install = (globalObject, globalNames) => {
952
740
  }
953
741
 
954
742
  set min(V) {
955
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
956
- if ($impl === null) {
957
- throw new globalObject.TypeError(
958
- "'set min' called on an object that is not a valid instance of HTMLInputElement."
959
- );
960
- }
743
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set min");
961
744
 
962
745
  V = conversions["DOMString"](V, {
963
746
  context: "Failed to set the 'min' property on 'HTMLInputElement': The provided value",
@@ -973,12 +756,7 @@ exports.install = (globalObject, globalNames) => {
973
756
  }
974
757
 
975
758
  get minLength() {
976
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
977
- if ($impl === null) {
978
- throw new globalObject.TypeError(
979
- "'get minLength' called on an object that is not a valid instance of HTMLInputElement."
980
- );
981
- }
759
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get minLength");
982
760
 
983
761
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
984
762
  try {
@@ -996,12 +774,7 @@ exports.install = (globalObject, globalNames) => {
996
774
  }
997
775
 
998
776
  set minLength(V) {
999
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1000
- if ($impl === null) {
1001
- throw new globalObject.TypeError(
1002
- "'set minLength' called on an object that is not a valid instance of HTMLInputElement."
1003
- );
1004
- }
777
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set minLength");
1005
778
 
1006
779
  V = conversions["long"](V, {
1007
780
  context: "Failed to set the 'minLength' property on 'HTMLInputElement': The provided value",
@@ -1024,12 +797,7 @@ exports.install = (globalObject, globalNames) => {
1024
797
  }
1025
798
 
1026
799
  get multiple() {
1027
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1028
- if ($impl === null) {
1029
- throw new globalObject.TypeError(
1030
- "'get multiple' called on an object that is not a valid instance of HTMLInputElement."
1031
- );
1032
- }
800
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get multiple");
1033
801
 
1034
802
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1035
803
  try {
@@ -1040,12 +808,7 @@ exports.install = (globalObject, globalNames) => {
1040
808
  }
1041
809
 
1042
810
  set multiple(V) {
1043
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1044
- if ($impl === null) {
1045
- throw new globalObject.TypeError(
1046
- "'set multiple' called on an object that is not a valid instance of HTMLInputElement."
1047
- );
1048
- }
811
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set multiple");
1049
812
 
1050
813
  V = conversions["boolean"](V, {
1051
814
  context: "Failed to set the 'multiple' property on 'HTMLInputElement': The provided value",
@@ -1065,12 +828,7 @@ exports.install = (globalObject, globalNames) => {
1065
828
  }
1066
829
 
1067
830
  get name() {
1068
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1069
- if ($impl === null) {
1070
- throw new globalObject.TypeError(
1071
- "'get name' called on an object that is not a valid instance of HTMLInputElement."
1072
- );
1073
- }
831
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get name");
1074
832
 
1075
833
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1076
834
  try {
@@ -1082,12 +840,7 @@ exports.install = (globalObject, globalNames) => {
1082
840
  }
1083
841
 
1084
842
  set name(V) {
1085
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1086
- if ($impl === null) {
1087
- throw new globalObject.TypeError(
1088
- "'set name' called on an object that is not a valid instance of HTMLInputElement."
1089
- );
1090
- }
843
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set name");
1091
844
 
1092
845
  V = conversions["DOMString"](V, {
1093
846
  context: "Failed to set the 'name' property on 'HTMLInputElement': The provided value",
@@ -1103,12 +856,7 @@ exports.install = (globalObject, globalNames) => {
1103
856
  }
1104
857
 
1105
858
  get pattern() {
1106
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1107
- if ($impl === null) {
1108
- throw new globalObject.TypeError(
1109
- "'get pattern' called on an object that is not a valid instance of HTMLInputElement."
1110
- );
1111
- }
859
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get pattern");
1112
860
 
1113
861
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1114
862
  try {
@@ -1120,12 +868,7 @@ exports.install = (globalObject, globalNames) => {
1120
868
  }
1121
869
 
1122
870
  set pattern(V) {
1123
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1124
- if ($impl === null) {
1125
- throw new globalObject.TypeError(
1126
- "'set pattern' called on an object that is not a valid instance of HTMLInputElement."
1127
- );
1128
- }
871
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set pattern");
1129
872
 
1130
873
  V = conversions["DOMString"](V, {
1131
874
  context: "Failed to set the 'pattern' property on 'HTMLInputElement': The provided value",
@@ -1141,12 +884,7 @@ exports.install = (globalObject, globalNames) => {
1141
884
  }
1142
885
 
1143
886
  get placeholder() {
1144
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1145
- if ($impl === null) {
1146
- throw new globalObject.TypeError(
1147
- "'get placeholder' called on an object that is not a valid instance of HTMLInputElement."
1148
- );
1149
- }
887
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get placeholder");
1150
888
 
1151
889
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1152
890
  try {
@@ -1158,12 +896,7 @@ exports.install = (globalObject, globalNames) => {
1158
896
  }
1159
897
 
1160
898
  set placeholder(V) {
1161
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1162
- if ($impl === null) {
1163
- throw new globalObject.TypeError(
1164
- "'set placeholder' called on an object that is not a valid instance of HTMLInputElement."
1165
- );
1166
- }
899
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set placeholder");
1167
900
 
1168
901
  V = conversions["DOMString"](V, {
1169
902
  context: "Failed to set the 'placeholder' property on 'HTMLInputElement': The provided value",
@@ -1179,12 +912,7 @@ exports.install = (globalObject, globalNames) => {
1179
912
  }
1180
913
 
1181
914
  get readOnly() {
1182
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1183
- if ($impl === null) {
1184
- throw new globalObject.TypeError(
1185
- "'get readOnly' called on an object that is not a valid instance of HTMLInputElement."
1186
- );
1187
- }
915
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get readOnly");
1188
916
 
1189
917
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1190
918
  try {
@@ -1195,12 +923,7 @@ exports.install = (globalObject, globalNames) => {
1195
923
  }
1196
924
 
1197
925
  set readOnly(V) {
1198
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1199
- if ($impl === null) {
1200
- throw new globalObject.TypeError(
1201
- "'set readOnly' called on an object that is not a valid instance of HTMLInputElement."
1202
- );
1203
- }
926
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set readOnly");
1204
927
 
1205
928
  V = conversions["boolean"](V, {
1206
929
  context: "Failed to set the 'readOnly' property on 'HTMLInputElement': The provided value",
@@ -1220,12 +943,7 @@ exports.install = (globalObject, globalNames) => {
1220
943
  }
1221
944
 
1222
945
  get required() {
1223
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1224
- if ($impl === null) {
1225
- throw new globalObject.TypeError(
1226
- "'get required' called on an object that is not a valid instance of HTMLInputElement."
1227
- );
1228
- }
946
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get required");
1229
947
 
1230
948
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1231
949
  try {
@@ -1236,12 +954,7 @@ exports.install = (globalObject, globalNames) => {
1236
954
  }
1237
955
 
1238
956
  set required(V) {
1239
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1240
- if ($impl === null) {
1241
- throw new globalObject.TypeError(
1242
- "'set required' called on an object that is not a valid instance of HTMLInputElement."
1243
- );
1244
- }
957
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set required");
1245
958
 
1246
959
  V = conversions["boolean"](V, {
1247
960
  context: "Failed to set the 'required' property on 'HTMLInputElement': The provided value",
@@ -1261,12 +974,7 @@ exports.install = (globalObject, globalNames) => {
1261
974
  }
1262
975
 
1263
976
  get size() {
1264
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1265
- if ($impl === null) {
1266
- throw new globalObject.TypeError(
1267
- "'get size' called on an object that is not a valid instance of HTMLInputElement."
1268
- );
1269
- }
977
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get size");
1270
978
 
1271
979
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1272
980
  try {
@@ -1284,12 +992,7 @@ exports.install = (globalObject, globalNames) => {
1284
992
  }
1285
993
 
1286
994
  set size(V) {
1287
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1288
- if ($impl === null) {
1289
- throw new globalObject.TypeError(
1290
- "'set size' called on an object that is not a valid instance of HTMLInputElement."
1291
- );
1292
- }
995
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set size");
1293
996
 
1294
997
  V = conversions["unsigned long"](V, {
1295
998
  context: "Failed to set the 'size' property on 'HTMLInputElement': The provided value",
@@ -1313,12 +1016,7 @@ exports.install = (globalObject, globalNames) => {
1313
1016
  }
1314
1017
 
1315
1018
  get src() {
1316
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1317
- if ($impl === null) {
1318
- throw new globalObject.TypeError(
1319
- "'get src' called on an object that is not a valid instance of HTMLInputElement."
1320
- );
1321
- }
1019
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get src");
1322
1020
 
1323
1021
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1324
1022
  try {
@@ -1349,12 +1047,7 @@ exports.install = (globalObject, globalNames) => {
1349
1047
  }
1350
1048
 
1351
1049
  set src(V) {
1352
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1353
- if ($impl === null) {
1354
- throw new globalObject.TypeError(
1355
- "'set src' called on an object that is not a valid instance of HTMLInputElement."
1356
- );
1357
- }
1050
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set src");
1358
1051
 
1359
1052
  V = conversions["USVString"](V, {
1360
1053
  context: "Failed to set the 'src' property on 'HTMLInputElement': The provided value",
@@ -1370,12 +1063,7 @@ exports.install = (globalObject, globalNames) => {
1370
1063
  }
1371
1064
 
1372
1065
  get step() {
1373
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1374
- if ($impl === null) {
1375
- throw new globalObject.TypeError(
1376
- "'get step' called on an object that is not a valid instance of HTMLInputElement."
1377
- );
1378
- }
1066
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get step");
1379
1067
 
1380
1068
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1381
1069
  try {
@@ -1387,12 +1075,7 @@ exports.install = (globalObject, globalNames) => {
1387
1075
  }
1388
1076
 
1389
1077
  set step(V) {
1390
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1391
- if ($impl === null) {
1392
- throw new globalObject.TypeError(
1393
- "'set step' called on an object that is not a valid instance of HTMLInputElement."
1394
- );
1395
- }
1078
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set step");
1396
1079
 
1397
1080
  V = conversions["DOMString"](V, {
1398
1081
  context: "Failed to set the 'step' property on 'HTMLInputElement': The provided value",
@@ -1408,12 +1091,7 @@ exports.install = (globalObject, globalNames) => {
1408
1091
  }
1409
1092
 
1410
1093
  get type() {
1411
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1412
- if ($impl === null) {
1413
- throw new globalObject.TypeError(
1414
- "'get type' called on an object that is not a valid instance of HTMLInputElement."
1415
- );
1416
- }
1094
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get type");
1417
1095
 
1418
1096
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1419
1097
  try {
@@ -1424,12 +1102,7 @@ exports.install = (globalObject, globalNames) => {
1424
1102
  }
1425
1103
 
1426
1104
  set type(V) {
1427
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1428
- if ($impl === null) {
1429
- throw new globalObject.TypeError(
1430
- "'set type' called on an object that is not a valid instance of HTMLInputElement."
1431
- );
1432
- }
1105
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set type");
1433
1106
 
1434
1107
  V = conversions["DOMString"](V, {
1435
1108
  context: "Failed to set the 'type' property on 'HTMLInputElement': The provided value",
@@ -1445,12 +1118,7 @@ exports.install = (globalObject, globalNames) => {
1445
1118
  }
1446
1119
 
1447
1120
  get defaultValue() {
1448
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1449
- if ($impl === null) {
1450
- throw new globalObject.TypeError(
1451
- "'get defaultValue' called on an object that is not a valid instance of HTMLInputElement."
1452
- );
1453
- }
1121
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get defaultValue");
1454
1122
 
1455
1123
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1456
1124
  try {
@@ -1462,12 +1130,7 @@ exports.install = (globalObject, globalNames) => {
1462
1130
  }
1463
1131
 
1464
1132
  set defaultValue(V) {
1465
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1466
- if ($impl === null) {
1467
- throw new globalObject.TypeError(
1468
- "'set defaultValue' called on an object that is not a valid instance of HTMLInputElement."
1469
- );
1470
- }
1133
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set defaultValue");
1471
1134
 
1472
1135
  V = conversions["DOMString"](V, {
1473
1136
  context: "Failed to set the 'defaultValue' property on 'HTMLInputElement': The provided value",
@@ -1483,12 +1146,7 @@ exports.install = (globalObject, globalNames) => {
1483
1146
  }
1484
1147
 
1485
1148
  get value() {
1486
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1487
- if ($impl === null) {
1488
- throw new globalObject.TypeError(
1489
- "'get value' called on an object that is not a valid instance of HTMLInputElement."
1490
- );
1491
- }
1149
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get value");
1492
1150
 
1493
1151
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1494
1152
  try {
@@ -1499,12 +1157,7 @@ exports.install = (globalObject, globalNames) => {
1499
1157
  }
1500
1158
 
1501
1159
  set value(V) {
1502
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1503
- if ($impl === null) {
1504
- throw new globalObject.TypeError(
1505
- "'set value' called on an object that is not a valid instance of HTMLInputElement."
1506
- );
1507
- }
1160
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set value");
1508
1161
 
1509
1162
  V = conversions["DOMString"](V, {
1510
1163
  context: "Failed to set the 'value' property on 'HTMLInputElement': The provided value",
@@ -1521,23 +1174,12 @@ exports.install = (globalObject, globalNames) => {
1521
1174
  }
1522
1175
 
1523
1176
  get valueAsDate() {
1524
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1525
- if ($impl === null) {
1526
- throw new globalObject.TypeError(
1527
- "'get valueAsDate' called on an object that is not a valid instance of HTMLInputElement."
1528
- );
1529
- }
1530
-
1177
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get valueAsDate");
1531
1178
  return $impl["valueAsDate"];
1532
1179
  }
1533
1180
 
1534
1181
  set valueAsDate(V) {
1535
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1536
- if ($impl === null) {
1537
- throw new globalObject.TypeError(
1538
- "'set valueAsDate' called on an object that is not a valid instance of HTMLInputElement."
1539
- );
1540
- }
1182
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set valueAsDate");
1541
1183
 
1542
1184
  if (V === null || V === undefined) {
1543
1185
  V = null;
@@ -1551,23 +1193,12 @@ exports.install = (globalObject, globalNames) => {
1551
1193
  }
1552
1194
 
1553
1195
  get valueAsNumber() {
1554
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1555
- if ($impl === null) {
1556
- throw new globalObject.TypeError(
1557
- "'get valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
1558
- );
1559
- }
1560
-
1196
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get valueAsNumber");
1561
1197
  return $impl["valueAsNumber"];
1562
1198
  }
1563
1199
 
1564
1200
  set valueAsNumber(V) {
1565
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1566
- if ($impl === null) {
1567
- throw new globalObject.TypeError(
1568
- "'set valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
1569
- );
1570
- }
1201
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set valueAsNumber");
1571
1202
 
1572
1203
  V = conversions["unrestricted double"](V, {
1573
1204
  context: "Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The provided value",
@@ -1578,67 +1209,32 @@ exports.install = (globalObject, globalNames) => {
1578
1209
  }
1579
1210
 
1580
1211
  get willValidate() {
1581
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1582
- if ($impl === null) {
1583
- throw new globalObject.TypeError(
1584
- "'get willValidate' called on an object that is not a valid instance of HTMLInputElement."
1585
- );
1586
- }
1587
-
1212
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get willValidate");
1588
1213
  return $impl["willValidate"];
1589
1214
  }
1590
1215
 
1591
1216
  get validity() {
1592
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1593
- if ($impl === null) {
1594
- throw new globalObject.TypeError(
1595
- "'get validity' called on an object that is not a valid instance of HTMLInputElement."
1596
- );
1597
- }
1598
-
1217
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get validity");
1599
1218
  return utils.tryWrapperForImpl($impl["validity"]);
1600
1219
  }
1601
1220
 
1602
1221
  get validationMessage() {
1603
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1604
- if ($impl === null) {
1605
- throw new globalObject.TypeError(
1606
- "'get validationMessage' called on an object that is not a valid instance of HTMLInputElement."
1607
- );
1608
- }
1609
-
1222
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get validationMessage");
1610
1223
  return $impl["validationMessage"];
1611
1224
  }
1612
1225
 
1613
1226
  get labels() {
1614
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1615
- if ($impl === null) {
1616
- throw new globalObject.TypeError(
1617
- "'get labels' called on an object that is not a valid instance of HTMLInputElement."
1618
- );
1619
- }
1620
-
1227
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get labels");
1621
1228
  return utils.tryWrapperForImpl($impl["labels"]);
1622
1229
  }
1623
1230
 
1624
1231
  get selectionStart() {
1625
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1626
- if ($impl === null) {
1627
- throw new globalObject.TypeError(
1628
- "'get selectionStart' called on an object that is not a valid instance of HTMLInputElement."
1629
- );
1630
- }
1631
-
1232
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get selectionStart");
1632
1233
  return $impl["selectionStart"];
1633
1234
  }
1634
1235
 
1635
1236
  set selectionStart(V) {
1636
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1637
- if ($impl === null) {
1638
- throw new globalObject.TypeError(
1639
- "'set selectionStart' called on an object that is not a valid instance of HTMLInputElement."
1640
- );
1641
- }
1237
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set selectionStart");
1642
1238
 
1643
1239
  if (V === null || V === undefined) {
1644
1240
  V = null;
@@ -1652,23 +1248,12 @@ exports.install = (globalObject, globalNames) => {
1652
1248
  }
1653
1249
 
1654
1250
  get selectionEnd() {
1655
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1656
- if ($impl === null) {
1657
- throw new globalObject.TypeError(
1658
- "'get selectionEnd' called on an object that is not a valid instance of HTMLInputElement."
1659
- );
1660
- }
1661
-
1251
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get selectionEnd");
1662
1252
  return $impl["selectionEnd"];
1663
1253
  }
1664
1254
 
1665
1255
  set selectionEnd(V) {
1666
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1667
- if ($impl === null) {
1668
- throw new globalObject.TypeError(
1669
- "'set selectionEnd' called on an object that is not a valid instance of HTMLInputElement."
1670
- );
1671
- }
1256
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set selectionEnd");
1672
1257
 
1673
1258
  if (V === null || V === undefined) {
1674
1259
  V = null;
@@ -1682,23 +1267,12 @@ exports.install = (globalObject, globalNames) => {
1682
1267
  }
1683
1268
 
1684
1269
  get selectionDirection() {
1685
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1686
- if ($impl === null) {
1687
- throw new globalObject.TypeError(
1688
- "'get selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
1689
- );
1690
- }
1691
-
1270
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get selectionDirection");
1692
1271
  return $impl["selectionDirection"];
1693
1272
  }
1694
1273
 
1695
1274
  set selectionDirection(V) {
1696
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1697
- if ($impl === null) {
1698
- throw new globalObject.TypeError(
1699
- "'set selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
1700
- );
1701
- }
1275
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set selectionDirection");
1702
1276
 
1703
1277
  if (V === null || V === undefined) {
1704
1278
  V = null;
@@ -1712,12 +1286,7 @@ exports.install = (globalObject, globalNames) => {
1712
1286
  }
1713
1287
 
1714
1288
  get align() {
1715
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1716
- if ($impl === null) {
1717
- throw new globalObject.TypeError(
1718
- "'get align' called on an object that is not a valid instance of HTMLInputElement."
1719
- );
1720
- }
1289
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get align");
1721
1290
 
1722
1291
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1723
1292
  try {
@@ -1729,12 +1298,7 @@ exports.install = (globalObject, globalNames) => {
1729
1298
  }
1730
1299
 
1731
1300
  set align(V) {
1732
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1733
- if ($impl === null) {
1734
- throw new globalObject.TypeError(
1735
- "'set align' called on an object that is not a valid instance of HTMLInputElement."
1736
- );
1737
- }
1301
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set align");
1738
1302
 
1739
1303
  V = conversions["DOMString"](V, {
1740
1304
  context: "Failed to set the 'align' property on 'HTMLInputElement': The provided value",
@@ -1750,12 +1314,7 @@ exports.install = (globalObject, globalNames) => {
1750
1314
  }
1751
1315
 
1752
1316
  get useMap() {
1753
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1754
- if ($impl === null) {
1755
- throw new globalObject.TypeError(
1756
- "'get useMap' called on an object that is not a valid instance of HTMLInputElement."
1757
- );
1758
- }
1317
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get useMap");
1759
1318
 
1760
1319
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1761
1320
  try {
@@ -1767,12 +1326,7 @@ exports.install = (globalObject, globalNames) => {
1767
1326
  }
1768
1327
 
1769
1328
  set useMap(V) {
1770
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1771
- if ($impl === null) {
1772
- throw new globalObject.TypeError(
1773
- "'set useMap' called on an object that is not a valid instance of HTMLInputElement."
1774
- );
1775
- }
1329
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set useMap");
1776
1330
 
1777
1331
  V = conversions["DOMString"](V, {
1778
1332
  context: "Failed to set the 'useMap' property on 'HTMLInputElement': The provided value",