@depup/jsdom 28.1.0-depup.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (538) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +38 -0
  3. package/changes.json +38 -0
  4. package/lib/api.js +373 -0
  5. package/lib/generated/event-sets.js +115 -0
  6. package/lib/generated/idl/AbortController.js +143 -0
  7. package/lib/generated/idl/AbortSignal.js +249 -0
  8. package/lib/generated/idl/AbstractRange.js +171 -0
  9. package/lib/generated/idl/AddEventListenerOptions.js +53 -0
  10. package/lib/generated/idl/AssignedNodesOptions.js +28 -0
  11. package/lib/generated/idl/Attr.js +219 -0
  12. package/lib/generated/idl/BarProp.js +117 -0
  13. package/lib/generated/idl/BeforeUnloadEvent.js +139 -0
  14. package/lib/generated/idl/BinaryType.js +12 -0
  15. package/lib/generated/idl/Blob.js +253 -0
  16. package/lib/generated/idl/BlobCallback.js +30 -0
  17. package/lib/generated/idl/BlobEvent.js +157 -0
  18. package/lib/generated/idl/BlobEventInit.js +43 -0
  19. package/lib/generated/idl/BlobPropertyBag.js +42 -0
  20. package/lib/generated/idl/CDATASection.js +109 -0
  21. package/lib/generated/idl/CanPlayTypeResult.js +12 -0
  22. package/lib/generated/idl/CharacterData.js +455 -0
  23. package/lib/generated/idl/CloseEvent.js +168 -0
  24. package/lib/generated/idl/CloseEventInit.js +65 -0
  25. package/lib/generated/idl/Comment.js +120 -0
  26. package/lib/generated/idl/CompositionEvent.js +219 -0
  27. package/lib/generated/idl/CompositionEventInit.js +32 -0
  28. package/lib/generated/idl/Crypto.js +148 -0
  29. package/lib/generated/idl/CustomElementConstructor.js +34 -0
  30. package/lib/generated/idl/CustomElementRegistry.js +269 -0
  31. package/lib/generated/idl/CustomEvent.js +206 -0
  32. package/lib/generated/idl/CustomEventInit.js +32 -0
  33. package/lib/generated/idl/DOMException.js +222 -0
  34. package/lib/generated/idl/DOMImplementation.js +237 -0
  35. package/lib/generated/idl/DOMParser.js +140 -0
  36. package/lib/generated/idl/DOMRect.js +276 -0
  37. package/lib/generated/idl/DOMRectInit.js +76 -0
  38. package/lib/generated/idl/DOMRectReadOnly.js +285 -0
  39. package/lib/generated/idl/DOMStringMap.js +299 -0
  40. package/lib/generated/idl/DOMTokenList.js +539 -0
  41. package/lib/generated/idl/DeviceMotionEvent.js +183 -0
  42. package/lib/generated/idl/DeviceMotionEventAcceleration.js +145 -0
  43. package/lib/generated/idl/DeviceMotionEventAccelerationInit.js +61 -0
  44. package/lib/generated/idl/DeviceMotionEventInit.js +70 -0
  45. package/lib/generated/idl/DeviceMotionEventRotationRate.js +145 -0
  46. package/lib/generated/idl/DeviceMotionEventRotationRateInit.js +61 -0
  47. package/lib/generated/idl/DeviceOrientationEvent.js +183 -0
  48. package/lib/generated/idl/DeviceOrientationEventInit.js +80 -0
  49. package/lib/generated/idl/Document.js +4511 -0
  50. package/lib/generated/idl/DocumentFragment.js +336 -0
  51. package/lib/generated/idl/DocumentReadyState.js +12 -0
  52. package/lib/generated/idl/DocumentType.js +254 -0
  53. package/lib/generated/idl/Element.js +3720 -0
  54. package/lib/generated/idl/ElementCreationOptions.js +26 -0
  55. package/lib/generated/idl/ElementDefinitionOptions.js +29 -0
  56. package/lib/generated/idl/ElementInternals.js +2152 -0
  57. package/lib/generated/idl/EndingType.js +12 -0
  58. package/lib/generated/idl/ErrorEvent.js +192 -0
  59. package/lib/generated/idl/ErrorEventInit.js +92 -0
  60. package/lib/generated/idl/Event.js +430 -0
  61. package/lib/generated/idl/EventHandlerNonNull.js +36 -0
  62. package/lib/generated/idl/EventInit.js +58 -0
  63. package/lib/generated/idl/EventListener.js +35 -0
  64. package/lib/generated/idl/EventListenerOptions.js +28 -0
  65. package/lib/generated/idl/EventModifierInit.js +221 -0
  66. package/lib/generated/idl/EventTarget.js +259 -0
  67. package/lib/generated/idl/External.js +130 -0
  68. package/lib/generated/idl/File.js +185 -0
  69. package/lib/generated/idl/FileList.js +298 -0
  70. package/lib/generated/idl/FilePropertyBag.js +33 -0
  71. package/lib/generated/idl/FileReader.js +468 -0
  72. package/lib/generated/idl/FocusEvent.js +144 -0
  73. package/lib/generated/idl/FocusEventInit.js +36 -0
  74. package/lib/generated/idl/FormData.js +468 -0
  75. package/lib/generated/idl/Function.js +42 -0
  76. package/lib/generated/idl/GetRootNodeOptions.js +31 -0
  77. package/lib/generated/idl/HTMLAnchorElement.js +1026 -0
  78. package/lib/generated/idl/HTMLAreaElement.js +825 -0
  79. package/lib/generated/idl/HTMLAudioElement.js +111 -0
  80. package/lib/generated/idl/HTMLBRElement.js +156 -0
  81. package/lib/generated/idl/HTMLBaseElement.js +196 -0
  82. package/lib/generated/idl/HTMLBodyElement.js +880 -0
  83. package/lib/generated/idl/HTMLButtonElement.js +525 -0
  84. package/lib/generated/idl/HTMLCanvasElement.js +307 -0
  85. package/lib/generated/idl/HTMLCollection.js +352 -0
  86. package/lib/generated/idl/HTMLDListElement.js +159 -0
  87. package/lib/generated/idl/HTMLDataElement.js +156 -0
  88. package/lib/generated/idl/HTMLDataListElement.js +126 -0
  89. package/lib/generated/idl/HTMLDetailsElement.js +159 -0
  90. package/lib/generated/idl/HTMLDialogElement.js +159 -0
  91. package/lib/generated/idl/HTMLDirectoryElement.js +159 -0
  92. package/lib/generated/idl/HTMLDivElement.js +156 -0
  93. package/lib/generated/idl/HTMLElement.js +3492 -0
  94. package/lib/generated/idl/HTMLEmbedElement.js +381 -0
  95. package/lib/generated/idl/HTMLFieldSetElement.js +332 -0
  96. package/lib/generated/idl/HTMLFontElement.js +239 -0
  97. package/lib/generated/idl/HTMLFormControlsCollection.js +318 -0
  98. package/lib/generated/idl/HTMLFormElement.js +661 -0
  99. package/lib/generated/idl/HTMLFrameElement.js +513 -0
  100. package/lib/generated/idl/HTMLFrameSetElement.js +711 -0
  101. package/lib/generated/idl/HTMLHRElement.js +323 -0
  102. package/lib/generated/idl/HTMLHeadElement.js +111 -0
  103. package/lib/generated/idl/HTMLHeadingElement.js +156 -0
  104. package/lib/generated/idl/HTMLHtmlElement.js +156 -0
  105. package/lib/generated/idl/HTMLIFrameElement.js +689 -0
  106. package/lib/generated/idl/HTMLImageElement.js +906 -0
  107. package/lib/generated/idl/HTMLInputElement.js +1931 -0
  108. package/lib/generated/idl/HTMLLIElement.js +204 -0
  109. package/lib/generated/idl/HTMLLabelElement.js +182 -0
  110. package/lib/generated/idl/HTMLLegendElement.js +169 -0
  111. package/lib/generated/idl/HTMLLinkElement.js +555 -0
  112. package/lib/generated/idl/HTMLMapElement.js +171 -0
  113. package/lib/generated/idl/HTMLMarqueeElement.js +558 -0
  114. package/lib/generated/idl/HTMLMediaElement.js +900 -0
  115. package/lib/generated/idl/HTMLMenuElement.js +159 -0
  116. package/lib/generated/idl/HTMLMetaElement.js +279 -0
  117. package/lib/generated/idl/HTMLMeterElement.js +368 -0
  118. package/lib/generated/idl/HTMLModElement.js +217 -0
  119. package/lib/generated/idl/HTMLOListElement.js +284 -0
  120. package/lib/generated/idl/HTMLObjectElement.js +945 -0
  121. package/lib/generated/idl/HTMLOptGroupElement.js +200 -0
  122. package/lib/generated/idl/HTMLOptionElement.js +379 -0
  123. package/lib/generated/idl/HTMLOptionsCollection.js +513 -0
  124. package/lib/generated/idl/HTMLOutputElement.js +395 -0
  125. package/lib/generated/idl/HTMLParagraphElement.js +156 -0
  126. package/lib/generated/idl/HTMLParamElement.js +279 -0
  127. package/lib/generated/idl/HTMLPictureElement.js +111 -0
  128. package/lib/generated/idl/HTMLPreElement.js +163 -0
  129. package/lib/generated/idl/HTMLProgressElement.js +232 -0
  130. package/lib/generated/idl/HTMLQuoteElement.js +176 -0
  131. package/lib/generated/idl/HTMLScriptElement.js +472 -0
  132. package/lib/generated/idl/HTMLSelectElement.js +993 -0
  133. package/lib/generated/idl/HTMLSlotElement.js +195 -0
  134. package/lib/generated/idl/HTMLSourceElement.js +340 -0
  135. package/lib/generated/idl/HTMLSpanElement.js +111 -0
  136. package/lib/generated/idl/HTMLStyleElement.js +210 -0
  137. package/lib/generated/idl/HTMLTableCaptionElement.js +156 -0
  138. package/lib/generated/idl/HTMLTableCellElement.js +733 -0
  139. package/lib/generated/idl/HTMLTableColElement.js +376 -0
  140. package/lib/generated/idl/HTMLTableElement.js +802 -0
  141. package/lib/generated/idl/HTMLTableRowElement.js +417 -0
  142. package/lib/generated/idl/HTMLTableSectionElement.js +349 -0
  143. package/lib/generated/idl/HTMLTemplateElement.js +124 -0
  144. package/lib/generated/idl/HTMLTextAreaElement.js +1210 -0
  145. package/lib/generated/idl/HTMLTimeElement.js +156 -0
  146. package/lib/generated/idl/HTMLTitleElement.js +155 -0
  147. package/lib/generated/idl/HTMLTrackElement.js +366 -0
  148. package/lib/generated/idl/HTMLUListElement.js +200 -0
  149. package/lib/generated/idl/HTMLUnknownElement.js +109 -0
  150. package/lib/generated/idl/HTMLVideoElement.js +344 -0
  151. package/lib/generated/idl/HashChangeEvent.js +157 -0
  152. package/lib/generated/idl/HashChangeEventInit.js +50 -0
  153. package/lib/generated/idl/Headers.js +418 -0
  154. package/lib/generated/idl/History.js +266 -0
  155. package/lib/generated/idl/InputEvent.js +168 -0
  156. package/lib/generated/idl/InputEventInit.js +68 -0
  157. package/lib/generated/idl/KeyboardEvent.js +445 -0
  158. package/lib/generated/idl/KeyboardEventInit.js +116 -0
  159. package/lib/generated/idl/Location.js +404 -0
  160. package/lib/generated/idl/MessageEvent.js +317 -0
  161. package/lib/generated/idl/MessageEventInit.js +100 -0
  162. package/lib/generated/idl/MimeType.js +156 -0
  163. package/lib/generated/idl/MimeTypeArray.js +326 -0
  164. package/lib/generated/idl/MouseEvent.js +595 -0
  165. package/lib/generated/idl/MouseEventInit.js +189 -0
  166. package/lib/generated/idl/MutationCallback.js +34 -0
  167. package/lib/generated/idl/MutationObserver.js +178 -0
  168. package/lib/generated/idl/MutationObserverInit.js +121 -0
  169. package/lib/generated/idl/MutationRecord.js +229 -0
  170. package/lib/generated/idl/NamedNodeMap.js +529 -0
  171. package/lib/generated/idl/Navigator.js +326 -0
  172. package/lib/generated/idl/Node.js +765 -0
  173. package/lib/generated/idl/NodeFilter.js +75 -0
  174. package/lib/generated/idl/NodeIterator.js +207 -0
  175. package/lib/generated/idl/NodeList.js +302 -0
  176. package/lib/generated/idl/OnBeforeUnloadEventHandlerNonNull.js +42 -0
  177. package/lib/generated/idl/OnErrorEventHandlerNonNull.js +56 -0
  178. package/lib/generated/idl/PageTransitionEvent.js +144 -0
  179. package/lib/generated/idl/PageTransitionEventInit.js +35 -0
  180. package/lib/generated/idl/Performance.js +142 -0
  181. package/lib/generated/idl/Plugin.js +359 -0
  182. package/lib/generated/idl/PluginArray.js +336 -0
  183. package/lib/generated/idl/PointerEvent.js +324 -0
  184. package/lib/generated/idl/PointerEventInit.js +241 -0
  185. package/lib/generated/idl/PopStateEvent.js +144 -0
  186. package/lib/generated/idl/PopStateEventInit.js +32 -0
  187. package/lib/generated/idl/ProcessingInstruction.js +122 -0
  188. package/lib/generated/idl/ProgressEvent.js +170 -0
  189. package/lib/generated/idl/ProgressEventInit.js +65 -0
  190. package/lib/generated/idl/PromiseRejectionEvent.js +157 -0
  191. package/lib/generated/idl/PromiseRejectionEventInit.js +42 -0
  192. package/lib/generated/idl/RadioNodeList.js +296 -0
  193. package/lib/generated/idl/Range.js +643 -0
  194. package/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +136 -0
  195. package/lib/generated/idl/SVGAnimatedRect.js +136 -0
  196. package/lib/generated/idl/SVGAnimatedString.js +149 -0
  197. package/lib/generated/idl/SVGBoundingBoxOptions.js +64 -0
  198. package/lib/generated/idl/SVGDefsElement.js +109 -0
  199. package/lib/generated/idl/SVGDescElement.js +109 -0
  200. package/lib/generated/idl/SVGElement.js +3157 -0
  201. package/lib/generated/idl/SVGGElement.js +109 -0
  202. package/lib/generated/idl/SVGGraphicsElement.js +139 -0
  203. package/lib/generated/idl/SVGMetadataElement.js +109 -0
  204. package/lib/generated/idl/SVGNumber.js +132 -0
  205. package/lib/generated/idl/SVGPreserveAspectRatio.js +196 -0
  206. package/lib/generated/idl/SVGRect.js +210 -0
  207. package/lib/generated/idl/SVGSVGElement.js +786 -0
  208. package/lib/generated/idl/SVGStringList.js +511 -0
  209. package/lib/generated/idl/SVGSwitchElement.js +109 -0
  210. package/lib/generated/idl/SVGSymbolElement.js +146 -0
  211. package/lib/generated/idl/SVGTitleElement.js +109 -0
  212. package/lib/generated/idl/Screen.js +180 -0
  213. package/lib/generated/idl/ScrollBehavior.js +12 -0
  214. package/lib/generated/idl/ScrollIntoViewOptions.js +45 -0
  215. package/lib/generated/idl/ScrollLogicalPosition.js +14 -0
  216. package/lib/generated/idl/ScrollOptions.js +30 -0
  217. package/lib/generated/idl/ScrollRestoration.js +12 -0
  218. package/lib/generated/idl/Selection.js +571 -0
  219. package/lib/generated/idl/SelectionMode.js +12 -0
  220. package/lib/generated/idl/ShadowRoot.js +189 -0
  221. package/lib/generated/idl/ShadowRootInit.js +30 -0
  222. package/lib/generated/idl/ShadowRootMode.js +12 -0
  223. package/lib/generated/idl/StaticRange.js +123 -0
  224. package/lib/generated/idl/StaticRangeInit.js +72 -0
  225. package/lib/generated/idl/Storage.js +397 -0
  226. package/lib/generated/idl/StorageEvent.js +318 -0
  227. package/lib/generated/idl/StorageEventInit.js +99 -0
  228. package/lib/generated/idl/StyleSheetList.js +300 -0
  229. package/lib/generated/idl/SubmitEvent.js +144 -0
  230. package/lib/generated/idl/SubmitEventInit.js +36 -0
  231. package/lib/generated/idl/SupportedType.js +18 -0
  232. package/lib/generated/idl/Text.js +170 -0
  233. package/lib/generated/idl/TextDecodeOptions.js +28 -0
  234. package/lib/generated/idl/TextDecoder.js +211 -0
  235. package/lib/generated/idl/TextDecoderOptions.js +43 -0
  236. package/lib/generated/idl/TextEncoder.js +176 -0
  237. package/lib/generated/idl/TextEncoderEncodeIntoResult.js +42 -0
  238. package/lib/generated/idl/TextTrackKind.js +12 -0
  239. package/lib/generated/idl/TouchEvent.js +222 -0
  240. package/lib/generated/idl/TouchEventInit.js +89 -0
  241. package/lib/generated/idl/TransitionEvent.js +170 -0
  242. package/lib/generated/idl/TransitionEventInit.js +65 -0
  243. package/lib/generated/idl/TreeWalker.js +255 -0
  244. package/lib/generated/idl/UIEvent.js +235 -0
  245. package/lib/generated/idl/UIEventInit.js +62 -0
  246. package/lib/generated/idl/ValidityState.js +249 -0
  247. package/lib/generated/idl/VisibilityState.js +12 -0
  248. package/lib/generated/idl/VoidFunction.js +26 -0
  249. package/lib/generated/idl/WebSocket.js +480 -0
  250. package/lib/generated/idl/WheelEvent.js +191 -0
  251. package/lib/generated/idl/WheelEventInit.js +71 -0
  252. package/lib/generated/idl/XMLDocument.js +109 -0
  253. package/lib/generated/idl/XMLHttpRequest.js +663 -0
  254. package/lib/generated/idl/XMLHttpRequestEventTarget.js +334 -0
  255. package/lib/generated/idl/XMLHttpRequestResponseType.js +14 -0
  256. package/lib/generated/idl/XMLHttpRequestUpload.js +109 -0
  257. package/lib/generated/idl/XMLSerializer.js +132 -0
  258. package/lib/generated/idl/utils.js +252 -0
  259. package/lib/generated/js-globals.json +332 -0
  260. package/lib/jsdom/browser/Window.js +952 -0
  261. package/lib/jsdom/browser/default-stylesheet.css +415 -0
  262. package/lib/jsdom/browser/not-implemented.js +20 -0
  263. package/lib/jsdom/browser/parser/html.js +208 -0
  264. package/lib/jsdom/browser/parser/index.js +37 -0
  265. package/lib/jsdom/browser/parser/xml.js +202 -0
  266. package/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
  267. package/lib/jsdom/browser/resources/decompress-interceptor.js +184 -0
  268. package/lib/jsdom/browser/resources/jsdom-dispatcher.js +756 -0
  269. package/lib/jsdom/browser/resources/per-document-resource-loader.js +116 -0
  270. package/lib/jsdom/browser/resources/request-interceptor.js +171 -0
  271. package/lib/jsdom/browser/resources/request-manager.js +33 -0
  272. package/lib/jsdom/browser/resources/resource-queue.js +142 -0
  273. package/lib/jsdom/browser/resources/stream-handler.js +89 -0
  274. package/lib/jsdom/level2/style.js +65 -0
  275. package/lib/jsdom/level3/xpath.js +1875 -0
  276. package/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
  277. package/lib/jsdom/living/aborting/AbortSignal-impl.js +131 -0
  278. package/lib/jsdom/living/attributes/Attr-impl.js +60 -0
  279. package/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
  280. package/lib/jsdom/living/attributes.js +312 -0
  281. package/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
  282. package/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
  283. package/lib/jsdom/living/crypto/Crypto-impl.js +68 -0
  284. package/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
  285. package/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +279 -0
  286. package/lib/jsdom/living/custom-elements/ElementInternals-impl.js +56 -0
  287. package/lib/jsdom/living/deviceorientation/DeviceMotionEventAcceleration-impl.js +7 -0
  288. package/lib/jsdom/living/deviceorientation/DeviceMotionEventRotationRate-impl.js +7 -0
  289. package/lib/jsdom/living/documents.js +15 -0
  290. package/lib/jsdom/living/domparsing/DOMParser-impl.js +59 -0
  291. package/lib/jsdom/living/domparsing/InnerHTML-impl.js +30 -0
  292. package/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
  293. package/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
  294. package/lib/jsdom/living/domparsing/serialization.js +36 -0
  295. package/lib/jsdom/living/encoding/TextDecoder-impl.js +25 -0
  296. package/lib/jsdom/living/encoding/TextEncoder-impl.js +26 -0
  297. package/lib/jsdom/living/events/BeforeUnloadEvent-impl.js +12 -0
  298. package/lib/jsdom/living/events/BlobEvent-impl.js +14 -0
  299. package/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
  300. package/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
  301. package/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
  302. package/lib/jsdom/living/events/DeviceMotionEvent-impl.js +49 -0
  303. package/lib/jsdom/living/events/DeviceOrientationEvent-impl.js +10 -0
  304. package/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
  305. package/lib/jsdom/living/events/Event-impl.js +195 -0
  306. package/lib/jsdom/living/events/EventModifierMixin-impl.js +24 -0
  307. package/lib/jsdom/living/events/EventTarget-impl.js +438 -0
  308. package/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
  309. package/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
  310. package/lib/jsdom/living/events/InputEvent-impl.js +11 -0
  311. package/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
  312. package/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
  313. package/lib/jsdom/living/events/MouseEvent-impl.js +72 -0
  314. package/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
  315. package/lib/jsdom/living/events/PointerEvent-impl.js +21 -0
  316. package/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
  317. package/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
  318. package/lib/jsdom/living/events/PromiseRejectionEvent-impl.js +14 -0
  319. package/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
  320. package/lib/jsdom/living/events/SubmitEvent-impl.js +13 -0
  321. package/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
  322. package/lib/jsdom/living/events/TransitionEvent-impl.js +10 -0
  323. package/lib/jsdom/living/events/UIEvent-impl.js +43 -0
  324. package/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
  325. package/lib/jsdom/living/fetch/Headers-impl.js +173 -0
  326. package/lib/jsdom/living/fetch/header-list.js +158 -0
  327. package/lib/jsdom/living/fetch/header-types.js +205 -0
  328. package/lib/jsdom/living/fetch/header-utils.js +26 -0
  329. package/lib/jsdom/living/file-api/Blob-impl.js +125 -0
  330. package/lib/jsdom/living/file-api/File-impl.js +12 -0
  331. package/lib/jsdom/living/file-api/FileList-impl.js +15 -0
  332. package/lib/jsdom/living/file-api/FileReader-impl.js +148 -0
  333. package/lib/jsdom/living/geometry/DOMRect-impl.js +39 -0
  334. package/lib/jsdom/living/geometry/DOMRectReadOnly-impl.js +72 -0
  335. package/lib/jsdom/living/helpers/binary-data.js +63 -0
  336. package/lib/jsdom/living/helpers/by-id-cache.js +67 -0
  337. package/lib/jsdom/living/helpers/colors.js +245 -0
  338. package/lib/jsdom/living/helpers/create-element.js +329 -0
  339. package/lib/jsdom/living/helpers/create-event-accessor.js +209 -0
  340. package/lib/jsdom/living/helpers/custom-elements.js +272 -0
  341. package/lib/jsdom/living/helpers/dates-and-times.js +270 -0
  342. package/lib/jsdom/living/helpers/details.js +15 -0
  343. package/lib/jsdom/living/helpers/encoding.js +60 -0
  344. package/lib/jsdom/living/helpers/events.js +24 -0
  345. package/lib/jsdom/living/helpers/focusing.js +104 -0
  346. package/lib/jsdom/living/helpers/form-controls.js +309 -0
  347. package/lib/jsdom/living/helpers/html-constructor.js +78 -0
  348. package/lib/jsdom/living/helpers/internal-constants.js +12 -0
  349. package/lib/jsdom/living/helpers/is-window.js +18 -0
  350. package/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
  351. package/lib/jsdom/living/helpers/json.js +7 -0
  352. package/lib/jsdom/living/helpers/mutation-observers.js +198 -0
  353. package/lib/jsdom/living/helpers/namespaces.js +16 -0
  354. package/lib/jsdom/living/helpers/node.js +108 -0
  355. package/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
  356. package/lib/jsdom/living/helpers/ordered-set.js +104 -0
  357. package/lib/jsdom/living/helpers/page-transition-event.js +9 -0
  358. package/lib/jsdom/living/helpers/runtime-script-errors.js +75 -0
  359. package/lib/jsdom/living/helpers/shadow-dom.js +285 -0
  360. package/lib/jsdom/living/helpers/strings.js +168 -0
  361. package/lib/jsdom/living/helpers/style-rules.js +404 -0
  362. package/lib/jsdom/living/helpers/stylesheets.js +148 -0
  363. package/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
  364. package/lib/jsdom/living/helpers/svg/render.js +46 -0
  365. package/lib/jsdom/living/helpers/system-colors.js +147 -0
  366. package/lib/jsdom/living/helpers/text.js +19 -0
  367. package/lib/jsdom/living/helpers/traversal.js +72 -0
  368. package/lib/jsdom/living/helpers/validate-names.js +65 -0
  369. package/lib/jsdom/living/hr-time/Performance-impl.js +22 -0
  370. package/lib/jsdom/living/interfaces.js +252 -0
  371. package/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
  372. package/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
  373. package/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
  374. package/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
  375. package/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
  376. package/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
  377. package/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
  378. package/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
  379. package/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
  380. package/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
  381. package/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
  382. package/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
  383. package/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
  384. package/lib/jsdom/living/node-document-position.js +10 -0
  385. package/lib/jsdom/living/node-type.js +16 -0
  386. package/lib/jsdom/living/node.js +331 -0
  387. package/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
  388. package/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
  389. package/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
  390. package/lib/jsdom/living/nodes/Comment-impl.js +20 -0
  391. package/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
  392. package/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
  393. package/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
  394. package/lib/jsdom/living/nodes/Document-impl.js +1000 -0
  395. package/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
  396. package/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
  397. package/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
  398. package/lib/jsdom/living/nodes/Element-impl.js +584 -0
  399. package/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +22 -0
  400. package/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
  401. package/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +81 -0
  402. package/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
  403. package/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
  404. package/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
  405. package/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
  406. package/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +44 -0
  407. package/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +12 -0
  408. package/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
  409. package/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +136 -0
  410. package/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
  411. package/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
  412. package/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
  413. package/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
  414. package/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
  415. package/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
  416. package/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
  417. package/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
  418. package/lib/jsdom/living/nodes/HTMLElement-impl.js +211 -0
  419. package/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
  420. package/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
  421. package/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
  422. package/lib/jsdom/living/nodes/HTMLFormControlsCollection-impl.js +33 -0
  423. package/lib/jsdom/living/nodes/HTMLFormElement-impl.js +248 -0
  424. package/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +266 -0
  425. package/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +12 -0
  426. package/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
  427. package/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
  428. package/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
  429. package/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
  430. package/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +368 -0
  431. package/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
  432. package/lib/jsdom/living/nodes/HTMLImageElement-impl.js +127 -0
  433. package/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1097 -0
  434. package/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
  435. package/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
  436. package/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
  437. package/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +107 -0
  438. package/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
  439. package/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
  440. package/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
  441. package/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
  442. package/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
  443. package/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
  444. package/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
  445. package/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
  446. package/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
  447. package/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
  448. package/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
  449. package/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
  450. package/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +88 -0
  451. package/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
  452. package/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
  453. package/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
  454. package/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
  455. package/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
  456. package/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +72 -0
  457. package/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
  458. package/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +255 -0
  459. package/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
  460. package/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
  461. package/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
  462. package/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
  463. package/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +76 -0
  464. package/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
  465. package/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
  466. package/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
  467. package/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
  468. package/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
  469. package/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
  470. package/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
  471. package/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +244 -0
  472. package/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
  473. package/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
  474. package/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
  475. package/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
  476. package/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
  477. package/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
  478. package/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
  479. package/lib/jsdom/living/nodes/Node-impl.js +1179 -0
  480. package/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
  481. package/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
  482. package/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
  483. package/lib/jsdom/living/nodes/ParentNode-impl.js +90 -0
  484. package/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
  485. package/lib/jsdom/living/nodes/RadioNodeList-impl.js +49 -0
  486. package/lib/jsdom/living/nodes/SVGDefsElement-impl.js +9 -0
  487. package/lib/jsdom/living/nodes/SVGDescElement-impl.js +9 -0
  488. package/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
  489. package/lib/jsdom/living/nodes/SVGGElement-impl.js +9 -0
  490. package/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
  491. package/lib/jsdom/living/nodes/SVGMetadataElement-impl.js +9 -0
  492. package/lib/jsdom/living/nodes/SVGSVGElement-impl.js +40 -0
  493. package/lib/jsdom/living/nodes/SVGSwitchElement-impl.js +9 -0
  494. package/lib/jsdom/living/nodes/SVGSymbolElement-impl.js +9 -0
  495. package/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
  496. package/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
  497. package/lib/jsdom/living/nodes/ShadowRoot-impl.js +41 -0
  498. package/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
  499. package/lib/jsdom/living/nodes/Text-impl.js +96 -0
  500. package/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +14 -0
  501. package/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
  502. package/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
  503. package/lib/jsdom/living/range/Range-impl.js +902 -0
  504. package/lib/jsdom/living/range/StaticRange-impl.js +39 -0
  505. package/lib/jsdom/living/range/boundary-point.js +47 -0
  506. package/lib/jsdom/living/selection/Selection-impl.js +358 -0
  507. package/lib/jsdom/living/svg/SVGAnimatedPreserveAspectRatio-impl.js +24 -0
  508. package/lib/jsdom/living/svg/SVGAnimatedRect-impl.js +122 -0
  509. package/lib/jsdom/living/svg/SVGAnimatedString-impl.js +42 -0
  510. package/lib/jsdom/living/svg/SVGListBase.js +195 -0
  511. package/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
  512. package/lib/jsdom/living/svg/SVGPreserveAspectRatio-impl.js +100 -0
  513. package/lib/jsdom/living/svg/SVGRect-impl.js +143 -0
  514. package/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
  515. package/lib/jsdom/living/traversal/NodeIterator-impl.js +107 -0
  516. package/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
  517. package/lib/jsdom/living/traversal/helpers.js +44 -0
  518. package/lib/jsdom/living/webidl/DOMException-impl.js +46 -0
  519. package/lib/jsdom/living/websockets/WebSocket-impl.js +211 -0
  520. package/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
  521. package/lib/jsdom/living/window/BarProp-impl.js +10 -0
  522. package/lib/jsdom/living/window/External-impl.js +9 -0
  523. package/lib/jsdom/living/window/History-impl.js +148 -0
  524. package/lib/jsdom/living/window/Location-impl.js +227 -0
  525. package/lib/jsdom/living/window/Screen-impl.js +13 -0
  526. package/lib/jsdom/living/window/SessionHistory.js +163 -0
  527. package/lib/jsdom/living/window/navigation.js +87 -0
  528. package/lib/jsdom/living/window-properties.js +241 -0
  529. package/lib/jsdom/living/xhr/FormData-impl.js +191 -0
  530. package/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1057 -0
  531. package/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
  532. package/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
  533. package/lib/jsdom/living/xhr/multipart-form-data.js +99 -0
  534. package/lib/jsdom/living/xhr/xhr-sync-worker.js +51 -0
  535. package/lib/jsdom/living/xhr/xhr-utils.js +206 -0
  536. package/lib/jsdom/utils.js +105 -0
  537. package/lib/jsdom/virtual-console.js +46 -0
  538. package/package.json +143 -0
