@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
@@ -19,6 +19,10 @@ const interfaceName = "HTMLTableColElement";
19
19
  const $interfaceDescriptor = utils.createInterfaceDescriptor(() => HTMLElement.interfaceDescriptor);
20
20
  exports.interfaceDescriptor = $interfaceDescriptor;
21
21
 
22
+ function $requireImpl(wrapper, globalObject, context) {
23
+ return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
24
+ }
25
+
22
26
  exports.is = value => {
23
27
  return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
24
28
  };
@@ -102,12 +106,7 @@ exports.install = (globalObject, globalNames) => {
102
106
  }
103
107
 
104
108
  get span() {
105
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
106
- if ($impl === null) {
107
- throw new globalObject.TypeError(
108
- "'get span' called on an object that is not a valid instance of HTMLTableColElement."
109
- );
110
- }
109
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get span");
111
110
 
112
111
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
113
112
  try {
@@ -131,12 +130,7 @@ exports.install = (globalObject, globalNames) => {
131
130
  }
132
131
 
133
132
  set span(V) {
134
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
135
- if ($impl === null) {
136
- throw new globalObject.TypeError(
137
- "'set span' called on an object that is not a valid instance of HTMLTableColElement."
138
- );
139
- }
133
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set span");
140
134
 
141
135
  V = conversions["unsigned long"](V, {
142
136
  context: "Failed to set the 'span' property on 'HTMLTableColElement': The provided value",
@@ -153,12 +147,7 @@ exports.install = (globalObject, globalNames) => {
153
147
  }
154
148
 
155
149
  get align() {
156
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
157
- if ($impl === null) {
158
- throw new globalObject.TypeError(
159
- "'get align' called on an object that is not a valid instance of HTMLTableColElement."
160
- );
161
- }
150
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get align");
162
151
 
163
152
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
164
153
  try {
@@ -170,12 +159,7 @@ exports.install = (globalObject, globalNames) => {
170
159
  }
171
160
 
172
161
  set align(V) {
173
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
174
- if ($impl === null) {
175
- throw new globalObject.TypeError(
176
- "'set align' called on an object that is not a valid instance of HTMLTableColElement."
177
- );
178
- }
162
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set align");
179
163
 
180
164
  V = conversions["DOMString"](V, {
181
165
  context: "Failed to set the 'align' property on 'HTMLTableColElement': The provided value",
@@ -191,12 +175,7 @@ exports.install = (globalObject, globalNames) => {
191
175
  }
192
176
 
193
177
  get ch() {
194
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
195
- if ($impl === null) {
196
- throw new globalObject.TypeError(
197
- "'get ch' called on an object that is not a valid instance of HTMLTableColElement."
198
- );
199
- }
178
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ch");
200
179
 
201
180
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
202
181
  try {
@@ -208,12 +187,7 @@ exports.install = (globalObject, globalNames) => {
208
187
  }
209
188
 
210
189
  set ch(V) {
211
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
212
- if ($impl === null) {
213
- throw new globalObject.TypeError(
214
- "'set ch' called on an object that is not a valid instance of HTMLTableColElement."
215
- );
216
- }
190
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ch");
217
191
 
218
192
  V = conversions["DOMString"](V, {
219
193
  context: "Failed to set the 'ch' property on 'HTMLTableColElement': The provided value",
@@ -229,12 +203,7 @@ exports.install = (globalObject, globalNames) => {
229
203
  }
230
204
 
231
205
  get chOff() {
232
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
233
- if ($impl === null) {
234
- throw new globalObject.TypeError(
235
- "'get chOff' called on an object that is not a valid instance of HTMLTableColElement."
236
- );
237
- }
206
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get chOff");
238
207
 
239
208
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
240
209
  try {
@@ -246,12 +215,7 @@ exports.install = (globalObject, globalNames) => {
246
215
  }
247
216
 
248
217
  set chOff(V) {
249
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
250
- if ($impl === null) {
251
- throw new globalObject.TypeError(
252
- "'set chOff' called on an object that is not a valid instance of HTMLTableColElement."
253
- );
254
- }
218
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set chOff");
255
219
 
256
220
  V = conversions["DOMString"](V, {
257
221
  context: "Failed to set the 'chOff' property on 'HTMLTableColElement': The provided value",
@@ -267,12 +231,7 @@ exports.install = (globalObject, globalNames) => {
267
231
  }
268
232
 
269
233
  get vAlign() {
270
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
271
- if ($impl === null) {
272
- throw new globalObject.TypeError(
273
- "'get vAlign' called on an object that is not a valid instance of HTMLTableColElement."
274
- );
275
- }
234
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get vAlign");
276
235
 
277
236
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
278
237
  try {
@@ -284,12 +243,7 @@ exports.install = (globalObject, globalNames) => {
284
243
  }
285
244
 
286
245
  set vAlign(V) {
287
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
288
- if ($impl === null) {
289
- throw new globalObject.TypeError(
290
- "'set vAlign' called on an object that is not a valid instance of HTMLTableColElement."
291
- );
292
- }
246
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set vAlign");
293
247
 
294
248
  V = conversions["DOMString"](V, {
295
249
  context: "Failed to set the 'vAlign' property on 'HTMLTableColElement': The provided value",
@@ -305,12 +259,7 @@ exports.install = (globalObject, globalNames) => {
305
259
  }
306
260
 
307
261
  get width() {
308
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
309
- if ($impl === null) {
310
- throw new globalObject.TypeError(
311
- "'get width' called on an object that is not a valid instance of HTMLTableColElement."
312
- );
313
- }
262
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get width");
314
263
 
315
264
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
316
265
  try {
@@ -322,12 +271,7 @@ exports.install = (globalObject, globalNames) => {
322
271
  }
323
272
 
324
273
  set width(V) {
325
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
326
- if ($impl === null) {
327
- throw new globalObject.TypeError(
328
- "'set width' called on an object that is not a valid instance of HTMLTableColElement."
329
- );
330
- }
274
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set width");
331
275
 
332
276
  V = conversions["DOMString"](V, {
333
277
  context: "Failed to set the 'width' property on 'HTMLTableColElement': The provided value",
@@ -19,6 +19,10 @@ const interfaceName = "HTMLTableElement";
19
19
  const $interfaceDescriptor = utils.createInterfaceDescriptor(() => HTMLElement.interfaceDescriptor);
20
20
  exports.interfaceDescriptor = $interfaceDescriptor;
21
21
 
22
+ function $requireImpl(wrapper, globalObject, context) {
23
+ return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
24
+ }
25
+
22
26
  exports.is = value => {
23
27
  return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
24
28
  };
@@ -102,24 +106,12 @@ exports.install = (globalObject, globalNames) => {
102
106
  }
103
107
 
104
108
  createCaption() {
105
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
106
- if ($impl === null) {
107
- throw new globalObject.TypeError(
108
- "'createCaption' called on an object that is not a valid instance of HTMLTableElement."
109
- );
110
- }
111
-
109
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "createCaption");
112
110
  return utils.tryWrapperForImpl($impl.createCaption());
113
111
  }
114
112
 
115
113
  deleteCaption() {
116
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
117
- if ($impl === null) {
118
- throw new globalObject.TypeError(
119
- "'deleteCaption' called on an object that is not a valid instance of HTMLTableElement."
120
- );
121
- }
122
-
114
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "deleteCaption");
123
115
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
124
116
  try {
125
117
  return $impl.deleteCaption();
@@ -129,24 +121,12 @@ exports.install = (globalObject, globalNames) => {
129
121
  }
130
122
 
131
123
  createTHead() {
132
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
133
- if ($impl === null) {
134
- throw new globalObject.TypeError(
135
- "'createTHead' called on an object that is not a valid instance of HTMLTableElement."
136
- );
137
- }
138
-
124
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "createTHead");
139
125
  return utils.tryWrapperForImpl($impl.createTHead());
140
126
  }
141
127
 
142
128
  deleteTHead() {
143
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
144
- if ($impl === null) {
145
- throw new globalObject.TypeError(
146
- "'deleteTHead' called on an object that is not a valid instance of HTMLTableElement."
147
- );
148
- }
149
-
129
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "deleteTHead");
150
130
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
151
131
  try {
152
132
  return $impl.deleteTHead();
@@ -156,24 +136,12 @@ exports.install = (globalObject, globalNames) => {
156
136
  }
157
137
 
158
138
  createTFoot() {
159
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
160
- if ($impl === null) {
161
- throw new globalObject.TypeError(
162
- "'createTFoot' called on an object that is not a valid instance of HTMLTableElement."
163
- );
164
- }
165
-
139
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "createTFoot");
166
140
  return utils.tryWrapperForImpl($impl.createTFoot());
167
141
  }
168
142
 
169
143
  deleteTFoot() {
170
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
171
- if ($impl === null) {
172
- throw new globalObject.TypeError(
173
- "'deleteTFoot' called on an object that is not a valid instance of HTMLTableElement."
174
- );
175
- }
176
-
144
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "deleteTFoot");
177
145
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
178
146
  try {
179
147
  return $impl.deleteTFoot();
@@ -183,23 +151,12 @@ exports.install = (globalObject, globalNames) => {
183
151
  }
184
152
 
185
153
  createTBody() {
186
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
187
- if ($impl === null) {
188
- throw new globalObject.TypeError(
189
- "'createTBody' called on an object that is not a valid instance of HTMLTableElement."
190
- );
191
- }
192
-
154
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "createTBody");
193
155
  return utils.tryWrapperForImpl($impl.createTBody());
194
156
  }
195
157
 
196
158
  insertRow() {
197
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
198
- if ($impl === null) {
199
- throw new globalObject.TypeError(
200
- "'insertRow' called on an object that is not a valid instance of HTMLTableElement."
201
- );
202
- }
159
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "insertRow");
203
160
  const args = [];
204
161
  {
205
162
  let curArg = arguments[0];
@@ -217,13 +174,7 @@ exports.install = (globalObject, globalNames) => {
217
174
  }
218
175
 
219
176
  deleteRow(index) {
220
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
221
- if ($impl === null) {
222
- throw new globalObject.TypeError(
223
- "'deleteRow' called on an object that is not a valid instance of HTMLTableElement."
224
- );
225
- }
226
-
177
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "deleteRow");
227
178
  if (arguments.length < 1) {
228
179
  throw new globalObject.TypeError(
229
180
  `Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only ${arguments.length} present.`
@@ -247,12 +198,7 @@ exports.install = (globalObject, globalNames) => {
247
198
  }
248
199
 
249
200
  get caption() {
250
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
251
- if ($impl === null) {
252
- throw new globalObject.TypeError(
253
- "'get caption' called on an object that is not a valid instance of HTMLTableElement."
254
- );
255
- }
201
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get caption");
256
202
 
257
203
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
258
204
  try {
@@ -263,12 +209,7 @@ exports.install = (globalObject, globalNames) => {
263
209
  }
264
210
 
265
211
  set caption(V) {
266
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
267
- if ($impl === null) {
268
- throw new globalObject.TypeError(
269
- "'set caption' called on an object that is not a valid instance of HTMLTableElement."
270
- );
271
- }
212
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set caption");
272
213
 
273
214
  if (V === null || V === undefined) {
274
215
  V = null;
@@ -287,12 +228,7 @@ exports.install = (globalObject, globalNames) => {
287
228
  }
288
229
 
289
230
  get tHead() {
290
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
291
- if ($impl === null) {
292
- throw new globalObject.TypeError(
293
- "'get tHead' called on an object that is not a valid instance of HTMLTableElement."
294
- );
295
- }
231
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get tHead");
296
232
 
297
233
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
298
234
  try {
@@ -303,12 +239,7 @@ exports.install = (globalObject, globalNames) => {
303
239
  }
304
240
 
305
241
  set tHead(V) {
306
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
307
- if ($impl === null) {
308
- throw new globalObject.TypeError(
309
- "'set tHead' called on an object that is not a valid instance of HTMLTableElement."
310
- );
311
- }
242
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set tHead");
312
243
 
313
244
  if (V === null || V === undefined) {
314
245
  V = null;
@@ -327,12 +258,7 @@ exports.install = (globalObject, globalNames) => {
327
258
  }
328
259
 
329
260
  get tFoot() {
330
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
331
- if ($impl === null) {
332
- throw new globalObject.TypeError(
333
- "'get tFoot' called on an object that is not a valid instance of HTMLTableElement."
334
- );
335
- }
261
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get tFoot");
336
262
 
337
263
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
338
264
  try {
@@ -343,12 +269,7 @@ exports.install = (globalObject, globalNames) => {
343
269
  }
344
270
 
345
271
  set tFoot(V) {
346
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
347
- if ($impl === null) {
348
- throw new globalObject.TypeError(
349
- "'set tFoot' called on an object that is not a valid instance of HTMLTableElement."
350
- );
351
- }
272
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set tFoot");
352
273
 
353
274
  if (V === null || V === undefined) {
354
275
  V = null;
@@ -367,38 +288,21 @@ exports.install = (globalObject, globalNames) => {
367
288
  }
368
289
 
369
290
  get tBodies() {
370
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
371
- if ($impl === null) {
372
- throw new globalObject.TypeError(
373
- "'get tBodies' called on an object that is not a valid instance of HTMLTableElement."
374
- );
375
- }
376
-
291
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get tBodies");
377
292
  return utils.getSameObject(this, "tBodies", () => {
378
293
  return utils.tryWrapperForImpl($impl["tBodies"]);
379
294
  });
380
295
  }
381
296
 
382
297
  get rows() {
383
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
384
- if ($impl === null) {
385
- throw new globalObject.TypeError(
386
- "'get rows' called on an object that is not a valid instance of HTMLTableElement."
387
- );
388
- }
389
-
298
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get rows");
390
299
  return utils.getSameObject(this, "rows", () => {
391
300
  return utils.tryWrapperForImpl($impl["rows"]);
392
301
  });
393
302
  }
394
303
 
395
304
  get align() {
396
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
397
- if ($impl === null) {
398
- throw new globalObject.TypeError(
399
- "'get align' called on an object that is not a valid instance of HTMLTableElement."
400
- );
401
- }
305
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get align");
402
306
 
403
307
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
404
308
  try {
@@ -410,12 +314,7 @@ exports.install = (globalObject, globalNames) => {
410
314
  }
411
315
 
412
316
  set align(V) {
413
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
414
- if ($impl === null) {
415
- throw new globalObject.TypeError(
416
- "'set align' called on an object that is not a valid instance of HTMLTableElement."
417
- );
418
- }
317
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set align");
419
318
 
420
319
  V = conversions["DOMString"](V, {
421
320
  context: "Failed to set the 'align' property on 'HTMLTableElement': The provided value",
@@ -431,12 +330,7 @@ exports.install = (globalObject, globalNames) => {
431
330
  }
432
331
 
433
332
  get border() {
434
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
435
- if ($impl === null) {
436
- throw new globalObject.TypeError(
437
- "'get border' called on an object that is not a valid instance of HTMLTableElement."
438
- );
439
- }
333
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get border");
440
334
 
441
335
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
442
336
  try {
@@ -448,12 +342,7 @@ exports.install = (globalObject, globalNames) => {
448
342
  }
449
343
 
450
344
  set border(V) {
451
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
452
- if ($impl === null) {
453
- throw new globalObject.TypeError(
454
- "'set border' called on an object that is not a valid instance of HTMLTableElement."
455
- );
456
- }
345
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set border");
457
346
 
458
347
  V = conversions["DOMString"](V, {
459
348
  context: "Failed to set the 'border' property on 'HTMLTableElement': The provided value",
@@ -469,12 +358,7 @@ exports.install = (globalObject, globalNames) => {
469
358
  }
470
359
 
471
360
  get frame() {
472
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
473
- if ($impl === null) {
474
- throw new globalObject.TypeError(
475
- "'get frame' called on an object that is not a valid instance of HTMLTableElement."
476
- );
477
- }
361
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get frame");
478
362
 
479
363
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
480
364
  try {
@@ -486,12 +370,7 @@ exports.install = (globalObject, globalNames) => {
486
370
  }
487
371
 
488
372
  set frame(V) {
489
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
490
- if ($impl === null) {
491
- throw new globalObject.TypeError(
492
- "'set frame' called on an object that is not a valid instance of HTMLTableElement."
493
- );
494
- }
373
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set frame");
495
374
 
496
375
  V = conversions["DOMString"](V, {
497
376
  context: "Failed to set the 'frame' property on 'HTMLTableElement': The provided value",
@@ -507,12 +386,7 @@ exports.install = (globalObject, globalNames) => {
507
386
  }
508
387
 
509
388
  get rules() {
510
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
511
- if ($impl === null) {
512
- throw new globalObject.TypeError(
513
- "'get rules' called on an object that is not a valid instance of HTMLTableElement."
514
- );
515
- }
389
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get rules");
516
390
 
517
391
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
518
392
  try {
@@ -524,12 +398,7 @@ exports.install = (globalObject, globalNames) => {
524
398
  }
525
399
 
526
400
  set rules(V) {
527
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
528
- if ($impl === null) {
529
- throw new globalObject.TypeError(
530
- "'set rules' called on an object that is not a valid instance of HTMLTableElement."
531
- );
532
- }
401
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set rules");
533
402
 
534
403
  V = conversions["DOMString"](V, {
535
404
  context: "Failed to set the 'rules' property on 'HTMLTableElement': The provided value",
@@ -545,12 +414,7 @@ exports.install = (globalObject, globalNames) => {
545
414
  }
546
415
 
547
416
  get summary() {
548
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
549
- if ($impl === null) {
550
- throw new globalObject.TypeError(
551
- "'get summary' called on an object that is not a valid instance of HTMLTableElement."
552
- );
553
- }
417
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get summary");
554
418
 
555
419
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
556
420
  try {
@@ -562,12 +426,7 @@ exports.install = (globalObject, globalNames) => {
562
426
  }
563
427
 
564
428
  set summary(V) {
565
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
566
- if ($impl === null) {
567
- throw new globalObject.TypeError(
568
- "'set summary' called on an object that is not a valid instance of HTMLTableElement."
569
- );
570
- }
429
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set summary");
571
430
 
572
431
  V = conversions["DOMString"](V, {
573
432
  context: "Failed to set the 'summary' property on 'HTMLTableElement': The provided value",
@@ -583,12 +442,7 @@ exports.install = (globalObject, globalNames) => {
583
442
  }
584
443
 
585
444
  get width() {
586
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
587
- if ($impl === null) {
588
- throw new globalObject.TypeError(
589
- "'get width' called on an object that is not a valid instance of HTMLTableElement."
590
- );
591
- }
445
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get width");
592
446
 
593
447
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
594
448
  try {
@@ -600,12 +454,7 @@ exports.install = (globalObject, globalNames) => {
600
454
  }
601
455
 
602
456
  set width(V) {
603
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
604
- if ($impl === null) {
605
- throw new globalObject.TypeError(
606
- "'set width' called on an object that is not a valid instance of HTMLTableElement."
607
- );
608
- }
457
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set width");
609
458
 
610
459
  V = conversions["DOMString"](V, {
611
460
  context: "Failed to set the 'width' property on 'HTMLTableElement': The provided value",
@@ -621,12 +470,7 @@ exports.install = (globalObject, globalNames) => {
621
470
  }
622
471
 
623
472
  get bgColor() {
624
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
625
- if ($impl === null) {
626
- throw new globalObject.TypeError(
627
- "'get bgColor' called on an object that is not a valid instance of HTMLTableElement."
628
- );
629
- }
473
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get bgColor");
630
474
 
631
475
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
632
476
  try {
@@ -638,12 +482,7 @@ exports.install = (globalObject, globalNames) => {
638
482
  }
639
483
 
640
484
  set bgColor(V) {
641
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
642
- if ($impl === null) {
643
- throw new globalObject.TypeError(
644
- "'set bgColor' called on an object that is not a valid instance of HTMLTableElement."
645
- );
646
- }
485
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set bgColor");
647
486
 
648
487
  V = conversions["DOMString"](V, {
649
488
  context: "Failed to set the 'bgColor' property on 'HTMLTableElement': The provided value",
@@ -660,12 +499,7 @@ exports.install = (globalObject, globalNames) => {
660
499
  }
661
500
 
662
501
  get cellPadding() {
663
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
664
- if ($impl === null) {
665
- throw new globalObject.TypeError(
666
- "'get cellPadding' called on an object that is not a valid instance of HTMLTableElement."
667
- );
668
- }
502
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get cellPadding");
669
503
 
670
504
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
671
505
  try {
@@ -677,12 +511,7 @@ exports.install = (globalObject, globalNames) => {
677
511
  }
678
512
 
679
513
  set cellPadding(V) {
680
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
681
- if ($impl === null) {
682
- throw new globalObject.TypeError(
683
- "'set cellPadding' called on an object that is not a valid instance of HTMLTableElement."
684
- );
685
- }
514
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set cellPadding");
686
515
 
687
516
  V = conversions["DOMString"](V, {
688
517
  context: "Failed to set the 'cellPadding' property on 'HTMLTableElement': The provided value",
@@ -699,12 +528,7 @@ exports.install = (globalObject, globalNames) => {
699
528
  }
700
529
 
701
530
  get cellSpacing() {
702
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
703
- if ($impl === null) {
704
- throw new globalObject.TypeError(
705
- "'get cellSpacing' called on an object that is not a valid instance of HTMLTableElement."
706
- );
707
- }
531
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get cellSpacing");
708
532
 
709
533
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
710
534
  try {
@@ -716,12 +540,7 @@ exports.install = (globalObject, globalNames) => {
716
540
  }
717
541
 
718
542
  set cellSpacing(V) {
719
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
720
- if ($impl === null) {
721
- throw new globalObject.TypeError(
722
- "'set cellSpacing' called on an object that is not a valid instance of HTMLTableElement."
723
- );
724
- }
543
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set cellSpacing");
725
544
 
726
545
  V = conversions["DOMString"](V, {
727
546
  context: "Failed to set the 'cellSpacing' property on 'HTMLTableElement': The provided value",