@@ -0,0 +1,3720 @@
1
+ "use strict";
2
+
3
+ const conversions = require("webidl-conversions");
4
+ const utils = require("./utils.js");
5
+
6
+ const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
7
+ require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
8
+ const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
9
+ require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
10
+ const Attr = require("./Attr.js");
11
+ const ShadowRootInit = require("./ShadowRootInit.js");
12
+ const Node = require("./Node.js");
13
+ const implSymbol = utils.implSymbol;
14
+ const ctorRegistrySymbol = utils.ctorRegistrySymbol;
15
+
16
+ const interfaceName = "Element";
17
+
18
+ exports.is = value => {
19
+ return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
20
+ };
21
+ exports.isImpl = value => {
22
+ return utils.isObject(value) && value instanceof Impl.implementation;
23
+ };
24
+ exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
25
+ if (exports.is(value)) {
26
+ return utils.implForWrapper(value);
27
+ }
28
+ throw new globalObject.TypeError(`${context} is not of type 'Element'.`);
29
+ };
30
+
31
+ function makeWrapper(globalObject, newTarget) {
32
+ let proto;
33
+ if (newTarget !== undefined) {
34
+ proto = newTarget.prototype;
35
+ }
36
+
37
+ if (!utils.isObject(proto)) {
38
+ proto = globalObject[ctorRegistrySymbol]["Element"].prototype;
39
+ }
40
+
41
+ return Object.create(proto);
42
+ }
43
+
44
+ exports.create = (globalObject, constructorArgs, privateData) => {
45
+ const wrapper = makeWrapper(globalObject);
46
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
47
+ };
48
+
49
+ exports.createImpl = (globalObject, constructorArgs, privateData) => {
50
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
51
+ return utils.implForWrapper(wrapper);
52
+ };
53
+
54
+ exports._internalSetup = (wrapper, globalObject) => {
55
+ Node._internalSetup(wrapper, globalObject);
56
+ };
57
+
58
+ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
59
+ privateData.wrapper = wrapper;
60
+
61
+ exports._internalSetup(wrapper, globalObject);
62
+ Object.defineProperty(wrapper, implSymbol, {
63
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
64
+ configurable: true
65
+ });
66
+
67
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
68
+ if (Impl.init) {
69
+ Impl.init(wrapper[implSymbol]);
70
+ }
71
+ return wrapper;
72
+ };
73
+
74
+ exports.new = (globalObject, newTarget) => {
75
+ const wrapper = makeWrapper(globalObject, newTarget);
76
+
77
+ exports._internalSetup(wrapper, globalObject);
78
+ Object.defineProperty(wrapper, implSymbol, {
79
+ value: Object.create(Impl.implementation.prototype),
80
+ configurable: true
81
+ });
82
+
83
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
84
+ if (Impl.init) {
85
+ Impl.init(wrapper[implSymbol]);
86
+ }
87
+ return wrapper[implSymbol];
88
+ };
89
+
90
+ const exposed = new Set(["Window"]);
91
+
92
+ exports.install = (globalObject, globalNames) => {
93
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
94
+ return;
95
+ }
96
+
97
+ const ctorRegistry = utils.initCtorRegistry(globalObject);
98
+ class Element extends globalObject.Node {
99
+ constructor() {
100
+ throw new globalObject.TypeError("Illegal constructor");
101
+ }
102
+
103
+ hasAttributes() {
104
+ const esValue = this !== null && this !== undefined ? this : globalObject;
105
+ if (!exports.is(esValue)) {
106
+ throw new globalObject.TypeError(
107
+ "'hasAttributes' called on an object that is not a valid instance of Element."
108
+ );
109
+ }
110
+
111
+ return esValue[implSymbol].hasAttributes();
112
+ }
113
+
114
+ getAttributeNames() {
115
+ const esValue = this !== null && this !== undefined ? this : globalObject;
116
+ if (!exports.is(esValue)) {
117
+ throw new globalObject.TypeError(
118
+ "'getAttributeNames' called on an object that is not a valid instance of Element."
119
+ );
120
+ }
121
+
122
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNames());
123
+ }
124
+
125
+ getAttribute(qualifiedName) {
126
+ const esValue = this !== null && this !== undefined ? this : globalObject;
127
+ if (!exports.is(esValue)) {
128
+ throw new globalObject.TypeError("'getAttribute' called on an object that is not a valid instance of Element.");
129
+ }
130
+
131
+ if (arguments.length < 1) {
132
+ throw new globalObject.TypeError(
133
+ `Failed to execute 'getAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
134
+ );
135
+ }
136
+ const args = [];
137
+ {
138
+ let curArg = arguments[0];
139
+ curArg = conversions["DOMString"](curArg, {
140
+ context: "Failed to execute 'getAttribute' on 'Element': parameter 1",
141
+ globals: globalObject
142
+ });
143
+ args.push(curArg);
144
+ }
145
+ return esValue[implSymbol].getAttribute(...args);
146
+ }
147
+
148
+ getAttributeNS(namespace, localName) {
149
+ const esValue = this !== null && this !== undefined ? this : globalObject;
150
+ if (!exports.is(esValue)) {
151
+ throw new globalObject.TypeError(
152
+ "'getAttributeNS' called on an object that is not a valid instance of Element."
153
+ );
154
+ }
155
+
156
+ if (arguments.length < 2) {
157
+ throw new globalObject.TypeError(
158
+ `Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
159
+ );
160
+ }
161
+ const args = [];
162
+ {
163
+ let curArg = arguments[0];
164
+ if (curArg === null || curArg === undefined) {
165
+ curArg = null;
166
+ } else {
167
+ curArg = conversions["DOMString"](curArg, {
168
+ context: "Failed to execute 'getAttributeNS' on 'Element': parameter 1",
169
+ globals: globalObject
170
+ });
171
+ }
172
+ args.push(curArg);
173
+ }
174
+ {
175
+ let curArg = arguments[1];
176
+ curArg = conversions["DOMString"](curArg, {
177
+ context: "Failed to execute 'getAttributeNS' on 'Element': parameter 2",
178
+ globals: globalObject
179
+ });
180
+ args.push(curArg);
181
+ }
182
+ return esValue[implSymbol].getAttributeNS(...args);
183
+ }
184
+
185
+ setAttribute(qualifiedName, value) {
186
+ const esValue = this !== null && this !== undefined ? this : globalObject;
187
+ if (!exports.is(esValue)) {
188
+ throw new globalObject.TypeError("'setAttribute' called on an object that is not a valid instance of Element.");
189
+ }
190
+
191
+ if (arguments.length < 2) {
192
+ throw new globalObject.TypeError(
193
+ `Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only ${arguments.length} present.`
194
+ );
195
+ }
196
+ const args = [];
197
+ {
198
+ let curArg = arguments[0];
199
+ curArg = conversions["DOMString"](curArg, {
200
+ context: "Failed to execute 'setAttribute' on 'Element': parameter 1",
201
+ globals: globalObject
202
+ });
203
+ args.push(curArg);
204
+ }
205
+ {
206
+ let curArg = arguments[1];
207
+ curArg = conversions["DOMString"](curArg, {
208
+ context: "Failed to execute 'setAttribute' on 'Element': parameter 2",
209
+ globals: globalObject
210
+ });
211
+ args.push(curArg);
212
+ }
213
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
214
+ try {
215
+ return esValue[implSymbol].setAttribute(...args);
216
+ } finally {
217
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
218
+ }
219
+ }
220
+
221
+ setAttributeNS(namespace, qualifiedName, value) {
222
+ const esValue = this !== null && this !== undefined ? this : globalObject;
223
+ if (!exports.is(esValue)) {
224
+ throw new globalObject.TypeError(
225
+ "'setAttributeNS' called on an object that is not a valid instance of Element."
226
+ );
227
+ }
228
+
229
+ if (arguments.length < 3) {
230
+ throw new globalObject.TypeError(
231
+ `Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only ${arguments.length} present.`
232
+ );
233
+ }
234
+ const args = [];
235
+ {
236
+ let curArg = arguments[0];
237
+ if (curArg === null || curArg === undefined) {
238
+ curArg = null;
239
+ } else {
240
+ curArg = conversions["DOMString"](curArg, {
241
+ context: "Failed to execute 'setAttributeNS' on 'Element': parameter 1",
242
+ globals: globalObject
243
+ });
244
+ }
245
+ args.push(curArg);
246
+ }
247
+ {
248
+ let curArg = arguments[1];
249
+ curArg = conversions["DOMString"](curArg, {
250
+ context: "Failed to execute 'setAttributeNS' on 'Element': parameter 2",
251
+ globals: globalObject
252
+ });
253
+ args.push(curArg);
254
+ }
255
+ {
256
+ let curArg = arguments[2];
257
+ curArg = conversions["DOMString"](curArg, {
258
+ context: "Failed to execute 'setAttributeNS' on 'Element': parameter 3",
259
+ globals: globalObject
260
+ });
261
+ args.push(curArg);
262
+ }
263
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
264
+ try {
265
+ return esValue[implSymbol].setAttributeNS(...args);
266
+ } finally {
267
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
268
+ }
269
+ }
270
+
271
+ removeAttribute(qualifiedName) {
272
+ const esValue = this !== null && this !== undefined ? this : globalObject;
273
+ if (!exports.is(esValue)) {
274
+ throw new globalObject.TypeError(
275
+ "'removeAttribute' called on an object that is not a valid instance of Element."
276
+ );
277
+ }
278
+
279
+ if (arguments.length < 1) {
280
+ throw new globalObject.TypeError(
281
+ `Failed to execute 'removeAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
282
+ );
283
+ }
284
+ const args = [];
285
+ {
286
+ let curArg = arguments[0];
287
+ curArg = conversions["DOMString"](curArg, {
288
+ context: "Failed to execute 'removeAttribute' on 'Element': parameter 1",
289
+ globals: globalObject
290
+ });
291
+ args.push(curArg);
292
+ }
293
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
294
+ try {
295
+ return esValue[implSymbol].removeAttribute(...args);
296
+ } finally {
297
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
298
+ }
299
+ }
300
+
301
+ removeAttributeNS(namespace, localName) {
302
+ const esValue = this !== null && this !== undefined ? this : globalObject;
303
+ if (!exports.is(esValue)) {
304
+ throw new globalObject.TypeError(
305
+ "'removeAttributeNS' called on an object that is not a valid instance of Element."
306
+ );
307
+ }
308
+
309
+ if (arguments.length < 2) {
310
+ throw new globalObject.TypeError(
311
+ `Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
312
+ );
313
+ }
314
+ const args = [];
315
+ {
316
+ let curArg = arguments[0];
317
+ if (curArg === null || curArg === undefined) {
318
+ curArg = null;
319
+ } else {
320
+ curArg = conversions["DOMString"](curArg, {
321
+ context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 1",
322
+ globals: globalObject
323
+ });
324
+ }
325
+ args.push(curArg);
326
+ }
327
+ {
328
+ let curArg = arguments[1];
329
+ curArg = conversions["DOMString"](curArg, {
330
+ context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 2",
331
+ globals: globalObject
332
+ });
333
+ args.push(curArg);
334
+ }
335
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
336
+ try {
337
+ return esValue[implSymbol].removeAttributeNS(...args);
338
+ } finally {
339
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
340
+ }
341
+ }
342
+
343
+ toggleAttribute(qualifiedName) {
344
+ const esValue = this !== null && this !== undefined ? this : globalObject;
345
+ if (!exports.is(esValue)) {
346
+ throw new globalObject.TypeError(
347
+ "'toggleAttribute' called on an object that is not a valid instance of Element."
348
+ );
349
+ }
350
+
351
+ if (arguments.length < 1) {
352
+ throw new globalObject.TypeError(
353
+ `Failed to execute 'toggleAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
354
+ );
355
+ }
356
+ const args = [];
357
+ {
358
+ let curArg = arguments[0];
359
+ curArg = conversions["DOMString"](curArg, {
360
+ context: "Failed to execute 'toggleAttribute' on 'Element': parameter 1",
361
+ globals: globalObject
362
+ });
363
+ args.push(curArg);
364
+ }
365
+ {
366
+ let curArg = arguments[1];
367
+ if (curArg !== undefined) {
368
+ curArg = conversions["boolean"](curArg, {
369
+ context: "Failed to execute 'toggleAttribute' on 'Element': parameter 2",
370
+ globals: globalObject
371
+ });
372
+ }
373
+ args.push(curArg);
374
+ }
375
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
376
+ try {
377
+ return esValue[implSymbol].toggleAttribute(...args);
378
+ } finally {
379
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
380
+ }
381
+ }
382
+
383
+ hasAttribute(qualifiedName) {
384
+ const esValue = this !== null && this !== undefined ? this : globalObject;
385
+ if (!exports.is(esValue)) {
386
+ throw new globalObject.TypeError("'hasAttribute' called on an object that is not a valid instance of Element.");
387
+ }
388
+
389
+ if (arguments.length < 1) {
390
+ throw new globalObject.TypeError(
391
+ `Failed to execute 'hasAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
392
+ );
393
+ }
394
+ const args = [];
395
+ {
396
+ let curArg = arguments[0];
397
+ curArg = conversions["DOMString"](curArg, {
398
+ context: "Failed to execute 'hasAttribute' on 'Element': parameter 1",
399
+ globals: globalObject
400
+ });
401
+ args.push(curArg);
402
+ }
403
+ return esValue[implSymbol].hasAttribute(...args);
404
+ }
405
+
406
+ hasAttributeNS(namespace, localName) {
407
+ const esValue = this !== null && this !== undefined ? this : globalObject;
408
+ if (!exports.is(esValue)) {
409
+ throw new globalObject.TypeError(
410
+ "'hasAttributeNS' called on an object that is not a valid instance of Element."
411
+ );
412
+ }
413
+
414
+ if (arguments.length < 2) {
415
+ throw new globalObject.TypeError(
416
+ `Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
417
+ );
418
+ }
419
+ const args = [];
420
+ {
421
+ let curArg = arguments[0];
422
+ if (curArg === null || curArg === undefined) {
423
+ curArg = null;
424
+ } else {
425
+ curArg = conversions["DOMString"](curArg, {
426
+ context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 1",
427
+ globals: globalObject
428
+ });
429
+ }
430
+ args.push(curArg);
431
+ }
432
+ {
433
+ let curArg = arguments[1];
434
+ curArg = conversions["DOMString"](curArg, {
435
+ context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 2",
436
+ globals: globalObject
437
+ });
438
+ args.push(curArg);
439
+ }
440
+ return esValue[implSymbol].hasAttributeNS(...args);
441
+ }
442
+
443
+ getAttributeNode(qualifiedName) {
444
+ const esValue = this !== null && this !== undefined ? this : globalObject;
445
+ if (!exports.is(esValue)) {
446
+ throw new globalObject.TypeError(
447
+ "'getAttributeNode' called on an object that is not a valid instance of Element."
448
+ );
449
+ }
450
+
451
+ if (arguments.length < 1) {
452
+ throw new globalObject.TypeError(
453
+ `Failed to execute 'getAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
454
+ );
455
+ }
456
+ const args = [];
457
+ {
458
+ let curArg = arguments[0];
459
+ curArg = conversions["DOMString"](curArg, {
460
+ context: "Failed to execute 'getAttributeNode' on 'Element': parameter 1",
461
+ globals: globalObject
462
+ });
463
+ args.push(curArg);
464
+ }
465
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNode(...args));
466
+ }
467
+
468
+ getAttributeNodeNS(namespace, localName) {
469
+ const esValue = this !== null && this !== undefined ? this : globalObject;
470
+ if (!exports.is(esValue)) {
471
+ throw new globalObject.TypeError(
472
+ "'getAttributeNodeNS' called on an object that is not a valid instance of Element."
473
+ );
474
+ }
475
+
476
+ if (arguments.length < 2) {
477
+ throw new globalObject.TypeError(
478
+ `Failed to execute 'getAttributeNodeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
479
+ );
480
+ }
481
+ const args = [];
482
+ {
483
+ let curArg = arguments[0];
484
+ if (curArg === null || curArg === undefined) {
485
+ curArg = null;
486
+ } else {
487
+ curArg = conversions["DOMString"](curArg, {
488
+ context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 1",
489
+ globals: globalObject
490
+ });
491
+ }
492
+ args.push(curArg);
493
+ }
494
+ {
495
+ let curArg = arguments[1];
496
+ curArg = conversions["DOMString"](curArg, {
497
+ context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 2",
498
+ globals: globalObject
499
+ });
500
+ args.push(curArg);
501
+ }
502
+ return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNodeNS(...args));
503
+ }
504
+
505
+ setAttributeNode(attr) {
506
+ const esValue = this !== null && this !== undefined ? this : globalObject;
507
+ if (!exports.is(esValue)) {
508
+ throw new globalObject.TypeError(
509
+ "'setAttributeNode' called on an object that is not a valid instance of Element."
510
+ );
511
+ }
512
+
513
+ if (arguments.length < 1) {
514
+ throw new globalObject.TypeError(
515
+ `Failed to execute 'setAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
516
+ );
517
+ }
518
+ const args = [];
519
+ {
520
+ let curArg = arguments[0];
521
+ curArg = Attr.convert(globalObject, curArg, {
522
+ context: "Failed to execute 'setAttributeNode' on 'Element': parameter 1"
523
+ });
524
+ args.push(curArg);
525
+ }
526
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
527
+ try {
528
+ return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNode(...args));
529
+ } finally {
530
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
531
+ }
532
+ }
533
+
534
+ setAttributeNodeNS(attr) {
535
+ const esValue = this !== null && this !== undefined ? this : globalObject;
536
+ if (!exports.is(esValue)) {
537
+ throw new globalObject.TypeError(
538
+ "'setAttributeNodeNS' called on an object that is not a valid instance of Element."
539
+ );
540
+ }
541
+
542
+ if (arguments.length < 1) {
543
+ throw new globalObject.TypeError(
544
+ `Failed to execute 'setAttributeNodeNS' on 'Element': 1 argument required, but only ${arguments.length} present.`
545
+ );
546
+ }
547
+ const args = [];
548
+ {
549
+ let curArg = arguments[0];
550
+ curArg = Attr.convert(globalObject, curArg, {
551
+ context: "Failed to execute 'setAttributeNodeNS' on 'Element': parameter 1"
552
+ });
553
+ args.push(curArg);
554
+ }
555
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
556
+ try {
557
+ return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNodeNS(...args));
558
+ } finally {
559
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
560
+ }
561
+ }
562
+
563
+ removeAttributeNode(attr) {
564
+ const esValue = this !== null && this !== undefined ? this : globalObject;
565
+ if (!exports.is(esValue)) {
566
+ throw new globalObject.TypeError(
567
+ "'removeAttributeNode' called on an object that is not a valid instance of Element."
568
+ );
569
+ }
570
+
571
+ if (arguments.length < 1) {
572
+ throw new globalObject.TypeError(
573
+ `Failed to execute 'removeAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
574
+ );
575
+ }
576
+ const args = [];
577
+ {
578
+ let curArg = arguments[0];
579
+ curArg = Attr.convert(globalObject, curArg, {
580
+ context: "Failed to execute 'removeAttributeNode' on 'Element': parameter 1"
581
+ });
582
+ args.push(curArg);
583
+ }
584
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
585
+ try {
586
+ return utils.tryWrapperForImpl(esValue[implSymbol].removeAttributeNode(...args));
587
+ } finally {
588
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
589
+ }
590
+ }
591
+
592
+ attachShadow(init) {
593
+ const esValue = this !== null && this !== undefined ? this : globalObject;
594
+ if (!exports.is(esValue)) {
595
+ throw new globalObject.TypeError("'attachShadow' called on an object that is not a valid instance of Element.");
596
+ }
597
+
598
+ if (arguments.length < 1) {
599
+ throw new globalObject.TypeError(
600
+ `Failed to execute 'attachShadow' on 'Element': 1 argument required, but only ${arguments.length} present.`
601
+ );
602
+ }
603
+ const args = [];
604
+ {
605
+ let curArg = arguments[0];
606
+ curArg = ShadowRootInit.convert(globalObject, curArg, {
607
+ context: "Failed to execute 'attachShadow' on 'Element': parameter 1"
608
+ });
609
+ args.push(curArg);
610
+ }
611
+ return utils.tryWrapperForImpl(esValue[implSymbol].attachShadow(...args));
612
+ }
613
+
614
+ closest(selectors) {
615
+ const esValue = this !== null && this !== undefined ? this : globalObject;
616
+ if (!exports.is(esValue)) {
617
+ throw new globalObject.TypeError("'closest' called on an object that is not a valid instance of Element.");
618
+ }
619
+
620
+ if (arguments.length < 1) {
621
+ throw new globalObject.TypeError(
622
+ `Failed to execute 'closest' on 'Element': 1 argument required, but only ${arguments.length} present.`
623
+ );
624
+ }
625
+ const args = [];
626
+ {
627
+ let curArg = arguments[0];
628
+ curArg = conversions["DOMString"](curArg, {
629
+ context: "Failed to execute 'closest' on 'Element': parameter 1",
630
+ globals: globalObject
631
+ });
632
+ args.push(curArg);
633
+ }
634
+ return utils.tryWrapperForImpl(esValue[implSymbol].closest(...args));
635
+ }
636
+
637
+ matches(selectors) {
638
+ const esValue = this !== null && this !== undefined ? this : globalObject;
639
+ if (!exports.is(esValue)) {
640
+ throw new globalObject.TypeError("'matches' called on an object that is not a valid instance of Element.");
641
+ }
642
+
643
+ if (arguments.length < 1) {
644
+ throw new globalObject.TypeError(
645
+ `Failed to execute 'matches' on 'Element': 1 argument required, but only ${arguments.length} present.`
646
+ );
647
+ }
648
+ const args = [];
649
+ {
650
+ let curArg = arguments[0];
651
+ curArg = conversions["DOMString"](curArg, {
652
+ context: "Failed to execute 'matches' on 'Element': parameter 1",
653
+ globals: globalObject
654
+ });
655
+ args.push(curArg);
656
+ }
657
+ return esValue[implSymbol].matches(...args);
658
+ }
659
+
660
+ webkitMatchesSelector(selectors) {
661
+ const esValue = this !== null && this !== undefined ? this : globalObject;
662
+ if (!exports.is(esValue)) {
663
+ throw new globalObject.TypeError(
664
+ "'webkitMatchesSelector' called on an object that is not a valid instance of Element."
665
+ );
666
+ }
667
+
668
+ if (arguments.length < 1) {
669
+ throw new globalObject.TypeError(
670
+ `Failed to execute 'webkitMatchesSelector' on 'Element': 1 argument required, but only ${arguments.length} present.`
671
+ );
672
+ }
673
+ const args = [];
674
+ {
675
+ let curArg = arguments[0];
676
+ curArg = conversions["DOMString"](curArg, {
677
+ context: "Failed to execute 'webkitMatchesSelector' on 'Element': parameter 1",
678
+ globals: globalObject
679
+ });
680
+ args.push(curArg);
681
+ }
682
+ return esValue[implSymbol].webkitMatchesSelector(...args);
683
+ }
684
+
685
+ getElementsByTagName(qualifiedName) {
686
+ const esValue = this !== null && this !== undefined ? this : globalObject;
687
+ if (!exports.is(esValue)) {
688
+ throw new globalObject.TypeError(
689
+ "'getElementsByTagName' called on an object that is not a valid instance of Element."
690
+ );
691
+ }
692
+
693
+ if (arguments.length < 1) {
694
+ throw new globalObject.TypeError(
695
+ `Failed to execute 'getElementsByTagName' on 'Element': 1 argument required, but only ${arguments.length} present.`
696
+ );
697
+ }
698
+ const args = [];
699
+ {
700
+ let curArg = arguments[0];
701
+ curArg = conversions["DOMString"](curArg, {
702
+ context: "Failed to execute 'getElementsByTagName' on 'Element': parameter 1",
703
+ globals: globalObject
704
+ });
705
+ args.push(curArg);
706
+ }
707
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
708
+ }
709
+
710
+ getElementsByTagNameNS(namespace, localName) {
711
+ const esValue = this !== null && this !== undefined ? this : globalObject;
712
+ if (!exports.is(esValue)) {
713
+ throw new globalObject.TypeError(
714
+ "'getElementsByTagNameNS' called on an object that is not a valid instance of Element."
715
+ );
716
+ }
717
+
718
+ if (arguments.length < 2) {
719
+ throw new globalObject.TypeError(
720
+ `Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
721
+ );
722
+ }
723
+ const args = [];
724
+ {
725
+ let curArg = arguments[0];
726
+ if (curArg === null || curArg === undefined) {
727
+ curArg = null;
728
+ } else {
729
+ curArg = conversions["DOMString"](curArg, {
730
+ context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 1",
731
+ globals: globalObject
732
+ });
733
+ }
734
+ args.push(curArg);
735
+ }
736
+ {
737
+ let curArg = arguments[1];
738
+ curArg = conversions["DOMString"](curArg, {
739
+ context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 2",
740
+ globals: globalObject
741
+ });
742
+ args.push(curArg);
743
+ }
744
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
745
+ }
746
+
747
+ getElementsByClassName(classNames) {
748
+ const esValue = this !== null && this !== undefined ? this : globalObject;
749
+ if (!exports.is(esValue)) {
750
+ throw new globalObject.TypeError(
751
+ "'getElementsByClassName' called on an object that is not a valid instance of Element."
752
+ );
753
+ }
754
+
755
+ if (arguments.length < 1) {
756
+ throw new globalObject.TypeError(
757
+ `Failed to execute 'getElementsByClassName' on 'Element': 1 argument required, but only ${arguments.length} present.`
758
+ );
759
+ }
760
+ const args = [];
761
+ {
762
+ let curArg = arguments[0];
763
+ curArg = conversions["DOMString"](curArg, {
764
+ context: "Failed to execute 'getElementsByClassName' on 'Element': parameter 1",
765
+ globals: globalObject
766
+ });
767
+ args.push(curArg);
768
+ }
769
+ return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
770
+ }
771
+
772
+ insertAdjacentElement(where, element) {
773
+ const esValue = this !== null && this !== undefined ? this : globalObject;
774
+ if (!exports.is(esValue)) {
775
+ throw new globalObject.TypeError(
776
+ "'insertAdjacentElement' called on an object that is not a valid instance of Element."
777
+ );
778
+ }
779
+
780
+ if (arguments.length < 2) {
781
+ throw new globalObject.TypeError(
782
+ `Failed to execute 'insertAdjacentElement' on 'Element': 2 arguments required, but only ${arguments.length} present.`
783
+ );
784
+ }
785
+ const args = [];
786
+ {
787
+ let curArg = arguments[0];
788
+ curArg = conversions["DOMString"](curArg, {
789
+ context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 1",
790
+ globals: globalObject
791
+ });
792
+ args.push(curArg);
793
+ }
794
+ {
795
+ let curArg = arguments[1];
796
+ curArg = exports.convert(globalObject, curArg, {
797
+ context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 2"
798
+ });
799
+ args.push(curArg);
800
+ }
801
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
802
+ try {
803
+ return utils.tryWrapperForImpl(esValue[implSymbol].insertAdjacentElement(...args));
804
+ } finally {
805
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
806
+ }
807
+ }
808
+
809
+ insertAdjacentText(where, data) {
810
+ const esValue = this !== null && this !== undefined ? this : globalObject;
811
+ if (!exports.is(esValue)) {
812
+ throw new globalObject.TypeError(
813
+ "'insertAdjacentText' called on an object that is not a valid instance of Element."
814
+ );
815
+ }
816
+
817
+ if (arguments.length < 2) {
818
+ throw new globalObject.TypeError(
819
+ `Failed to execute 'insertAdjacentText' on 'Element': 2 arguments required, but only ${arguments.length} present.`
820
+ );
821
+ }
822
+ const args = [];
823
+ {
824
+ let curArg = arguments[0];
825
+ curArg = conversions["DOMString"](curArg, {
826
+ context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 1",
827
+ globals: globalObject
828
+ });
829
+ args.push(curArg);
830
+ }
831
+ {
832
+ let curArg = arguments[1];
833
+ curArg = conversions["DOMString"](curArg, {
834
+ context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 2",
835
+ globals: globalObject
836
+ });
837
+ args.push(curArg);
838
+ }
839
+ return esValue[implSymbol].insertAdjacentText(...args);
840
+ }
841
+
842
+ insertAdjacentHTML(position, text) {
843
+ const esValue = this !== null && this !== undefined ? this : globalObject;
844
+ if (!exports.is(esValue)) {
845
+ throw new globalObject.TypeError(
846
+ "'insertAdjacentHTML' called on an object that is not a valid instance of Element."
847
+ );
848
+ }
849
+
850
+ if (arguments.length < 2) {
851
+ throw new globalObject.TypeError(
852
+ `Failed to execute 'insertAdjacentHTML' on 'Element': 2 arguments required, but only ${arguments.length} present.`
853
+ );
854
+ }
855
+ const args = [];
856
+ {
857
+ let curArg = arguments[0];
858
+ curArg = conversions["DOMString"](curArg, {
859
+ context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 1",
860
+ globals: globalObject
861
+ });
862
+ args.push(curArg);
863
+ }
864
+ {
865
+ let curArg = arguments[1];
866
+ curArg = conversions["DOMString"](curArg, {
867
+ context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 2",
868
+ globals: globalObject
869
+ });
870
+ args.push(curArg);
871
+ }
872
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
873
+ try {
874
+ return esValue[implSymbol].insertAdjacentHTML(...args);
875
+ } finally {
876
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
877
+ }
878
+ }
879
+
880
+ getClientRects() {
881
+ const esValue = this !== null && this !== undefined ? this : globalObject;
882
+ if (!exports.is(esValue)) {
883
+ throw new globalObject.TypeError(
884
+ "'getClientRects' called on an object that is not a valid instance of Element."
885
+ );
886
+ }
887
+
888
+ return utils.tryWrapperForImpl(esValue[implSymbol].getClientRects());
889
+ }
890
+
891
+ getBoundingClientRect() {
892
+ const esValue = this !== null && this !== undefined ? this : globalObject;
893
+ if (!exports.is(esValue)) {
894
+ throw new globalObject.TypeError(
895
+ "'getBoundingClientRect' called on an object that is not a valid instance of Element."
896
+ );
897
+ }
898
+
899
+ return utils.tryWrapperForImpl(esValue[implSymbol].getBoundingClientRect());
900
+ }
901
+
902
+ before() {
903
+ const esValue = this !== null && this !== undefined ? this : globalObject;
904
+ if (!exports.is(esValue)) {
905
+ throw new globalObject.TypeError("'before' called on an object that is not a valid instance of Element.");
906
+ }
907
+ const args = [];
908
+ for (let i = 0; i < arguments.length; i++) {
909
+ let curArg = arguments[i];
910
+ if (Node.is(curArg)) {
911
+ curArg = utils.implForWrapper(curArg);
912
+ } else {
913
+ curArg = conversions["DOMString"](curArg, {
914
+ context: "Failed to execute 'before' on 'Element': parameter " + (i + 1),
915
+ globals: globalObject
916
+ });
917
+ }
918
+ args.push(curArg);
919
+ }
920
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
921
+ try {
922
+ return esValue[implSymbol].before(...args);
923
+ } finally {
924
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
925
+ }
926
+ }
927
+
928
+ after() {
929
+ const esValue = this !== null && this !== undefined ? this : globalObject;
930
+ if (!exports.is(esValue)) {
931
+ throw new globalObject.TypeError("'after' called on an object that is not a valid instance of Element.");
932
+ }
933
+ const args = [];
934
+ for (let i = 0; i < arguments.length; i++) {
935
+ let curArg = arguments[i];
936
+ if (Node.is(curArg)) {
937
+ curArg = utils.implForWrapper(curArg);
938
+ } else {
939
+ curArg = conversions["DOMString"](curArg, {
940
+ context: "Failed to execute 'after' on 'Element': parameter " + (i + 1),
941
+ globals: globalObject
942
+ });
943
+ }
944
+ args.push(curArg);
945
+ }
946
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
947
+ try {
948
+ return esValue[implSymbol].after(...args);
949
+ } finally {
950
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
951
+ }
952
+ }
953
+
954
+ replaceWith() {
955
+ const esValue = this !== null && this !== undefined ? this : globalObject;
956
+ if (!exports.is(esValue)) {
957
+ throw new globalObject.TypeError("'replaceWith' called on an object that is not a valid instance of Element.");
958
+ }
959
+ const args = [];
960
+ for (let i = 0; i < arguments.length; i++) {
961
+ let curArg = arguments[i];
962
+ if (Node.is(curArg)) {
963
+ curArg = utils.implForWrapper(curArg);
964
+ } else {
965
+ curArg = conversions["DOMString"](curArg, {
966
+ context: "Failed to execute 'replaceWith' on 'Element': parameter " + (i + 1),
967
+ globals: globalObject
968
+ });
969
+ }
970
+ args.push(curArg);
971
+ }
972
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
973
+ try {
974
+ return esValue[implSymbol].replaceWith(...args);
975
+ } finally {
976
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
977
+ }
978
+ }
979
+
980
+ remove() {
981
+ const esValue = this !== null && this !== undefined ? this : globalObject;
982
+ if (!exports.is(esValue)) {
983
+ throw new globalObject.TypeError("'remove' called on an object that is not a valid instance of Element.");
984
+ }
985
+
986
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
987
+ try {
988
+ return esValue[implSymbol].remove();
989
+ } finally {
990
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
991
+ }
992
+ }
993
+
994
+ prepend() {
995
+ const esValue = this !== null && this !== undefined ? this : globalObject;
996
+ if (!exports.is(esValue)) {
997
+ throw new globalObject.TypeError("'prepend' called on an object that is not a valid instance of Element.");
998
+ }
999
+ const args = [];
1000
+ for (let i = 0; i < arguments.length; i++) {
1001
+ let curArg = arguments[i];
1002
+ if (Node.is(curArg)) {
1003
+ curArg = utils.implForWrapper(curArg);
1004
+ } else {
1005
+ curArg = conversions["DOMString"](curArg, {
1006
+ context: "Failed to execute 'prepend' on 'Element': parameter " + (i + 1),
1007
+ globals: globalObject
1008
+ });
1009
+ }
1010
+ args.push(curArg);
1011
+ }
1012
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1013
+ try {
1014
+ return esValue[implSymbol].prepend(...args);
1015
+ } finally {
1016
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1017
+ }
1018
+ }
1019
+
1020
+ append() {
1021
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1022
+ if (!exports.is(esValue)) {
1023
+ throw new globalObject.TypeError("'append' called on an object that is not a valid instance of Element.");
1024
+ }
1025
+ const args = [];
1026
+ for (let i = 0; i < arguments.length; i++) {
1027
+ let curArg = arguments[i];
1028
+ if (Node.is(curArg)) {
1029
+ curArg = utils.implForWrapper(curArg);
1030
+ } else {
1031
+ curArg = conversions["DOMString"](curArg, {
1032
+ context: "Failed to execute 'append' on 'Element': parameter " + (i + 1),
1033
+ globals: globalObject
1034
+ });
1035
+ }
1036
+ args.push(curArg);
1037
+ }
1038
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1039
+ try {
1040
+ return esValue[implSymbol].append(...args);
1041
+ } finally {
1042
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1043
+ }
1044
+ }
1045
+
1046
+ replaceChildren() {
1047
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1048
+ if (!exports.is(esValue)) {
1049
+ throw new globalObject.TypeError(
1050
+ "'replaceChildren' called on an object that is not a valid instance of Element."
1051
+ );
1052
+ }
1053
+ const args = [];
1054
+ for (let i = 0; i < arguments.length; i++) {
1055
+ let curArg = arguments[i];
1056
+ if (Node.is(curArg)) {
1057
+ curArg = utils.implForWrapper(curArg);
1058
+ } else {
1059
+ curArg = conversions["DOMString"](curArg, {
1060
+ context: "Failed to execute 'replaceChildren' on 'Element': parameter " + (i + 1),
1061
+ globals: globalObject
1062
+ });
1063
+ }
1064
+ args.push(curArg);
1065
+ }
1066
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1067
+ try {
1068
+ return esValue[implSymbol].replaceChildren(...args);
1069
+ } finally {
1070
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1071
+ }
1072
+ }
1073
+
1074
+ querySelector(selectors) {
1075
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1076
+ if (!exports.is(esValue)) {
1077
+ throw new globalObject.TypeError(
1078
+ "'querySelector' called on an object that is not a valid instance of Element."
1079
+ );
1080
+ }
1081
+
1082
+ if (arguments.length < 1) {
1083
+ throw new globalObject.TypeError(
1084
+ `Failed to execute 'querySelector' on 'Element': 1 argument required, but only ${arguments.length} present.`
1085
+ );
1086
+ }
1087
+ const args = [];
1088
+ {
1089
+ let curArg = arguments[0];
1090
+ curArg = conversions["DOMString"](curArg, {
1091
+ context: "Failed to execute 'querySelector' on 'Element': parameter 1",
1092
+ globals: globalObject
1093
+ });
1094
+ args.push(curArg);
1095
+ }
1096
+ return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
1097
+ }
1098
+
1099
+ querySelectorAll(selectors) {
1100
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1101
+ if (!exports.is(esValue)) {
1102
+ throw new globalObject.TypeError(
1103
+ "'querySelectorAll' called on an object that is not a valid instance of Element."
1104
+ );
1105
+ }
1106
+
1107
+ if (arguments.length < 1) {
1108
+ throw new globalObject.TypeError(
1109
+ `Failed to execute 'querySelectorAll' on 'Element': 1 argument required, but only ${arguments.length} present.`
1110
+ );
1111
+ }
1112
+ const args = [];
1113
+ {
1114
+ let curArg = arguments[0];
1115
+ curArg = conversions["DOMString"](curArg, {
1116
+ context: "Failed to execute 'querySelectorAll' on 'Element': parameter 1",
1117
+ globals: globalObject
1118
+ });
1119
+ args.push(curArg);
1120
+ }
1121
+ return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
1122
+ }
1123
+
1124
+ get namespaceURI() {
1125
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1126
+
1127
+ if (!exports.is(esValue)) {
1128
+ throw new globalObject.TypeError(
1129
+ "'get namespaceURI' called on an object that is not a valid instance of Element."
1130
+ );
1131
+ }
1132
+
1133
+ return esValue[implSymbol]["namespaceURI"];
1134
+ }
1135
+
1136
+ get prefix() {
1137
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1138
+
1139
+ if (!exports.is(esValue)) {
1140
+ throw new globalObject.TypeError("'get prefix' called on an object that is not a valid instance of Element.");
1141
+ }
1142
+
1143
+ return esValue[implSymbol]["prefix"];
1144
+ }
1145
+
1146
+ get localName() {
1147
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1148
+
1149
+ if (!exports.is(esValue)) {
1150
+ throw new globalObject.TypeError(
1151
+ "'get localName' called on an object that is not a valid instance of Element."
1152
+ );
1153
+ }
1154
+
1155
+ return esValue[implSymbol]["localName"];
1156
+ }
1157
+
1158
+ get tagName() {
1159
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1160
+
1161
+ if (!exports.is(esValue)) {
1162
+ throw new globalObject.TypeError("'get tagName' called on an object that is not a valid instance of Element.");
1163
+ }
1164
+
1165
+ return esValue[implSymbol]["tagName"];
1166
+ }
1167
+
1168
+ get id() {
1169
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1170
+
1171
+ if (!exports.is(esValue)) {
1172
+ throw new globalObject.TypeError("'get id' called on an object that is not a valid instance of Element.");
1173
+ }
1174
+
1175
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1176
+ try {
1177
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("id");
1178
+ return value === null ? "" : value;
1179
+ } finally {
1180
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1181
+ }
1182
+ }
1183
+
1184
+ set id(V) {
1185
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1186
+
1187
+ if (!exports.is(esValue)) {
1188
+ throw new globalObject.TypeError("'set id' called on an object that is not a valid instance of Element.");
1189
+ }
1190
+
1191
+ V = conversions["DOMString"](V, {
1192
+ context: "Failed to set the 'id' property on 'Element': The provided value",
1193
+ globals: globalObject
1194
+ });
1195
+
1196
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1197
+ try {
1198
+ esValue[implSymbol]._reflectSetTheContentAttribute("id", V);
1199
+ } finally {
1200
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1201
+ }
1202
+ }
1203
+
1204
+ get className() {
1205
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1206
+
1207
+ if (!exports.is(esValue)) {
1208
+ throw new globalObject.TypeError(
1209
+ "'get className' called on an object that is not a valid instance of Element."
1210
+ );
1211
+ }
1212
+
1213
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1214
+ try {
1215
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("class");
1216
+ return value === null ? "" : value;
1217
+ } finally {
1218
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1219
+ }
1220
+ }
1221
+
1222
+ set className(V) {
1223
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1224
+
1225
+ if (!exports.is(esValue)) {
1226
+ throw new globalObject.TypeError(
1227
+ "'set className' called on an object that is not a valid instance of Element."
1228
+ );
1229
+ }
1230
+
1231
+ V = conversions["DOMString"](V, {
1232
+ context: "Failed to set the 'className' property on 'Element': The provided value",
1233
+ globals: globalObject
1234
+ });
1235
+
1236
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1237
+ try {
1238
+ esValue[implSymbol]._reflectSetTheContentAttribute("class", V);
1239
+ } finally {
1240
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1241
+ }
1242
+ }
1243
+
1244
+ get classList() {
1245
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1246
+
1247
+ if (!exports.is(esValue)) {
1248
+ throw new globalObject.TypeError(
1249
+ "'get classList' called on an object that is not a valid instance of Element."
1250
+ );
1251
+ }
1252
+
1253
+ return utils.getSameObject(this, "classList", () => {
1254
+ return utils.tryWrapperForImpl(esValue[implSymbol]["classList"]);
1255
+ });
1256
+ }
1257
+
1258
+ set classList(V) {
1259
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1260
+
1261
+ if (!exports.is(esValue)) {
1262
+ throw new globalObject.TypeError(
1263
+ "'set classList' called on an object that is not a valid instance of Element."
1264
+ );
1265
+ }
1266
+
1267
+ const Q = esValue["classList"];
1268
+ if (!utils.isObject(Q)) {
1269
+ throw new globalObject.TypeError("Property 'classList' is not an object");
1270
+ }
1271
+ Reflect.set(Q, "value", V);
1272
+ }
1273
+
1274
+ get slot() {
1275
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1276
+
1277
+ if (!exports.is(esValue)) {
1278
+ throw new globalObject.TypeError("'get slot' called on an object that is not a valid instance of Element.");
1279
+ }
1280
+
1281
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1282
+ try {
1283
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("slot");
1284
+ return value === null ? "" : value;
1285
+ } finally {
1286
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1287
+ }
1288
+ }
1289
+
1290
+ set slot(V) {
1291
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1292
+
1293
+ if (!exports.is(esValue)) {
1294
+ throw new globalObject.TypeError("'set slot' called on an object that is not a valid instance of Element.");
1295
+ }
1296
+
1297
+ V = conversions["DOMString"](V, {
1298
+ context: "Failed to set the 'slot' property on 'Element': The provided value",
1299
+ globals: globalObject
1300
+ });
1301
+
1302
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1303
+ try {
1304
+ esValue[implSymbol]._reflectSetTheContentAttribute("slot", V);
1305
+ } finally {
1306
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1307
+ }
1308
+ }
1309
+
1310
+ get attributes() {
1311
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1312
+
1313
+ if (!exports.is(esValue)) {
1314
+ throw new globalObject.TypeError(
1315
+ "'get attributes' called on an object that is not a valid instance of Element."
1316
+ );
1317
+ }
1318
+
1319
+ return utils.getSameObject(this, "attributes", () => {
1320
+ return utils.tryWrapperForImpl(esValue[implSymbol]["attributes"]);
1321
+ });
1322
+ }
1323
+
1324
+ get shadowRoot() {
1325
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1326
+
1327
+ if (!exports.is(esValue)) {
1328
+ throw new globalObject.TypeError(
1329
+ "'get shadowRoot' called on an object that is not a valid instance of Element."
1330
+ );
1331
+ }
1332
+
1333
+ return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
1334
+ }
1335
+
1336
+ get outerHTML() {
1337
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1338
+
1339
+ if (!exports.is(esValue)) {
1340
+ throw new globalObject.TypeError(
1341
+ "'get outerHTML' called on an object that is not a valid instance of Element."
1342
+ );
1343
+ }
1344
+
1345
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1346
+ try {
1347
+ return esValue[implSymbol]["outerHTML"];
1348
+ } finally {
1349
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1350
+ }
1351
+ }
1352
+
1353
+ set outerHTML(V) {
1354
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1355
+
1356
+ if (!exports.is(esValue)) {
1357
+ throw new globalObject.TypeError(
1358
+ "'set outerHTML' called on an object that is not a valid instance of Element."
1359
+ );
1360
+ }
1361
+
1362
+ V = conversions["DOMString"](V, {
1363
+ context: "Failed to set the 'outerHTML' property on 'Element': The provided value",
1364
+ globals: globalObject,
1365
+ treatNullAsEmptyString: true
1366
+ });
1367
+
1368
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1369
+ try {
1370
+ esValue[implSymbol]["outerHTML"] = V;
1371
+ } finally {
1372
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1373
+ }
1374
+ }
1375
+
1376
+ get scrollTop() {
1377
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1378
+
1379
+ if (!exports.is(esValue)) {
1380
+ throw new globalObject.TypeError(
1381
+ "'get scrollTop' called on an object that is not a valid instance of Element."
1382
+ );
1383
+ }
1384
+
1385
+ return esValue[implSymbol]["scrollTop"];
1386
+ }
1387
+
1388
+ set scrollTop(V) {
1389
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1390
+
1391
+ if (!exports.is(esValue)) {
1392
+ throw new globalObject.TypeError(
1393
+ "'set scrollTop' called on an object that is not a valid instance of Element."
1394
+ );
1395
+ }
1396
+
1397
+ V = conversions["unrestricted double"](V, {
1398
+ context: "Failed to set the 'scrollTop' property on 'Element': The provided value",
1399
+ globals: globalObject
1400
+ });
1401
+
1402
+ esValue[implSymbol]["scrollTop"] = V;
1403
+ }
1404
+
1405
+ get scrollLeft() {
1406
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1407
+
1408
+ if (!exports.is(esValue)) {
1409
+ throw new globalObject.TypeError(
1410
+ "'get scrollLeft' called on an object that is not a valid instance of Element."
1411
+ );
1412
+ }
1413
+
1414
+ return esValue[implSymbol]["scrollLeft"];
1415
+ }
1416
+
1417
+ set scrollLeft(V) {
1418
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1419
+
1420
+ if (!exports.is(esValue)) {
1421
+ throw new globalObject.TypeError(
1422
+ "'set scrollLeft' called on an object that is not a valid instance of Element."
1423
+ );
1424
+ }
1425
+
1426
+ V = conversions["unrestricted double"](V, {
1427
+ context: "Failed to set the 'scrollLeft' property on 'Element': The provided value",
1428
+ globals: globalObject
1429
+ });
1430
+
1431
+ esValue[implSymbol]["scrollLeft"] = V;
1432
+ }
1433
+
1434
+ get scrollWidth() {
1435
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1436
+
1437
+ if (!exports.is(esValue)) {
1438
+ throw new globalObject.TypeError(
1439
+ "'get scrollWidth' called on an object that is not a valid instance of Element."
1440
+ );
1441
+ }
1442
+
1443
+ return esValue[implSymbol]["scrollWidth"];
1444
+ }
1445
+
1446
+ get scrollHeight() {
1447
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1448
+
1449
+ if (!exports.is(esValue)) {
1450
+ throw new globalObject.TypeError(
1451
+ "'get scrollHeight' called on an object that is not a valid instance of Element."
1452
+ );
1453
+ }
1454
+
1455
+ return esValue[implSymbol]["scrollHeight"];
1456
+ }
1457
+
1458
+ get clientTop() {
1459
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1460
+
1461
+ if (!exports.is(esValue)) {
1462
+ throw new globalObject.TypeError(
1463
+ "'get clientTop' called on an object that is not a valid instance of Element."
1464
+ );
1465
+ }
1466
+
1467
+ return esValue[implSymbol]["clientTop"];
1468
+ }
1469
+
1470
+ get clientLeft() {
1471
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1472
+
1473
+ if (!exports.is(esValue)) {
1474
+ throw new globalObject.TypeError(
1475
+ "'get clientLeft' called on an object that is not a valid instance of Element."
1476
+ );
1477
+ }
1478
+
1479
+ return esValue[implSymbol]["clientLeft"];
1480
+ }
1481
+
1482
+ get clientWidth() {
1483
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1484
+
1485
+ if (!exports.is(esValue)) {
1486
+ throw new globalObject.TypeError(
1487
+ "'get clientWidth' called on an object that is not a valid instance of Element."
1488
+ );
1489
+ }
1490
+
1491
+ return esValue[implSymbol]["clientWidth"];
1492
+ }
1493
+
1494
+ get clientHeight() {
1495
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1496
+
1497
+ if (!exports.is(esValue)) {
1498
+ throw new globalObject.TypeError(
1499
+ "'get clientHeight' called on an object that is not a valid instance of Element."
1500
+ );
1501
+ }
1502
+
1503
+ return esValue[implSymbol]["clientHeight"];
1504
+ }
1505
+
1506
+ get innerHTML() {
1507
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1508
+
1509
+ if (!exports.is(esValue)) {
1510
+ throw new globalObject.TypeError(
1511
+ "'get innerHTML' called on an object that is not a valid instance of Element."
1512
+ );
1513
+ }
1514
+
1515
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1516
+ try {
1517
+ return esValue[implSymbol]["innerHTML"];
1518
+ } finally {
1519
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1520
+ }
1521
+ }
1522
+
1523
+ set innerHTML(V) {
1524
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1525
+
1526
+ if (!exports.is(esValue)) {
1527
+ throw new globalObject.TypeError(
1528
+ "'set innerHTML' called on an object that is not a valid instance of Element."
1529
+ );
1530
+ }
1531
+
1532
+ V = conversions["DOMString"](V, {
1533
+ context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
1534
+ globals: globalObject,
1535
+ treatNullAsEmptyString: true
1536
+ });
1537
+
1538
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1539
+ try {
1540
+ esValue[implSymbol]["innerHTML"] = V;
1541
+ } finally {
1542
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1543
+ }
1544
+ }
1545
+
1546
+ get role() {
1547
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1548
+
1549
+ if (!exports.is(esValue)) {
1550
+ throw new globalObject.TypeError("'get role' called on an object that is not a valid instance of Element.");
1551
+ }
1552
+
1553
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1554
+ try {
1555
+ return esValue[implSymbol]._reflectGetTheContentAttribute("role");
1556
+ } finally {
1557
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1558
+ }
1559
+ }
1560
+
1561
+ set role(V) {
1562
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1563
+
1564
+ if (!exports.is(esValue)) {
1565
+ throw new globalObject.TypeError("'set role' called on an object that is not a valid instance of Element.");
1566
+ }
1567
+
1568
+ if (V === null || V === undefined) {
1569
+ V = null;
1570
+ } else {
1571
+ V = conversions["DOMString"](V, {
1572
+ context: "Failed to set the 'role' property on 'Element': The provided value",
1573
+ globals: globalObject
1574
+ });
1575
+ }
1576
+
1577
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1578
+ try {
1579
+ if (V === null) {
1580
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("role");
1581
+ } else {
1582
+ esValue[implSymbol]._reflectSetTheContentAttribute("role", V);
1583
+ }
1584
+ } finally {
1585
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1586
+ }
1587
+ }
1588
+
1589
+ get ariaAtomic() {
1590
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1591
+
1592
+ if (!exports.is(esValue)) {
1593
+ throw new globalObject.TypeError(
1594
+ "'get ariaAtomic' called on an object that is not a valid instance of Element."
1595
+ );
1596
+ }
1597
+
1598
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1599
+ try {
1600
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-atomic");
1601
+ } finally {
1602
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1603
+ }
1604
+ }
1605
+
1606
+ set ariaAtomic(V) {
1607
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1608
+
1609
+ if (!exports.is(esValue)) {
1610
+ throw new globalObject.TypeError(
1611
+ "'set ariaAtomic' called on an object that is not a valid instance of Element."
1612
+ );
1613
+ }
1614
+
1615
+ if (V === null || V === undefined) {
1616
+ V = null;
1617
+ } else {
1618
+ V = conversions["DOMString"](V, {
1619
+ context: "Failed to set the 'ariaAtomic' property on 'Element': The provided value",
1620
+ globals: globalObject
1621
+ });
1622
+ }
1623
+
1624
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1625
+ try {
1626
+ if (V === null) {
1627
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-atomic");
1628
+ } else {
1629
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-atomic", V);
1630
+ }
1631
+ } finally {
1632
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1633
+ }
1634
+ }
1635
+
1636
+ get ariaAutoComplete() {
1637
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1638
+
1639
+ if (!exports.is(esValue)) {
1640
+ throw new globalObject.TypeError(
1641
+ "'get ariaAutoComplete' called on an object that is not a valid instance of Element."
1642
+ );
1643
+ }
1644
+
1645
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1646
+ try {
1647
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-autocomplete");
1648
+ } finally {
1649
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1650
+ }
1651
+ }
1652
+
1653
+ set ariaAutoComplete(V) {
1654
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1655
+
1656
+ if (!exports.is(esValue)) {
1657
+ throw new globalObject.TypeError(
1658
+ "'set ariaAutoComplete' called on an object that is not a valid instance of Element."
1659
+ );
1660
+ }
1661
+
1662
+ if (V === null || V === undefined) {
1663
+ V = null;
1664
+ } else {
1665
+ V = conversions["DOMString"](V, {
1666
+ context: "Failed to set the 'ariaAutoComplete' property on 'Element': The provided value",
1667
+ globals: globalObject
1668
+ });
1669
+ }
1670
+
1671
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1672
+ try {
1673
+ if (V === null) {
1674
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-autocomplete");
1675
+ } else {
1676
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-autocomplete", V);
1677
+ }
1678
+ } finally {
1679
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1680
+ }
1681
+ }
1682
+
1683
+ get ariaBusy() {
1684
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1685
+
1686
+ if (!exports.is(esValue)) {
1687
+ throw new globalObject.TypeError("'get ariaBusy' called on an object that is not a valid instance of Element.");
1688
+ }
1689
+
1690
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1691
+ try {
1692
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-busy");
1693
+ } finally {
1694
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1695
+ }
1696
+ }
1697
+
1698
+ set ariaBusy(V) {
1699
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1700
+
1701
+ if (!exports.is(esValue)) {
1702
+ throw new globalObject.TypeError("'set ariaBusy' called on an object that is not a valid instance of Element.");
1703
+ }
1704
+
1705
+ if (V === null || V === undefined) {
1706
+ V = null;
1707
+ } else {
1708
+ V = conversions["DOMString"](V, {
1709
+ context: "Failed to set the 'ariaBusy' property on 'Element': The provided value",
1710
+ globals: globalObject
1711
+ });
1712
+ }
1713
+
1714
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1715
+ try {
1716
+ if (V === null) {
1717
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-busy");
1718
+ } else {
1719
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-busy", V);
1720
+ }
1721
+ } finally {
1722
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1723
+ }
1724
+ }
1725
+
1726
+ get ariaChecked() {
1727
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1728
+
1729
+ if (!exports.is(esValue)) {
1730
+ throw new globalObject.TypeError(
1731
+ "'get ariaChecked' called on an object that is not a valid instance of Element."
1732
+ );
1733
+ }
1734
+
1735
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1736
+ try {
1737
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-checked");
1738
+ } finally {
1739
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1740
+ }
1741
+ }
1742
+
1743
+ set ariaChecked(V) {
1744
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1745
+
1746
+ if (!exports.is(esValue)) {
1747
+ throw new globalObject.TypeError(
1748
+ "'set ariaChecked' called on an object that is not a valid instance of Element."
1749
+ );
1750
+ }
1751
+
1752
+ if (V === null || V === undefined) {
1753
+ V = null;
1754
+ } else {
1755
+ V = conversions["DOMString"](V, {
1756
+ context: "Failed to set the 'ariaChecked' property on 'Element': The provided value",
1757
+ globals: globalObject
1758
+ });
1759
+ }
1760
+
1761
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1762
+ try {
1763
+ if (V === null) {
1764
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-checked");
1765
+ } else {
1766
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-checked", V);
1767
+ }
1768
+ } finally {
1769
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1770
+ }
1771
+ }
1772
+
1773
+ get ariaColCount() {
1774
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1775
+
1776
+ if (!exports.is(esValue)) {
1777
+ throw new globalObject.TypeError(
1778
+ "'get ariaColCount' called on an object that is not a valid instance of Element."
1779
+ );
1780
+ }
1781
+
1782
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1783
+ try {
1784
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colcount");
1785
+ } finally {
1786
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1787
+ }
1788
+ }
1789
+
1790
+ set ariaColCount(V) {
1791
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1792
+
1793
+ if (!exports.is(esValue)) {
1794
+ throw new globalObject.TypeError(
1795
+ "'set ariaColCount' called on an object that is not a valid instance of Element."
1796
+ );
1797
+ }
1798
+
1799
+ if (V === null || V === undefined) {
1800
+ V = null;
1801
+ } else {
1802
+ V = conversions["DOMString"](V, {
1803
+ context: "Failed to set the 'ariaColCount' property on 'Element': The provided value",
1804
+ globals: globalObject
1805
+ });
1806
+ }
1807
+
1808
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1809
+ try {
1810
+ if (V === null) {
1811
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colcount");
1812
+ } else {
1813
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-colcount", V);
1814
+ }
1815
+ } finally {
1816
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1817
+ }
1818
+ }
1819
+
1820
+ get ariaColIndex() {
1821
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1822
+
1823
+ if (!exports.is(esValue)) {
1824
+ throw new globalObject.TypeError(
1825
+ "'get ariaColIndex' called on an object that is not a valid instance of Element."
1826
+ );
1827
+ }
1828
+
1829
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1830
+ try {
1831
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colindex");
1832
+ } finally {
1833
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1834
+ }
1835
+ }
1836
+
1837
+ set ariaColIndex(V) {
1838
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1839
+
1840
+ if (!exports.is(esValue)) {
1841
+ throw new globalObject.TypeError(
1842
+ "'set ariaColIndex' called on an object that is not a valid instance of Element."
1843
+ );
1844
+ }
1845
+
1846
+ if (V === null || V === undefined) {
1847
+ V = null;
1848
+ } else {
1849
+ V = conversions["DOMString"](V, {
1850
+ context: "Failed to set the 'ariaColIndex' property on 'Element': The provided value",
1851
+ globals: globalObject
1852
+ });
1853
+ }
1854
+
1855
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1856
+ try {
1857
+ if (V === null) {
1858
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colindex");
1859
+ } else {
1860
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-colindex", V);
1861
+ }
1862
+ } finally {
1863
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1864
+ }
1865
+ }
1866
+
1867
+ get ariaColIndexText() {
1868
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1869
+
1870
+ if (!exports.is(esValue)) {
1871
+ throw new globalObject.TypeError(
1872
+ "'get ariaColIndexText' called on an object that is not a valid instance of Element."
1873
+ );
1874
+ }
1875
+
1876
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1877
+ try {
1878
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colindextext");
1879
+ } finally {
1880
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1881
+ }
1882
+ }
1883
+
1884
+ set ariaColIndexText(V) {
1885
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1886
+
1887
+ if (!exports.is(esValue)) {
1888
+ throw new globalObject.TypeError(
1889
+ "'set ariaColIndexText' called on an object that is not a valid instance of Element."
1890
+ );
1891
+ }
1892
+
1893
+ if (V === null || V === undefined) {
1894
+ V = null;
1895
+ } else {
1896
+ V = conversions["DOMString"](V, {
1897
+ context: "Failed to set the 'ariaColIndexText' property on 'Element': The provided value",
1898
+ globals: globalObject
1899
+ });
1900
+ }
1901
+
1902
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1903
+ try {
1904
+ if (V === null) {
1905
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colindextext");
1906
+ } else {
1907
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-colindextext", V);
1908
+ }
1909
+ } finally {
1910
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1911
+ }
1912
+ }
1913
+
1914
+ get ariaColSpan() {
1915
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1916
+
1917
+ if (!exports.is(esValue)) {
1918
+ throw new globalObject.TypeError(
1919
+ "'get ariaColSpan' called on an object that is not a valid instance of Element."
1920
+ );
1921
+ }
1922
+
1923
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1924
+ try {
1925
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colspan");
1926
+ } finally {
1927
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1928
+ }
1929
+ }
1930
+
1931
+ set ariaColSpan(V) {
1932
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1933
+
1934
+ if (!exports.is(esValue)) {
1935
+ throw new globalObject.TypeError(
1936
+ "'set ariaColSpan' called on an object that is not a valid instance of Element."
1937
+ );
1938
+ }
1939
+
1940
+ if (V === null || V === undefined) {
1941
+ V = null;
1942
+ } else {
1943
+ V = conversions["DOMString"](V, {
1944
+ context: "Failed to set the 'ariaColSpan' property on 'Element': The provided value",
1945
+ globals: globalObject
1946
+ });
1947
+ }
1948
+
1949
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1950
+ try {
1951
+ if (V === null) {
1952
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colspan");
1953
+ } else {
1954
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-colspan", V);
1955
+ }
1956
+ } finally {
1957
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1958
+ }
1959
+ }
1960
+
1961
+ get ariaCurrent() {
1962
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1963
+
1964
+ if (!exports.is(esValue)) {
1965
+ throw new globalObject.TypeError(
1966
+ "'get ariaCurrent' called on an object that is not a valid instance of Element."
1967
+ );
1968
+ }
1969
+
1970
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1971
+ try {
1972
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-current");
1973
+ } finally {
1974
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
1975
+ }
1976
+ }
1977
+
1978
+ set ariaCurrent(V) {
1979
+ const esValue = this !== null && this !== undefined ? this : globalObject;
1980
+
1981
+ if (!exports.is(esValue)) {
1982
+ throw new globalObject.TypeError(
1983
+ "'set ariaCurrent' called on an object that is not a valid instance of Element."
1984
+ );
1985
+ }
1986
+
1987
+ if (V === null || V === undefined) {
1988
+ V = null;
1989
+ } else {
1990
+ V = conversions["DOMString"](V, {
1991
+ context: "Failed to set the 'ariaCurrent' property on 'Element': The provided value",
1992
+ globals: globalObject
1993
+ });
1994
+ }
1995
+
1996
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
1997
+ try {
1998
+ if (V === null) {
1999
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-current");
2000
+ } else {
2001
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-current", V);
2002
+ }
2003
+ } finally {
2004
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2005
+ }
2006
+ }
2007
+
2008
+ get ariaDescription() {
2009
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2010
+
2011
+ if (!exports.is(esValue)) {
2012
+ throw new globalObject.TypeError(
2013
+ "'get ariaDescription' called on an object that is not a valid instance of Element."
2014
+ );
2015
+ }
2016
+
2017
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2018
+ try {
2019
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-description");
2020
+ } finally {
2021
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2022
+ }
2023
+ }
2024
+
2025
+ set ariaDescription(V) {
2026
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2027
+
2028
+ if (!exports.is(esValue)) {
2029
+ throw new globalObject.TypeError(
2030
+ "'set ariaDescription' called on an object that is not a valid instance of Element."
2031
+ );
2032
+ }
2033
+
2034
+ if (V === null || V === undefined) {
2035
+ V = null;
2036
+ } else {
2037
+ V = conversions["DOMString"](V, {
2038
+ context: "Failed to set the 'ariaDescription' property on 'Element': The provided value",
2039
+ globals: globalObject
2040
+ });
2041
+ }
2042
+
2043
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2044
+ try {
2045
+ if (V === null) {
2046
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-description");
2047
+ } else {
2048
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-description", V);
2049
+ }
2050
+ } finally {
2051
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2052
+ }
2053
+ }
2054
+
2055
+ get ariaDisabled() {
2056
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2057
+
2058
+ if (!exports.is(esValue)) {
2059
+ throw new globalObject.TypeError(
2060
+ "'get ariaDisabled' called on an object that is not a valid instance of Element."
2061
+ );
2062
+ }
2063
+
2064
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2065
+ try {
2066
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-disabled");
2067
+ } finally {
2068
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2069
+ }
2070
+ }
2071
+
2072
+ set ariaDisabled(V) {
2073
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2074
+
2075
+ if (!exports.is(esValue)) {
2076
+ throw new globalObject.TypeError(
2077
+ "'set ariaDisabled' called on an object that is not a valid instance of Element."
2078
+ );
2079
+ }
2080
+
2081
+ if (V === null || V === undefined) {
2082
+ V = null;
2083
+ } else {
2084
+ V = conversions["DOMString"](V, {
2085
+ context: "Failed to set the 'ariaDisabled' property on 'Element': The provided value",
2086
+ globals: globalObject
2087
+ });
2088
+ }
2089
+
2090
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2091
+ try {
2092
+ if (V === null) {
2093
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-disabled");
2094
+ } else {
2095
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-disabled", V);
2096
+ }
2097
+ } finally {
2098
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2099
+ }
2100
+ }
2101
+
2102
+ get ariaExpanded() {
2103
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2104
+
2105
+ if (!exports.is(esValue)) {
2106
+ throw new globalObject.TypeError(
2107
+ "'get ariaExpanded' called on an object that is not a valid instance of Element."
2108
+ );
2109
+ }
2110
+
2111
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2112
+ try {
2113
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-expanded");
2114
+ } finally {
2115
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2116
+ }
2117
+ }
2118
+
2119
+ set ariaExpanded(V) {
2120
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2121
+
2122
+ if (!exports.is(esValue)) {
2123
+ throw new globalObject.TypeError(
2124
+ "'set ariaExpanded' called on an object that is not a valid instance of Element."
2125
+ );
2126
+ }
2127
+
2128
+ if (V === null || V === undefined) {
2129
+ V = null;
2130
+ } else {
2131
+ V = conversions["DOMString"](V, {
2132
+ context: "Failed to set the 'ariaExpanded' property on 'Element': The provided value",
2133
+ globals: globalObject
2134
+ });
2135
+ }
2136
+
2137
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2138
+ try {
2139
+ if (V === null) {
2140
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-expanded");
2141
+ } else {
2142
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-expanded", V);
2143
+ }
2144
+ } finally {
2145
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2146
+ }
2147
+ }
2148
+
2149
+ get ariaHasPopup() {
2150
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2151
+
2152
+ if (!exports.is(esValue)) {
2153
+ throw new globalObject.TypeError(
2154
+ "'get ariaHasPopup' called on an object that is not a valid instance of Element."
2155
+ );
2156
+ }
2157
+
2158
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2159
+ try {
2160
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-haspopup");
2161
+ } finally {
2162
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2163
+ }
2164
+ }
2165
+
2166
+ set ariaHasPopup(V) {
2167
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2168
+
2169
+ if (!exports.is(esValue)) {
2170
+ throw new globalObject.TypeError(
2171
+ "'set ariaHasPopup' called on an object that is not a valid instance of Element."
2172
+ );
2173
+ }
2174
+
2175
+ if (V === null || V === undefined) {
2176
+ V = null;
2177
+ } else {
2178
+ V = conversions["DOMString"](V, {
2179
+ context: "Failed to set the 'ariaHasPopup' property on 'Element': The provided value",
2180
+ globals: globalObject
2181
+ });
2182
+ }
2183
+
2184
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2185
+ try {
2186
+ if (V === null) {
2187
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-haspopup");
2188
+ } else {
2189
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-haspopup", V);
2190
+ }
2191
+ } finally {
2192
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2193
+ }
2194
+ }
2195
+
2196
+ get ariaHidden() {
2197
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2198
+
2199
+ if (!exports.is(esValue)) {
2200
+ throw new globalObject.TypeError(
2201
+ "'get ariaHidden' called on an object that is not a valid instance of Element."
2202
+ );
2203
+ }
2204
+
2205
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2206
+ try {
2207
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-hidden");
2208
+ } finally {
2209
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2210
+ }
2211
+ }
2212
+
2213
+ set ariaHidden(V) {
2214
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2215
+
2216
+ if (!exports.is(esValue)) {
2217
+ throw new globalObject.TypeError(
2218
+ "'set ariaHidden' called on an object that is not a valid instance of Element."
2219
+ );
2220
+ }
2221
+
2222
+ if (V === null || V === undefined) {
2223
+ V = null;
2224
+ } else {
2225
+ V = conversions["DOMString"](V, {
2226
+ context: "Failed to set the 'ariaHidden' property on 'Element': The provided value",
2227
+ globals: globalObject
2228
+ });
2229
+ }
2230
+
2231
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2232
+ try {
2233
+ if (V === null) {
2234
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-hidden");
2235
+ } else {
2236
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-hidden", V);
2237
+ }
2238
+ } finally {
2239
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2240
+ }
2241
+ }
2242
+
2243
+ get ariaInvalid() {
2244
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2245
+
2246
+ if (!exports.is(esValue)) {
2247
+ throw new globalObject.TypeError(
2248
+ "'get ariaInvalid' called on an object that is not a valid instance of Element."
2249
+ );
2250
+ }
2251
+
2252
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2253
+ try {
2254
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-invalid");
2255
+ } finally {
2256
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2257
+ }
2258
+ }
2259
+
2260
+ set ariaInvalid(V) {
2261
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2262
+
2263
+ if (!exports.is(esValue)) {
2264
+ throw new globalObject.TypeError(
2265
+ "'set ariaInvalid' called on an object that is not a valid instance of Element."
2266
+ );
2267
+ }
2268
+
2269
+ if (V === null || V === undefined) {
2270
+ V = null;
2271
+ } else {
2272
+ V = conversions["DOMString"](V, {
2273
+ context: "Failed to set the 'ariaInvalid' property on 'Element': The provided value",
2274
+ globals: globalObject
2275
+ });
2276
+ }
2277
+
2278
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2279
+ try {
2280
+ if (V === null) {
2281
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-invalid");
2282
+ } else {
2283
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-invalid", V);
2284
+ }
2285
+ } finally {
2286
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2287
+ }
2288
+ }
2289
+
2290
+ get ariaKeyShortcuts() {
2291
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2292
+
2293
+ if (!exports.is(esValue)) {
2294
+ throw new globalObject.TypeError(
2295
+ "'get ariaKeyShortcuts' called on an object that is not a valid instance of Element."
2296
+ );
2297
+ }
2298
+
2299
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2300
+ try {
2301
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-keyshortcuts");
2302
+ } finally {
2303
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2304
+ }
2305
+ }
2306
+
2307
+ set ariaKeyShortcuts(V) {
2308
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2309
+
2310
+ if (!exports.is(esValue)) {
2311
+ throw new globalObject.TypeError(
2312
+ "'set ariaKeyShortcuts' called on an object that is not a valid instance of Element."
2313
+ );
2314
+ }
2315
+
2316
+ if (V === null || V === undefined) {
2317
+ V = null;
2318
+ } else {
2319
+ V = conversions["DOMString"](V, {
2320
+ context: "Failed to set the 'ariaKeyShortcuts' property on 'Element': The provided value",
2321
+ globals: globalObject
2322
+ });
2323
+ }
2324
+
2325
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2326
+ try {
2327
+ if (V === null) {
2328
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-keyshortcuts");
2329
+ } else {
2330
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-keyshortcuts", V);
2331
+ }
2332
+ } finally {
2333
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2334
+ }
2335
+ }
2336
+
2337
+ get ariaLabel() {
2338
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2339
+
2340
+ if (!exports.is(esValue)) {
2341
+ throw new globalObject.TypeError(
2342
+ "'get ariaLabel' called on an object that is not a valid instance of Element."
2343
+ );
2344
+ }
2345
+
2346
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2347
+ try {
2348
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-label");
2349
+ } finally {
2350
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2351
+ }
2352
+ }
2353
+
2354
+ set ariaLabel(V) {
2355
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2356
+
2357
+ if (!exports.is(esValue)) {
2358
+ throw new globalObject.TypeError(
2359
+ "'set ariaLabel' called on an object that is not a valid instance of Element."
2360
+ );
2361
+ }
2362
+
2363
+ if (V === null || V === undefined) {
2364
+ V = null;
2365
+ } else {
2366
+ V = conversions["DOMString"](V, {
2367
+ context: "Failed to set the 'ariaLabel' property on 'Element': The provided value",
2368
+ globals: globalObject
2369
+ });
2370
+ }
2371
+
2372
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2373
+ try {
2374
+ if (V === null) {
2375
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-label");
2376
+ } else {
2377
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-label", V);
2378
+ }
2379
+ } finally {
2380
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2381
+ }
2382
+ }
2383
+
2384
+ get ariaLevel() {
2385
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2386
+
2387
+ if (!exports.is(esValue)) {
2388
+ throw new globalObject.TypeError(
2389
+ "'get ariaLevel' called on an object that is not a valid instance of Element."
2390
+ );
2391
+ }
2392
+
2393
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2394
+ try {
2395
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-level");
2396
+ } finally {
2397
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2398
+ }
2399
+ }
2400
+
2401
+ set ariaLevel(V) {
2402
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2403
+
2404
+ if (!exports.is(esValue)) {
2405
+ throw new globalObject.TypeError(
2406
+ "'set ariaLevel' called on an object that is not a valid instance of Element."
2407
+ );
2408
+ }
2409
+
2410
+ if (V === null || V === undefined) {
2411
+ V = null;
2412
+ } else {
2413
+ V = conversions["DOMString"](V, {
2414
+ context: "Failed to set the 'ariaLevel' property on 'Element': The provided value",
2415
+ globals: globalObject
2416
+ });
2417
+ }
2418
+
2419
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2420
+ try {
2421
+ if (V === null) {
2422
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-level");
2423
+ } else {
2424
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-level", V);
2425
+ }
2426
+ } finally {
2427
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2428
+ }
2429
+ }
2430
+
2431
+ get ariaLive() {
2432
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2433
+
2434
+ if (!exports.is(esValue)) {
2435
+ throw new globalObject.TypeError("'get ariaLive' called on an object that is not a valid instance of Element.");
2436
+ }
2437
+
2438
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2439
+ try {
2440
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-live");
2441
+ } finally {
2442
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2443
+ }
2444
+ }
2445
+
2446
+ set ariaLive(V) {
2447
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2448
+
2449
+ if (!exports.is(esValue)) {
2450
+ throw new globalObject.TypeError("'set ariaLive' called on an object that is not a valid instance of Element.");
2451
+ }
2452
+
2453
+ if (V === null || V === undefined) {
2454
+ V = null;
2455
+ } else {
2456
+ V = conversions["DOMString"](V, {
2457
+ context: "Failed to set the 'ariaLive' property on 'Element': The provided value",
2458
+ globals: globalObject
2459
+ });
2460
+ }
2461
+
2462
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2463
+ try {
2464
+ if (V === null) {
2465
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-live");
2466
+ } else {
2467
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-live", V);
2468
+ }
2469
+ } finally {
2470
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2471
+ }
2472
+ }
2473
+
2474
+ get ariaModal() {
2475
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2476
+
2477
+ if (!exports.is(esValue)) {
2478
+ throw new globalObject.TypeError(
2479
+ "'get ariaModal' called on an object that is not a valid instance of Element."
2480
+ );
2481
+ }
2482
+
2483
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2484
+ try {
2485
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-modal");
2486
+ } finally {
2487
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2488
+ }
2489
+ }
2490
+
2491
+ set ariaModal(V) {
2492
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2493
+
2494
+ if (!exports.is(esValue)) {
2495
+ throw new globalObject.TypeError(
2496
+ "'set ariaModal' called on an object that is not a valid instance of Element."
2497
+ );
2498
+ }
2499
+
2500
+ if (V === null || V === undefined) {
2501
+ V = null;
2502
+ } else {
2503
+ V = conversions["DOMString"](V, {
2504
+ context: "Failed to set the 'ariaModal' property on 'Element': The provided value",
2505
+ globals: globalObject
2506
+ });
2507
+ }
2508
+
2509
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2510
+ try {
2511
+ if (V === null) {
2512
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-modal");
2513
+ } else {
2514
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-modal", V);
2515
+ }
2516
+ } finally {
2517
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2518
+ }
2519
+ }
2520
+
2521
+ get ariaMultiLine() {
2522
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2523
+
2524
+ if (!exports.is(esValue)) {
2525
+ throw new globalObject.TypeError(
2526
+ "'get ariaMultiLine' called on an object that is not a valid instance of Element."
2527
+ );
2528
+ }
2529
+
2530
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2531
+ try {
2532
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-multiline");
2533
+ } finally {
2534
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2535
+ }
2536
+ }
2537
+
2538
+ set ariaMultiLine(V) {
2539
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2540
+
2541
+ if (!exports.is(esValue)) {
2542
+ throw new globalObject.TypeError(
2543
+ "'set ariaMultiLine' called on an object that is not a valid instance of Element."
2544
+ );
2545
+ }
2546
+
2547
+ if (V === null || V === undefined) {
2548
+ V = null;
2549
+ } else {
2550
+ V = conversions["DOMString"](V, {
2551
+ context: "Failed to set the 'ariaMultiLine' property on 'Element': The provided value",
2552
+ globals: globalObject
2553
+ });
2554
+ }
2555
+
2556
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2557
+ try {
2558
+ if (V === null) {
2559
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-multiline");
2560
+ } else {
2561
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-multiline", V);
2562
+ }
2563
+ } finally {
2564
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2565
+ }
2566
+ }
2567
+
2568
+ get ariaMultiSelectable() {
2569
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2570
+
2571
+ if (!exports.is(esValue)) {
2572
+ throw new globalObject.TypeError(
2573
+ "'get ariaMultiSelectable' called on an object that is not a valid instance of Element."
2574
+ );
2575
+ }
2576
+
2577
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2578
+ try {
2579
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-multiselectable");
2580
+ } finally {
2581
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2582
+ }
2583
+ }
2584
+
2585
+ set ariaMultiSelectable(V) {
2586
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2587
+
2588
+ if (!exports.is(esValue)) {
2589
+ throw new globalObject.TypeError(
2590
+ "'set ariaMultiSelectable' called on an object that is not a valid instance of Element."
2591
+ );
2592
+ }
2593
+
2594
+ if (V === null || V === undefined) {
2595
+ V = null;
2596
+ } else {
2597
+ V = conversions["DOMString"](V, {
2598
+ context: "Failed to set the 'ariaMultiSelectable' property on 'Element': The provided value",
2599
+ globals: globalObject
2600
+ });
2601
+ }
2602
+
2603
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2604
+ try {
2605
+ if (V === null) {
2606
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-multiselectable");
2607
+ } else {
2608
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-multiselectable", V);
2609
+ }
2610
+ } finally {
2611
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2612
+ }
2613
+ }
2614
+
2615
+ get ariaOrientation() {
2616
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2617
+
2618
+ if (!exports.is(esValue)) {
2619
+ throw new globalObject.TypeError(
2620
+ "'get ariaOrientation' called on an object that is not a valid instance of Element."
2621
+ );
2622
+ }
2623
+
2624
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2625
+ try {
2626
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-orientation");
2627
+ } finally {
2628
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2629
+ }
2630
+ }
2631
+
2632
+ set ariaOrientation(V) {
2633
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2634
+
2635
+ if (!exports.is(esValue)) {
2636
+ throw new globalObject.TypeError(
2637
+ "'set ariaOrientation' called on an object that is not a valid instance of Element."
2638
+ );
2639
+ }
2640
+
2641
+ if (V === null || V === undefined) {
2642
+ V = null;
2643
+ } else {
2644
+ V = conversions["DOMString"](V, {
2645
+ context: "Failed to set the 'ariaOrientation' property on 'Element': The provided value",
2646
+ globals: globalObject
2647
+ });
2648
+ }
2649
+
2650
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2651
+ try {
2652
+ if (V === null) {
2653
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-orientation");
2654
+ } else {
2655
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-orientation", V);
2656
+ }
2657
+ } finally {
2658
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2659
+ }
2660
+ }
2661
+
2662
+ get ariaPlaceholder() {
2663
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2664
+
2665
+ if (!exports.is(esValue)) {
2666
+ throw new globalObject.TypeError(
2667
+ "'get ariaPlaceholder' called on an object that is not a valid instance of Element."
2668
+ );
2669
+ }
2670
+
2671
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2672
+ try {
2673
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-placeholder");
2674
+ } finally {
2675
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2676
+ }
2677
+ }
2678
+
2679
+ set ariaPlaceholder(V) {
2680
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2681
+
2682
+ if (!exports.is(esValue)) {
2683
+ throw new globalObject.TypeError(
2684
+ "'set ariaPlaceholder' called on an object that is not a valid instance of Element."
2685
+ );
2686
+ }
2687
+
2688
+ if (V === null || V === undefined) {
2689
+ V = null;
2690
+ } else {
2691
+ V = conversions["DOMString"](V, {
2692
+ context: "Failed to set the 'ariaPlaceholder' property on 'Element': The provided value",
2693
+ globals: globalObject
2694
+ });
2695
+ }
2696
+
2697
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2698
+ try {
2699
+ if (V === null) {
2700
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-placeholder");
2701
+ } else {
2702
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-placeholder", V);
2703
+ }
2704
+ } finally {
2705
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2706
+ }
2707
+ }
2708
+
2709
+ get ariaPosInSet() {
2710
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2711
+
2712
+ if (!exports.is(esValue)) {
2713
+ throw new globalObject.TypeError(
2714
+ "'get ariaPosInSet' called on an object that is not a valid instance of Element."
2715
+ );
2716
+ }
2717
+
2718
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2719
+ try {
2720
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-posinset");
2721
+ } finally {
2722
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2723
+ }
2724
+ }
2725
+
2726
+ set ariaPosInSet(V) {
2727
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2728
+
2729
+ if (!exports.is(esValue)) {
2730
+ throw new globalObject.TypeError(
2731
+ "'set ariaPosInSet' called on an object that is not a valid instance of Element."
2732
+ );
2733
+ }
2734
+
2735
+ if (V === null || V === undefined) {
2736
+ V = null;
2737
+ } else {
2738
+ V = conversions["DOMString"](V, {
2739
+ context: "Failed to set the 'ariaPosInSet' property on 'Element': The provided value",
2740
+ globals: globalObject
2741
+ });
2742
+ }
2743
+
2744
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2745
+ try {
2746
+ if (V === null) {
2747
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-posinset");
2748
+ } else {
2749
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-posinset", V);
2750
+ }
2751
+ } finally {
2752
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2753
+ }
2754
+ }
2755
+
2756
+ get ariaPressed() {
2757
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2758
+
2759
+ if (!exports.is(esValue)) {
2760
+ throw new globalObject.TypeError(
2761
+ "'get ariaPressed' called on an object that is not a valid instance of Element."
2762
+ );
2763
+ }
2764
+
2765
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2766
+ try {
2767
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-pressed");
2768
+ } finally {
2769
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2770
+ }
2771
+ }
2772
+
2773
+ set ariaPressed(V) {
2774
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2775
+
2776
+ if (!exports.is(esValue)) {
2777
+ throw new globalObject.TypeError(
2778
+ "'set ariaPressed' called on an object that is not a valid instance of Element."
2779
+ );
2780
+ }
2781
+
2782
+ if (V === null || V === undefined) {
2783
+ V = null;
2784
+ } else {
2785
+ V = conversions["DOMString"](V, {
2786
+ context: "Failed to set the 'ariaPressed' property on 'Element': The provided value",
2787
+ globals: globalObject
2788
+ });
2789
+ }
2790
+
2791
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2792
+ try {
2793
+ if (V === null) {
2794
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-pressed");
2795
+ } else {
2796
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-pressed", V);
2797
+ }
2798
+ } finally {
2799
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2800
+ }
2801
+ }
2802
+
2803
+ get ariaReadOnly() {
2804
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2805
+
2806
+ if (!exports.is(esValue)) {
2807
+ throw new globalObject.TypeError(
2808
+ "'get ariaReadOnly' called on an object that is not a valid instance of Element."
2809
+ );
2810
+ }
2811
+
2812
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2813
+ try {
2814
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-readonly");
2815
+ } finally {
2816
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2817
+ }
2818
+ }
2819
+
2820
+ set ariaReadOnly(V) {
2821
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2822
+
2823
+ if (!exports.is(esValue)) {
2824
+ throw new globalObject.TypeError(
2825
+ "'set ariaReadOnly' called on an object that is not a valid instance of Element."
2826
+ );
2827
+ }
2828
+
2829
+ if (V === null || V === undefined) {
2830
+ V = null;
2831
+ } else {
2832
+ V = conversions["DOMString"](V, {
2833
+ context: "Failed to set the 'ariaReadOnly' property on 'Element': The provided value",
2834
+ globals: globalObject
2835
+ });
2836
+ }
2837
+
2838
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2839
+ try {
2840
+ if (V === null) {
2841
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-readonly");
2842
+ } else {
2843
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-readonly", V);
2844
+ }
2845
+ } finally {
2846
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2847
+ }
2848
+ }
2849
+
2850
+ get ariaRequired() {
2851
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2852
+
2853
+ if (!exports.is(esValue)) {
2854
+ throw new globalObject.TypeError(
2855
+ "'get ariaRequired' called on an object that is not a valid instance of Element."
2856
+ );
2857
+ }
2858
+
2859
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2860
+ try {
2861
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-required");
2862
+ } finally {
2863
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2864
+ }
2865
+ }
2866
+
2867
+ set ariaRequired(V) {
2868
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2869
+
2870
+ if (!exports.is(esValue)) {
2871
+ throw new globalObject.TypeError(
2872
+ "'set ariaRequired' called on an object that is not a valid instance of Element."
2873
+ );
2874
+ }
2875
+
2876
+ if (V === null || V === undefined) {
2877
+ V = null;
2878
+ } else {
2879
+ V = conversions["DOMString"](V, {
2880
+ context: "Failed to set the 'ariaRequired' property on 'Element': The provided value",
2881
+ globals: globalObject
2882
+ });
2883
+ }
2884
+
2885
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2886
+ try {
2887
+ if (V === null) {
2888
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-required");
2889
+ } else {
2890
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-required", V);
2891
+ }
2892
+ } finally {
2893
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2894
+ }
2895
+ }
2896
+
2897
+ get ariaRoleDescription() {
2898
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2899
+
2900
+ if (!exports.is(esValue)) {
2901
+ throw new globalObject.TypeError(
2902
+ "'get ariaRoleDescription' called on an object that is not a valid instance of Element."
2903
+ );
2904
+ }
2905
+
2906
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2907
+ try {
2908
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-roledescription");
2909
+ } finally {
2910
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2911
+ }
2912
+ }
2913
+
2914
+ set ariaRoleDescription(V) {
2915
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2916
+
2917
+ if (!exports.is(esValue)) {
2918
+ throw new globalObject.TypeError(
2919
+ "'set ariaRoleDescription' called on an object that is not a valid instance of Element."
2920
+ );
2921
+ }
2922
+
2923
+ if (V === null || V === undefined) {
2924
+ V = null;
2925
+ } else {
2926
+ V = conversions["DOMString"](V, {
2927
+ context: "Failed to set the 'ariaRoleDescription' property on 'Element': The provided value",
2928
+ globals: globalObject
2929
+ });
2930
+ }
2931
+
2932
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2933
+ try {
2934
+ if (V === null) {
2935
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-roledescription");
2936
+ } else {
2937
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-roledescription", V);
2938
+ }
2939
+ } finally {
2940
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2941
+ }
2942
+ }
2943
+
2944
+ get ariaRowCount() {
2945
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2946
+
2947
+ if (!exports.is(esValue)) {
2948
+ throw new globalObject.TypeError(
2949
+ "'get ariaRowCount' called on an object that is not a valid instance of Element."
2950
+ );
2951
+ }
2952
+
2953
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2954
+ try {
2955
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowcount");
2956
+ } finally {
2957
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2958
+ }
2959
+ }
2960
+
2961
+ set ariaRowCount(V) {
2962
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2963
+
2964
+ if (!exports.is(esValue)) {
2965
+ throw new globalObject.TypeError(
2966
+ "'set ariaRowCount' called on an object that is not a valid instance of Element."
2967
+ );
2968
+ }
2969
+
2970
+ if (V === null || V === undefined) {
2971
+ V = null;
2972
+ } else {
2973
+ V = conversions["DOMString"](V, {
2974
+ context: "Failed to set the 'ariaRowCount' property on 'Element': The provided value",
2975
+ globals: globalObject
2976
+ });
2977
+ }
2978
+
2979
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2980
+ try {
2981
+ if (V === null) {
2982
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowcount");
2983
+ } else {
2984
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowcount", V);
2985
+ }
2986
+ } finally {
2987
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
2988
+ }
2989
+ }
2990
+
2991
+ get ariaRowIndex() {
2992
+ const esValue = this !== null && this !== undefined ? this : globalObject;
2993
+
2994
+ if (!exports.is(esValue)) {
2995
+ throw new globalObject.TypeError(
2996
+ "'get ariaRowIndex' called on an object that is not a valid instance of Element."
2997
+ );
2998
+ }
2999
+
3000
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3001
+ try {
3002
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowindex");
3003
+ } finally {
3004
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3005
+ }
3006
+ }
3007
+
3008
+ set ariaRowIndex(V) {
3009
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3010
+
3011
+ if (!exports.is(esValue)) {
3012
+ throw new globalObject.TypeError(
3013
+ "'set ariaRowIndex' called on an object that is not a valid instance of Element."
3014
+ );
3015
+ }
3016
+
3017
+ if (V === null || V === undefined) {
3018
+ V = null;
3019
+ } else {
3020
+ V = conversions["DOMString"](V, {
3021
+ context: "Failed to set the 'ariaRowIndex' property on 'Element': The provided value",
3022
+ globals: globalObject
3023
+ });
3024
+ }
3025
+
3026
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3027
+ try {
3028
+ if (V === null) {
3029
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowindex");
3030
+ } else {
3031
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowindex", V);
3032
+ }
3033
+ } finally {
3034
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3035
+ }
3036
+ }
3037
+
3038
+ get ariaRowIndexText() {
3039
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3040
+
3041
+ if (!exports.is(esValue)) {
3042
+ throw new globalObject.TypeError(
3043
+ "'get ariaRowIndexText' called on an object that is not a valid instance of Element."
3044
+ );
3045
+ }
3046
+
3047
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3048
+ try {
3049
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowindextext");
3050
+ } finally {
3051
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3052
+ }
3053
+ }
3054
+
3055
+ set ariaRowIndexText(V) {
3056
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3057
+
3058
+ if (!exports.is(esValue)) {
3059
+ throw new globalObject.TypeError(
3060
+ "'set ariaRowIndexText' called on an object that is not a valid instance of Element."
3061
+ );
3062
+ }
3063
+
3064
+ if (V === null || V === undefined) {
3065
+ V = null;
3066
+ } else {
3067
+ V = conversions["DOMString"](V, {
3068
+ context: "Failed to set the 'ariaRowIndexText' property on 'Element': The provided value",
3069
+ globals: globalObject
3070
+ });
3071
+ }
3072
+
3073
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3074
+ try {
3075
+ if (V === null) {
3076
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowindextext");
3077
+ } else {
3078
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowindextext", V);
3079
+ }
3080
+ } finally {
3081
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3082
+ }
3083
+ }
3084
+
3085
+ get ariaRowSpan() {
3086
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3087
+
3088
+ if (!exports.is(esValue)) {
3089
+ throw new globalObject.TypeError(
3090
+ "'get ariaRowSpan' called on an object that is not a valid instance of Element."
3091
+ );
3092
+ }
3093
+
3094
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3095
+ try {
3096
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowspan");
3097
+ } finally {
3098
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3099
+ }
3100
+ }
3101
+
3102
+ set ariaRowSpan(V) {
3103
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3104
+
3105
+ if (!exports.is(esValue)) {
3106
+ throw new globalObject.TypeError(
3107
+ "'set ariaRowSpan' called on an object that is not a valid instance of Element."
3108
+ );
3109
+ }
3110
+
3111
+ if (V === null || V === undefined) {
3112
+ V = null;
3113
+ } else {
3114
+ V = conversions["DOMString"](V, {
3115
+ context: "Failed to set the 'ariaRowSpan' property on 'Element': The provided value",
3116
+ globals: globalObject
3117
+ });
3118
+ }
3119
+
3120
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3121
+ try {
3122
+ if (V === null) {
3123
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowspan");
3124
+ } else {
3125
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowspan", V);
3126
+ }
3127
+ } finally {
3128
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3129
+ }
3130
+ }
3131
+
3132
+ get ariaSelected() {
3133
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3134
+
3135
+ if (!exports.is(esValue)) {
3136
+ throw new globalObject.TypeError(
3137
+ "'get ariaSelected' called on an object that is not a valid instance of Element."
3138
+ );
3139
+ }
3140
+
3141
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3142
+ try {
3143
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-selected");
3144
+ } finally {
3145
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3146
+ }
3147
+ }
3148
+
3149
+ set ariaSelected(V) {
3150
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3151
+
3152
+ if (!exports.is(esValue)) {
3153
+ throw new globalObject.TypeError(
3154
+ "'set ariaSelected' called on an object that is not a valid instance of Element."
3155
+ );
3156
+ }
3157
+
3158
+ if (V === null || V === undefined) {
3159
+ V = null;
3160
+ } else {
3161
+ V = conversions["DOMString"](V, {
3162
+ context: "Failed to set the 'ariaSelected' property on 'Element': The provided value",
3163
+ globals: globalObject
3164
+ });
3165
+ }
3166
+
3167
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3168
+ try {
3169
+ if (V === null) {
3170
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-selected");
3171
+ } else {
3172
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-selected", V);
3173
+ }
3174
+ } finally {
3175
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3176
+ }
3177
+ }
3178
+
3179
+ get ariaSetSize() {
3180
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3181
+
3182
+ if (!exports.is(esValue)) {
3183
+ throw new globalObject.TypeError(
3184
+ "'get ariaSetSize' called on an object that is not a valid instance of Element."
3185
+ );
3186
+ }
3187
+
3188
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3189
+ try {
3190
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-setsize");
3191
+ } finally {
3192
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3193
+ }
3194
+ }
3195
+
3196
+ set ariaSetSize(V) {
3197
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3198
+
3199
+ if (!exports.is(esValue)) {
3200
+ throw new globalObject.TypeError(
3201
+ "'set ariaSetSize' called on an object that is not a valid instance of Element."
3202
+ );
3203
+ }
3204
+
3205
+ if (V === null || V === undefined) {
3206
+ V = null;
3207
+ } else {
3208
+ V = conversions["DOMString"](V, {
3209
+ context: "Failed to set the 'ariaSetSize' property on 'Element': The provided value",
3210
+ globals: globalObject
3211
+ });
3212
+ }
3213
+
3214
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3215
+ try {
3216
+ if (V === null) {
3217
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-setsize");
3218
+ } else {
3219
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-setsize", V);
3220
+ }
3221
+ } finally {
3222
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3223
+ }
3224
+ }
3225
+
3226
+ get ariaSort() {
3227
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3228
+
3229
+ if (!exports.is(esValue)) {
3230
+ throw new globalObject.TypeError("'get ariaSort' called on an object that is not a valid instance of Element.");
3231
+ }
3232
+
3233
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3234
+ try {
3235
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-sort");
3236
+ } finally {
3237
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3238
+ }
3239
+ }
3240
+
3241
+ set ariaSort(V) {
3242
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3243
+
3244
+ if (!exports.is(esValue)) {
3245
+ throw new globalObject.TypeError("'set ariaSort' called on an object that is not a valid instance of Element.");
3246
+ }
3247
+
3248
+ if (V === null || V === undefined) {
3249
+ V = null;
3250
+ } else {
3251
+ V = conversions["DOMString"](V, {
3252
+ context: "Failed to set the 'ariaSort' property on 'Element': The provided value",
3253
+ globals: globalObject
3254
+ });
3255
+ }
3256
+
3257
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3258
+ try {
3259
+ if (V === null) {
3260
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-sort");
3261
+ } else {
3262
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-sort", V);
3263
+ }
3264
+ } finally {
3265
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3266
+ }
3267
+ }
3268
+
3269
+ get ariaValueMax() {
3270
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3271
+
3272
+ if (!exports.is(esValue)) {
3273
+ throw new globalObject.TypeError(
3274
+ "'get ariaValueMax' called on an object that is not a valid instance of Element."
3275
+ );
3276
+ }
3277
+
3278
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3279
+ try {
3280
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuemax");
3281
+ } finally {
3282
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3283
+ }
3284
+ }
3285
+
3286
+ set ariaValueMax(V) {
3287
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3288
+
3289
+ if (!exports.is(esValue)) {
3290
+ throw new globalObject.TypeError(
3291
+ "'set ariaValueMax' called on an object that is not a valid instance of Element."
3292
+ );
3293
+ }
3294
+
3295
+ if (V === null || V === undefined) {
3296
+ V = null;
3297
+ } else {
3298
+ V = conversions["DOMString"](V, {
3299
+ context: "Failed to set the 'ariaValueMax' property on 'Element': The provided value",
3300
+ globals: globalObject
3301
+ });
3302
+ }
3303
+
3304
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3305
+ try {
3306
+ if (V === null) {
3307
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuemax");
3308
+ } else {
3309
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuemax", V);
3310
+ }
3311
+ } finally {
3312
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3313
+ }
3314
+ }
3315
+
3316
+ get ariaValueMin() {
3317
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3318
+
3319
+ if (!exports.is(esValue)) {
3320
+ throw new globalObject.TypeError(
3321
+ "'get ariaValueMin' called on an object that is not a valid instance of Element."
3322
+ );
3323
+ }
3324
+
3325
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3326
+ try {
3327
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuemin");
3328
+ } finally {
3329
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3330
+ }
3331
+ }
3332
+
3333
+ set ariaValueMin(V) {
3334
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3335
+
3336
+ if (!exports.is(esValue)) {
3337
+ throw new globalObject.TypeError(
3338
+ "'set ariaValueMin' called on an object that is not a valid instance of Element."
3339
+ );
3340
+ }
3341
+
3342
+ if (V === null || V === undefined) {
3343
+ V = null;
3344
+ } else {
3345
+ V = conversions["DOMString"](V, {
3346
+ context: "Failed to set the 'ariaValueMin' property on 'Element': The provided value",
3347
+ globals: globalObject
3348
+ });
3349
+ }
3350
+
3351
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3352
+ try {
3353
+ if (V === null) {
3354
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuemin");
3355
+ } else {
3356
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuemin", V);
3357
+ }
3358
+ } finally {
3359
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3360
+ }
3361
+ }
3362
+
3363
+ get ariaValueNow() {
3364
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3365
+
3366
+ if (!exports.is(esValue)) {
3367
+ throw new globalObject.TypeError(
3368
+ "'get ariaValueNow' called on an object that is not a valid instance of Element."
3369
+ );
3370
+ }
3371
+
3372
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3373
+ try {
3374
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuenow");
3375
+ } finally {
3376
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3377
+ }
3378
+ }
3379
+
3380
+ set ariaValueNow(V) {
3381
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3382
+
3383
+ if (!exports.is(esValue)) {
3384
+ throw new globalObject.TypeError(
3385
+ "'set ariaValueNow' called on an object that is not a valid instance of Element."
3386
+ );
3387
+ }
3388
+
3389
+ if (V === null || V === undefined) {
3390
+ V = null;
3391
+ } else {
3392
+ V = conversions["DOMString"](V, {
3393
+ context: "Failed to set the 'ariaValueNow' property on 'Element': The provided value",
3394
+ globals: globalObject
3395
+ });
3396
+ }
3397
+
3398
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3399
+ try {
3400
+ if (V === null) {
3401
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuenow");
3402
+ } else {
3403
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuenow", V);
3404
+ }
3405
+ } finally {
3406
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3407
+ }
3408
+ }
3409
+
3410
+ get ariaValueText() {
3411
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3412
+
3413
+ if (!exports.is(esValue)) {
3414
+ throw new globalObject.TypeError(
3415
+ "'get ariaValueText' called on an object that is not a valid instance of Element."
3416
+ );
3417
+ }
3418
+
3419
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3420
+ try {
3421
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuetext");
3422
+ } finally {
3423
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3424
+ }
3425
+ }
3426
+
3427
+ set ariaValueText(V) {
3428
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3429
+
3430
+ if (!exports.is(esValue)) {
3431
+ throw new globalObject.TypeError(
3432
+ "'set ariaValueText' called on an object that is not a valid instance of Element."
3433
+ );
3434
+ }
3435
+
3436
+ if (V === null || V === undefined) {
3437
+ V = null;
3438
+ } else {
3439
+ V = conversions["DOMString"](V, {
3440
+ context: "Failed to set the 'ariaValueText' property on 'Element': The provided value",
3441
+ globals: globalObject
3442
+ });
3443
+ }
3444
+
3445
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3446
+ try {
3447
+ if (V === null) {
3448
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuetext");
3449
+ } else {
3450
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuetext", V);
3451
+ }
3452
+ } finally {
3453
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3454
+ }
3455
+ }
3456
+
3457
+ get ariaRelevant() {
3458
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3459
+
3460
+ if (!exports.is(esValue)) {
3461
+ throw new globalObject.TypeError(
3462
+ "'get ariaRelevant' called on an object that is not a valid instance of Element."
3463
+ );
3464
+ }
3465
+
3466
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3467
+ try {
3468
+ return esValue[implSymbol]._reflectGetTheContentAttribute("aria-relevant");
3469
+ } finally {
3470
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3471
+ }
3472
+ }
3473
+
3474
+ set ariaRelevant(V) {
3475
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3476
+
3477
+ if (!exports.is(esValue)) {
3478
+ throw new globalObject.TypeError(
3479
+ "'set ariaRelevant' called on an object that is not a valid instance of Element."
3480
+ );
3481
+ }
3482
+
3483
+ if (V === null || V === undefined) {
3484
+ V = null;
3485
+ } else {
3486
+ V = conversions["DOMString"](V, {
3487
+ context: "Failed to set the 'ariaRelevant' property on 'Element': The provided value",
3488
+ globals: globalObject
3489
+ });
3490
+ }
3491
+
3492
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
3493
+ try {
3494
+ if (V === null) {
3495
+ esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-relevant");
3496
+ } else {
3497
+ esValue[implSymbol]._reflectSetTheContentAttribute("aria-relevant", V);
3498
+ }
3499
+ } finally {
3500
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
3501
+ }
3502
+ }
3503
+
3504
+ get previousElementSibling() {
3505
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3506
+
3507
+ if (!exports.is(esValue)) {
3508
+ throw new globalObject.TypeError(
3509
+ "'get previousElementSibling' called on an object that is not a valid instance of Element."
3510
+ );
3511
+ }
3512
+
3513
+ return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
3514
+ }
3515
+
3516
+ get nextElementSibling() {
3517
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3518
+
3519
+ if (!exports.is(esValue)) {
3520
+ throw new globalObject.TypeError(
3521
+ "'get nextElementSibling' called on an object that is not a valid instance of Element."
3522
+ );
3523
+ }
3524
+
3525
+ return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
3526
+ }
3527
+
3528
+ get children() {
3529
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3530
+
3531
+ if (!exports.is(esValue)) {
3532
+ throw new globalObject.TypeError("'get children' called on an object that is not a valid instance of Element.");
3533
+ }
3534
+
3535
+ return utils.getSameObject(this, "children", () => {
3536
+ return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
3537
+ });
3538
+ }
3539
+
3540
+ get firstElementChild() {
3541
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3542
+
3543
+ if (!exports.is(esValue)) {
3544
+ throw new globalObject.TypeError(
3545
+ "'get firstElementChild' called on an object that is not a valid instance of Element."
3546
+ );
3547
+ }
3548
+
3549
+ return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
3550
+ }
3551
+
3552
+ get lastElementChild() {
3553
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3554
+
3555
+ if (!exports.is(esValue)) {
3556
+ throw new globalObject.TypeError(
3557
+ "'get lastElementChild' called on an object that is not a valid instance of Element."
3558
+ );
3559
+ }
3560
+
3561
+ return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
3562
+ }
3563
+
3564
+ get childElementCount() {
3565
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3566
+
3567
+ if (!exports.is(esValue)) {
3568
+ throw new globalObject.TypeError(
3569
+ "'get childElementCount' called on an object that is not a valid instance of Element."
3570
+ );
3571
+ }
3572
+
3573
+ return esValue[implSymbol]["childElementCount"];
3574
+ }
3575
+
3576
+ get assignedSlot() {
3577
+ const esValue = this !== null && this !== undefined ? this : globalObject;
3578
+
3579
+ if (!exports.is(esValue)) {
3580
+ throw new globalObject.TypeError(
3581
+ "'get assignedSlot' called on an object that is not a valid instance of Element."
3582
+ );
3583
+ }
3584
+
3585
+ return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
3586
+ }
3587
+ }
3588
+ Object.defineProperties(Element.prototype, {
3589
+ hasAttributes: { enumerable: true },
3590
+ getAttributeNames: { enumerable: true },
3591
+ getAttribute: { enumerable: true },
3592
+ getAttributeNS: { enumerable: true },
3593
+ setAttribute: { enumerable: true },
3594
+ setAttributeNS: { enumerable: true },
3595
+ removeAttribute: { enumerable: true },
3596
+ removeAttributeNS: { enumerable: true },
3597
+ toggleAttribute: { enumerable: true },
3598
+ hasAttribute: { enumerable: true },
3599
+ hasAttributeNS: { enumerable: true },
3600
+ getAttributeNode: { enumerable: true },
3601
+ getAttributeNodeNS: { enumerable: true },
3602
+ setAttributeNode: { enumerable: true },
3603
+ setAttributeNodeNS: { enumerable: true },
3604
+ removeAttributeNode: { enumerable: true },
3605
+ attachShadow: { enumerable: true },
3606
+ closest: { enumerable: true },
3607
+ matches: { enumerable: true },
3608
+ webkitMatchesSelector: { enumerable: true },
3609
+ getElementsByTagName: { enumerable: true },
3610
+ getElementsByTagNameNS: { enumerable: true },
3611
+ getElementsByClassName: { enumerable: true },
3612
+ insertAdjacentElement: { enumerable: true },
3613
+ insertAdjacentText: { enumerable: true },
3614
+ insertAdjacentHTML: { enumerable: true },
3615
+ getClientRects: { enumerable: true },
3616
+ getBoundingClientRect: { enumerable: true },
3617
+ before: { enumerable: true },
3618
+ after: { enumerable: true },
3619
+ replaceWith: { enumerable: true },
3620
+ remove: { enumerable: true },
3621
+ prepend: { enumerable: true },
3622
+ append: { enumerable: true },
3623
+ replaceChildren: { enumerable: true },
3624
+ querySelector: { enumerable: true },
3625
+ querySelectorAll: { enumerable: true },
3626
+ namespaceURI: { enumerable: true },
3627
+ prefix: { enumerable: true },
3628
+ localName: { enumerable: true },
3629
+ tagName: { enumerable: true },
3630
+ id: { enumerable: true },
3631
+ className: { enumerable: true },
3632
+ classList: { enumerable: true },
3633
+ slot: { enumerable: true },
3634
+ attributes: { enumerable: true },
3635
+ shadowRoot: { enumerable: true },
3636
+ outerHTML: { enumerable: true },
3637
+ scrollTop: { enumerable: true },
3638
+ scrollLeft: { enumerable: true },
3639
+ scrollWidth: { enumerable: true },
3640
+ scrollHeight: { enumerable: true },
3641
+ clientTop: { enumerable: true },
3642
+ clientLeft: { enumerable: true },
3643
+ clientWidth: { enumerable: true },
3644
+ clientHeight: { enumerable: true },
3645
+ innerHTML: { enumerable: true },
3646
+ role: { enumerable: true },
3647
+ ariaAtomic: { enumerable: true },
3648
+ ariaAutoComplete: { enumerable: true },
3649
+ ariaBusy: { enumerable: true },
3650
+ ariaChecked: { enumerable: true },
3651
+ ariaColCount: { enumerable: true },
3652
+ ariaColIndex: { enumerable: true },
3653
+ ariaColIndexText: { enumerable: true },
3654
+ ariaColSpan: { enumerable: true },
3655
+ ariaCurrent: { enumerable: true },
3656
+ ariaDescription: { enumerable: true },
3657
+ ariaDisabled: { enumerable: true },
3658
+ ariaExpanded: { enumerable: true },
3659
+ ariaHasPopup: { enumerable: true },
3660
+ ariaHidden: { enumerable: true },
3661
+ ariaInvalid: { enumerable: true },
3662
+ ariaKeyShortcuts: { enumerable: true },
3663
+ ariaLabel: { enumerable: true },
3664
+ ariaLevel: { enumerable: true },
3665
+ ariaLive: { enumerable: true },
3666
+ ariaModal: { enumerable: true },
3667
+ ariaMultiLine: { enumerable: true },
3668
+ ariaMultiSelectable: { enumerable: true },
3669
+ ariaOrientation: { enumerable: true },
3670
+ ariaPlaceholder: { enumerable: true },
3671
+ ariaPosInSet: { enumerable: true },
3672
+ ariaPressed: { enumerable: true },
3673
+ ariaReadOnly: { enumerable: true },
3674
+ ariaRequired: { enumerable: true },
3675
+ ariaRoleDescription: { enumerable: true },
3676
+ ariaRowCount: { enumerable: true },
3677
+ ariaRowIndex: { enumerable: true },
3678
+ ariaRowIndexText: { enumerable: true },
3679
+ ariaRowSpan: { enumerable: true },
3680
+ ariaSelected: { enumerable: true },
3681
+ ariaSetSize: { enumerable: true },
3682
+ ariaSort: { enumerable: true },
3683
+ ariaValueMax: { enumerable: true },
3684
+ ariaValueMin: { enumerable: true },
3685
+ ariaValueNow: { enumerable: true },
3686
+ ariaValueText: { enumerable: true },
3687
+ ariaRelevant: { enumerable: true },
3688
+ previousElementSibling: { enumerable: true },
3689
+ nextElementSibling: { enumerable: true },
3690
+ children: { enumerable: true },
3691
+ firstElementChild: { enumerable: true },
3692
+ lastElementChild: { enumerable: true },
3693
+ childElementCount: { enumerable: true },
3694
+ assignedSlot: { enumerable: true },
3695
+ [Symbol.toStringTag]: { value: "Element", configurable: true },
3696
+ [Symbol.unscopables]: {
3697
+ value: {
3698
+ slot: true,
3699
+ before: true,
3700
+ after: true,
3701
+ replaceWith: true,
3702
+ remove: true,
3703
+ prepend: true,
3704
+ append: true,
3705
+ replaceChildren: true,
3706
+ __proto__: null
3707
+ },
3708
+ configurable: true
3709
+ }
3710
+ });
3711
+ ctorRegistry[interfaceName] = Element;
3712
+
3713
+ Object.defineProperty(globalObject, interfaceName, {
3714
+ configurable: true,
3715
+ writable: true,
3716
+ value: Element
3717
+ });
3718
+ };
3719
+
3720
+ const Impl = require("../../jsdom/living/nodes/Element-impl.js");