@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,880 @@
1
+ "use strict";
2
+
3
+ const conversions = require("webidl-conversions");
4
+ const utils = require("./utils.js");
5
+
6
+ const HTMLConstructor_jsdom_living_helpers_html_constructor =
7
+ require("../../jsdom/living/helpers/html-constructor.js").HTMLConstructor;
8
+ const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
9
+ require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
10
+ const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
11
+ require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
12
+ const EventHandlerNonNull = require("./EventHandlerNonNull.js");
13
+ const OnBeforeUnloadEventHandlerNonNull = require("./OnBeforeUnloadEventHandlerNonNull.js");
14
+ const implSymbol = utils.implSymbol;
15
+ const ctorRegistrySymbol = utils.ctorRegistrySymbol;
16
+ const HTMLElement = require("./HTMLElement.js");
17
+
18
+ const interfaceName = "HTMLBodyElement";
19
+
20
+ exports.is = value => {
21
+ return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
22
+ };
23
+ exports.isImpl = value => {
24
+ return utils.isObject(value) && value instanceof Impl.implementation;
25
+ };
26
+ exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
27
+ if (exports.is(value)) {
28
+ return utils.implForWrapper(value);
29
+ }
30
+ throw new globalObject.TypeError(`${context} is not of type 'HTMLBodyElement'.`);
31
+ };
32
+
33
+ function makeWrapper(globalObject, newTarget) {
34
+ let proto;
35
+ if (newTarget !== undefined) {
36
+ proto = newTarget.prototype;
37
+ }
38
+
39
+ if (!utils.isObject(proto)) {
40
+ proto = globalObject[ctorRegistrySymbol]["HTMLBodyElement"].prototype;
41
+ }
42
+
43
+ return Object.create(proto);
44
+ }
45
+
46
+ exports.create = (globalObject, constructorArgs, privateData) => {
47
+ const wrapper = makeWrapper(globalObject);
48
+ return exports.setup(wrapper, globalObject, constructorArgs, privateData);
49
+ };
50
+
51
+ exports.createImpl = (globalObject, constructorArgs, privateData) => {
52
+ const wrapper = exports.create(globalObject, constructorArgs, privateData);
53
+ return utils.implForWrapper(wrapper);
54
+ };
55
+
56
+ exports._internalSetup = (wrapper, globalObject) => {
57
+ HTMLElement._internalSetup(wrapper, globalObject);
58
+ };
59
+
60
+ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
61
+ privateData.wrapper = wrapper;
62
+
63
+ exports._internalSetup(wrapper, globalObject);
64
+ Object.defineProperty(wrapper, implSymbol, {
65
+ value: new Impl.implementation(globalObject, constructorArgs, privateData),
66
+ configurable: true
67
+ });
68
+
69
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
70
+ if (Impl.init) {
71
+ Impl.init(wrapper[implSymbol]);
72
+ }
73
+ return wrapper;
74
+ };
75
+
76
+ exports.new = (globalObject, newTarget) => {
77
+ const wrapper = makeWrapper(globalObject, newTarget);
78
+
79
+ exports._internalSetup(wrapper, globalObject);
80
+ Object.defineProperty(wrapper, implSymbol, {
81
+ value: Object.create(Impl.implementation.prototype),
82
+ configurable: true
83
+ });
84
+
85
+ wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
86
+ if (Impl.init) {
87
+ Impl.init(wrapper[implSymbol]);
88
+ }
89
+ return wrapper[implSymbol];
90
+ };
91
+
92
+ const exposed = new Set(["Window"]);
93
+
94
+ exports.install = (globalObject, globalNames) => {
95
+ if (!globalNames.some(globalName => exposed.has(globalName))) {
96
+ return;
97
+ }
98
+
99
+ const ctorRegistry = utils.initCtorRegistry(globalObject);
100
+ class HTMLBodyElement extends globalObject.HTMLElement {
101
+ constructor() {
102
+ return HTMLConstructor_jsdom_living_helpers_html_constructor(globalObject, interfaceName, new.target);
103
+ }
104
+
105
+ get text() {
106
+ const esValue = this !== null && this !== undefined ? this : globalObject;
107
+
108
+ if (!exports.is(esValue)) {
109
+ throw new globalObject.TypeError(
110
+ "'get text' called on an object that is not a valid instance of HTMLBodyElement."
111
+ );
112
+ }
113
+
114
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
115
+ try {
116
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("text");
117
+ return value === null ? "" : value;
118
+ } finally {
119
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
120
+ }
121
+ }
122
+
123
+ set text(V) {
124
+ const esValue = this !== null && this !== undefined ? this : globalObject;
125
+
126
+ if (!exports.is(esValue)) {
127
+ throw new globalObject.TypeError(
128
+ "'set text' called on an object that is not a valid instance of HTMLBodyElement."
129
+ );
130
+ }
131
+
132
+ V = conversions["DOMString"](V, {
133
+ context: "Failed to set the 'text' property on 'HTMLBodyElement': The provided value",
134
+ globals: globalObject,
135
+ treatNullAsEmptyString: true
136
+ });
137
+
138
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
139
+ try {
140
+ esValue[implSymbol]._reflectSetTheContentAttribute("text", V);
141
+ } finally {
142
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
143
+ }
144
+ }
145
+
146
+ get link() {
147
+ const esValue = this !== null && this !== undefined ? this : globalObject;
148
+
149
+ if (!exports.is(esValue)) {
150
+ throw new globalObject.TypeError(
151
+ "'get link' called on an object that is not a valid instance of HTMLBodyElement."
152
+ );
153
+ }
154
+
155
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
156
+ try {
157
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("link");
158
+ return value === null ? "" : value;
159
+ } finally {
160
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
161
+ }
162
+ }
163
+
164
+ set link(V) {
165
+ const esValue = this !== null && this !== undefined ? this : globalObject;
166
+
167
+ if (!exports.is(esValue)) {
168
+ throw new globalObject.TypeError(
169
+ "'set link' called on an object that is not a valid instance of HTMLBodyElement."
170
+ );
171
+ }
172
+
173
+ V = conversions["DOMString"](V, {
174
+ context: "Failed to set the 'link' property on 'HTMLBodyElement': The provided value",
175
+ globals: globalObject,
176
+ treatNullAsEmptyString: true
177
+ });
178
+
179
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
180
+ try {
181
+ esValue[implSymbol]._reflectSetTheContentAttribute("link", V);
182
+ } finally {
183
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
184
+ }
185
+ }
186
+
187
+ get vLink() {
188
+ const esValue = this !== null && this !== undefined ? this : globalObject;
189
+
190
+ if (!exports.is(esValue)) {
191
+ throw new globalObject.TypeError(
192
+ "'get vLink' called on an object that is not a valid instance of HTMLBodyElement."
193
+ );
194
+ }
195
+
196
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
197
+ try {
198
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("vlink");
199
+ return value === null ? "" : value;
200
+ } finally {
201
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
202
+ }
203
+ }
204
+
205
+ set vLink(V) {
206
+ const esValue = this !== null && this !== undefined ? this : globalObject;
207
+
208
+ if (!exports.is(esValue)) {
209
+ throw new globalObject.TypeError(
210
+ "'set vLink' called on an object that is not a valid instance of HTMLBodyElement."
211
+ );
212
+ }
213
+
214
+ V = conversions["DOMString"](V, {
215
+ context: "Failed to set the 'vLink' property on 'HTMLBodyElement': The provided value",
216
+ globals: globalObject,
217
+ treatNullAsEmptyString: true
218
+ });
219
+
220
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
221
+ try {
222
+ esValue[implSymbol]._reflectSetTheContentAttribute("vlink", V);
223
+ } finally {
224
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
225
+ }
226
+ }
227
+
228
+ get aLink() {
229
+ const esValue = this !== null && this !== undefined ? this : globalObject;
230
+
231
+ if (!exports.is(esValue)) {
232
+ throw new globalObject.TypeError(
233
+ "'get aLink' called on an object that is not a valid instance of HTMLBodyElement."
234
+ );
235
+ }
236
+
237
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
238
+ try {
239
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("alink");
240
+ return value === null ? "" : value;
241
+ } finally {
242
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
243
+ }
244
+ }
245
+
246
+ set aLink(V) {
247
+ const esValue = this !== null && this !== undefined ? this : globalObject;
248
+
249
+ if (!exports.is(esValue)) {
250
+ throw new globalObject.TypeError(
251
+ "'set aLink' called on an object that is not a valid instance of HTMLBodyElement."
252
+ );
253
+ }
254
+
255
+ V = conversions["DOMString"](V, {
256
+ context: "Failed to set the 'aLink' property on 'HTMLBodyElement': The provided value",
257
+ globals: globalObject,
258
+ treatNullAsEmptyString: true
259
+ });
260
+
261
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
262
+ try {
263
+ esValue[implSymbol]._reflectSetTheContentAttribute("alink", V);
264
+ } finally {
265
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
266
+ }
267
+ }
268
+
269
+ get bgColor() {
270
+ const esValue = this !== null && this !== undefined ? this : globalObject;
271
+
272
+ if (!exports.is(esValue)) {
273
+ throw new globalObject.TypeError(
274
+ "'get bgColor' called on an object that is not a valid instance of HTMLBodyElement."
275
+ );
276
+ }
277
+
278
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
279
+ try {
280
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("bgcolor");
281
+ return value === null ? "" : value;
282
+ } finally {
283
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
284
+ }
285
+ }
286
+
287
+ set bgColor(V) {
288
+ const esValue = this !== null && this !== undefined ? this : globalObject;
289
+
290
+ if (!exports.is(esValue)) {
291
+ throw new globalObject.TypeError(
292
+ "'set bgColor' called on an object that is not a valid instance of HTMLBodyElement."
293
+ );
294
+ }
295
+
296
+ V = conversions["DOMString"](V, {
297
+ context: "Failed to set the 'bgColor' property on 'HTMLBodyElement': The provided value",
298
+ globals: globalObject,
299
+ treatNullAsEmptyString: true
300
+ });
301
+
302
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
303
+ try {
304
+ esValue[implSymbol]._reflectSetTheContentAttribute("bgcolor", V);
305
+ } finally {
306
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
307
+ }
308
+ }
309
+
310
+ get background() {
311
+ const esValue = this !== null && this !== undefined ? this : globalObject;
312
+
313
+ if (!exports.is(esValue)) {
314
+ throw new globalObject.TypeError(
315
+ "'get background' called on an object that is not a valid instance of HTMLBodyElement."
316
+ );
317
+ }
318
+
319
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
320
+ try {
321
+ const value = esValue[implSymbol]._reflectGetTheContentAttribute("background");
322
+ return value === null ? "" : value;
323
+ } finally {
324
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
325
+ }
326
+ }
327
+
328
+ set background(V) {
329
+ const esValue = this !== null && this !== undefined ? this : globalObject;
330
+
331
+ if (!exports.is(esValue)) {
332
+ throw new globalObject.TypeError(
333
+ "'set background' called on an object that is not a valid instance of HTMLBodyElement."
334
+ );
335
+ }
336
+
337
+ V = conversions["DOMString"](V, {
338
+ context: "Failed to set the 'background' property on 'HTMLBodyElement': The provided value",
339
+ globals: globalObject
340
+ });
341
+
342
+ ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
343
+ try {
344
+ esValue[implSymbol]._reflectSetTheContentAttribute("background", V);
345
+ } finally {
346
+ ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
347
+ }
348
+ }
349
+
350
+ get onafterprint() {
351
+ const esValue = this !== null && this !== undefined ? this : globalObject;
352
+
353
+ if (!exports.is(esValue)) {
354
+ throw new globalObject.TypeError(
355
+ "'get onafterprint' called on an object that is not a valid instance of HTMLBodyElement."
356
+ );
357
+ }
358
+
359
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
360
+ }
361
+
362
+ set onafterprint(V) {
363
+ const esValue = this !== null && this !== undefined ? this : globalObject;
364
+
365
+ if (!exports.is(esValue)) {
366
+ throw new globalObject.TypeError(
367
+ "'set onafterprint' called on an object that is not a valid instance of HTMLBodyElement."
368
+ );
369
+ }
370
+
371
+ if (!utils.isObject(V)) {
372
+ V = null;
373
+ } else {
374
+ V = EventHandlerNonNull.convert(globalObject, V, {
375
+ context: "Failed to set the 'onafterprint' property on 'HTMLBodyElement': The provided value"
376
+ });
377
+ }
378
+ esValue[implSymbol]["onafterprint"] = V;
379
+ }
380
+
381
+ get onbeforeprint() {
382
+ const esValue = this !== null && this !== undefined ? this : globalObject;
383
+
384
+ if (!exports.is(esValue)) {
385
+ throw new globalObject.TypeError(
386
+ "'get onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement."
387
+ );
388
+ }
389
+
390
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
391
+ }
392
+
393
+ set onbeforeprint(V) {
394
+ const esValue = this !== null && this !== undefined ? this : globalObject;
395
+
396
+ if (!exports.is(esValue)) {
397
+ throw new globalObject.TypeError(
398
+ "'set onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement."
399
+ );
400
+ }
401
+
402
+ if (!utils.isObject(V)) {
403
+ V = null;
404
+ } else {
405
+ V = EventHandlerNonNull.convert(globalObject, V, {
406
+ context: "Failed to set the 'onbeforeprint' property on 'HTMLBodyElement': The provided value"
407
+ });
408
+ }
409
+ esValue[implSymbol]["onbeforeprint"] = V;
410
+ }
411
+
412
+ get onbeforeunload() {
413
+ const esValue = this !== null && this !== undefined ? this : globalObject;
414
+
415
+ if (!exports.is(esValue)) {
416
+ throw new globalObject.TypeError(
417
+ "'get onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
418
+ );
419
+ }
420
+
421
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
422
+ }
423
+
424
+ set onbeforeunload(V) {
425
+ const esValue = this !== null && this !== undefined ? this : globalObject;
426
+
427
+ if (!exports.is(esValue)) {
428
+ throw new globalObject.TypeError(
429
+ "'set onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
430
+ );
431
+ }
432
+
433
+ if (!utils.isObject(V)) {
434
+ V = null;
435
+ } else {
436
+ V = OnBeforeUnloadEventHandlerNonNull.convert(globalObject, V, {
437
+ context: "Failed to set the 'onbeforeunload' property on 'HTMLBodyElement': The provided value"
438
+ });
439
+ }
440
+ esValue[implSymbol]["onbeforeunload"] = V;
441
+ }
442
+
443
+ get onhashchange() {
444
+ const esValue = this !== null && this !== undefined ? this : globalObject;
445
+
446
+ if (!exports.is(esValue)) {
447
+ throw new globalObject.TypeError(
448
+ "'get onhashchange' called on an object that is not a valid instance of HTMLBodyElement."
449
+ );
450
+ }
451
+
452
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
453
+ }
454
+
455
+ set onhashchange(V) {
456
+ const esValue = this !== null && this !== undefined ? this : globalObject;
457
+
458
+ if (!exports.is(esValue)) {
459
+ throw new globalObject.TypeError(
460
+ "'set onhashchange' called on an object that is not a valid instance of HTMLBodyElement."
461
+ );
462
+ }
463
+
464
+ if (!utils.isObject(V)) {
465
+ V = null;
466
+ } else {
467
+ V = EventHandlerNonNull.convert(globalObject, V, {
468
+ context: "Failed to set the 'onhashchange' property on 'HTMLBodyElement': The provided value"
469
+ });
470
+ }
471
+ esValue[implSymbol]["onhashchange"] = V;
472
+ }
473
+
474
+ get onlanguagechange() {
475
+ const esValue = this !== null && this !== undefined ? this : globalObject;
476
+
477
+ if (!exports.is(esValue)) {
478
+ throw new globalObject.TypeError(
479
+ "'get onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
480
+ );
481
+ }
482
+
483
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
484
+ }
485
+
486
+ set onlanguagechange(V) {
487
+ const esValue = this !== null && this !== undefined ? this : globalObject;
488
+
489
+ if (!exports.is(esValue)) {
490
+ throw new globalObject.TypeError(
491
+ "'set onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
492
+ );
493
+ }
494
+
495
+ if (!utils.isObject(V)) {
496
+ V = null;
497
+ } else {
498
+ V = EventHandlerNonNull.convert(globalObject, V, {
499
+ context: "Failed to set the 'onlanguagechange' property on 'HTMLBodyElement': The provided value"
500
+ });
501
+ }
502
+ esValue[implSymbol]["onlanguagechange"] = V;
503
+ }
504
+
505
+ get onmessage() {
506
+ const esValue = this !== null && this !== undefined ? this : globalObject;
507
+
508
+ if (!exports.is(esValue)) {
509
+ throw new globalObject.TypeError(
510
+ "'get onmessage' called on an object that is not a valid instance of HTMLBodyElement."
511
+ );
512
+ }
513
+
514
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
515
+ }
516
+
517
+ set onmessage(V) {
518
+ const esValue = this !== null && this !== undefined ? this : globalObject;
519
+
520
+ if (!exports.is(esValue)) {
521
+ throw new globalObject.TypeError(
522
+ "'set onmessage' called on an object that is not a valid instance of HTMLBodyElement."
523
+ );
524
+ }
525
+
526
+ if (!utils.isObject(V)) {
527
+ V = null;
528
+ } else {
529
+ V = EventHandlerNonNull.convert(globalObject, V, {
530
+ context: "Failed to set the 'onmessage' property on 'HTMLBodyElement': The provided value"
531
+ });
532
+ }
533
+ esValue[implSymbol]["onmessage"] = V;
534
+ }
535
+
536
+ get onmessageerror() {
537
+ const esValue = this !== null && this !== undefined ? this : globalObject;
538
+
539
+ if (!exports.is(esValue)) {
540
+ throw new globalObject.TypeError(
541
+ "'get onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
542
+ );
543
+ }
544
+
545
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
546
+ }
547
+
548
+ set onmessageerror(V) {
549
+ const esValue = this !== null && this !== undefined ? this : globalObject;
550
+
551
+ if (!exports.is(esValue)) {
552
+ throw new globalObject.TypeError(
553
+ "'set onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
554
+ );
555
+ }
556
+
557
+ if (!utils.isObject(V)) {
558
+ V = null;
559
+ } else {
560
+ V = EventHandlerNonNull.convert(globalObject, V, {
561
+ context: "Failed to set the 'onmessageerror' property on 'HTMLBodyElement': The provided value"
562
+ });
563
+ }
564
+ esValue[implSymbol]["onmessageerror"] = V;
565
+ }
566
+
567
+ get onoffline() {
568
+ const esValue = this !== null && this !== undefined ? this : globalObject;
569
+
570
+ if (!exports.is(esValue)) {
571
+ throw new globalObject.TypeError(
572
+ "'get onoffline' called on an object that is not a valid instance of HTMLBodyElement."
573
+ );
574
+ }
575
+
576
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
577
+ }
578
+
579
+ set onoffline(V) {
580
+ const esValue = this !== null && this !== undefined ? this : globalObject;
581
+
582
+ if (!exports.is(esValue)) {
583
+ throw new globalObject.TypeError(
584
+ "'set onoffline' called on an object that is not a valid instance of HTMLBodyElement."
585
+ );
586
+ }
587
+
588
+ if (!utils.isObject(V)) {
589
+ V = null;
590
+ } else {
591
+ V = EventHandlerNonNull.convert(globalObject, V, {
592
+ context: "Failed to set the 'onoffline' property on 'HTMLBodyElement': The provided value"
593
+ });
594
+ }
595
+ esValue[implSymbol]["onoffline"] = V;
596
+ }
597
+
598
+ get ononline() {
599
+ const esValue = this !== null && this !== undefined ? this : globalObject;
600
+
601
+ if (!exports.is(esValue)) {
602
+ throw new globalObject.TypeError(
603
+ "'get ononline' called on an object that is not a valid instance of HTMLBodyElement."
604
+ );
605
+ }
606
+
607
+ return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
608
+ }
609
+
610
+ set ononline(V) {
611
+ const esValue = this !== null && this !== undefined ? this : globalObject;
612
+
613
+ if (!exports.is(esValue)) {
614
+ throw new globalObject.TypeError(
615
+ "'set ononline' called on an object that is not a valid instance of HTMLBodyElement."
616
+ );
617
+ }
618
+
619
+ if (!utils.isObject(V)) {
620
+ V = null;
621
+ } else {
622
+ V = EventHandlerNonNull.convert(globalObject, V, {
623
+ context: "Failed to set the 'ononline' property on 'HTMLBodyElement': The provided value"
624
+ });
625
+ }
626
+ esValue[implSymbol]["ononline"] = V;
627
+ }
628
+
629
+ get onpagehide() {
630
+ const esValue = this !== null && this !== undefined ? this : globalObject;
631
+
632
+ if (!exports.is(esValue)) {
633
+ throw new globalObject.TypeError(
634
+ "'get onpagehide' called on an object that is not a valid instance of HTMLBodyElement."
635
+ );
636
+ }
637
+
638
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
639
+ }
640
+
641
+ set onpagehide(V) {
642
+ const esValue = this !== null && this !== undefined ? this : globalObject;
643
+
644
+ if (!exports.is(esValue)) {
645
+ throw new globalObject.TypeError(
646
+ "'set onpagehide' called on an object that is not a valid instance of HTMLBodyElement."
647
+ );
648
+ }
649
+
650
+ if (!utils.isObject(V)) {
651
+ V = null;
652
+ } else {
653
+ V = EventHandlerNonNull.convert(globalObject, V, {
654
+ context: "Failed to set the 'onpagehide' property on 'HTMLBodyElement': The provided value"
655
+ });
656
+ }
657
+ esValue[implSymbol]["onpagehide"] = V;
658
+ }
659
+
660
+ get onpageshow() {
661
+ const esValue = this !== null && this !== undefined ? this : globalObject;
662
+
663
+ if (!exports.is(esValue)) {
664
+ throw new globalObject.TypeError(
665
+ "'get onpageshow' called on an object that is not a valid instance of HTMLBodyElement."
666
+ );
667
+ }
668
+
669
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
670
+ }
671
+
672
+ set onpageshow(V) {
673
+ const esValue = this !== null && this !== undefined ? this : globalObject;
674
+
675
+ if (!exports.is(esValue)) {
676
+ throw new globalObject.TypeError(
677
+ "'set onpageshow' called on an object that is not a valid instance of HTMLBodyElement."
678
+ );
679
+ }
680
+
681
+ if (!utils.isObject(V)) {
682
+ V = null;
683
+ } else {
684
+ V = EventHandlerNonNull.convert(globalObject, V, {
685
+ context: "Failed to set the 'onpageshow' property on 'HTMLBodyElement': The provided value"
686
+ });
687
+ }
688
+ esValue[implSymbol]["onpageshow"] = V;
689
+ }
690
+
691
+ get onpopstate() {
692
+ const esValue = this !== null && this !== undefined ? this : globalObject;
693
+
694
+ if (!exports.is(esValue)) {
695
+ throw new globalObject.TypeError(
696
+ "'get onpopstate' called on an object that is not a valid instance of HTMLBodyElement."
697
+ );
698
+ }
699
+
700
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
701
+ }
702
+
703
+ set onpopstate(V) {
704
+ const esValue = this !== null && this !== undefined ? this : globalObject;
705
+
706
+ if (!exports.is(esValue)) {
707
+ throw new globalObject.TypeError(
708
+ "'set onpopstate' called on an object that is not a valid instance of HTMLBodyElement."
709
+ );
710
+ }
711
+
712
+ if (!utils.isObject(V)) {
713
+ V = null;
714
+ } else {
715
+ V = EventHandlerNonNull.convert(globalObject, V, {
716
+ context: "Failed to set the 'onpopstate' property on 'HTMLBodyElement': The provided value"
717
+ });
718
+ }
719
+ esValue[implSymbol]["onpopstate"] = V;
720
+ }
721
+
722
+ get onrejectionhandled() {
723
+ const esValue = this !== null && this !== undefined ? this : globalObject;
724
+
725
+ if (!exports.is(esValue)) {
726
+ throw new globalObject.TypeError(
727
+ "'get onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
728
+ );
729
+ }
730
+
731
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
732
+ }
733
+
734
+ set onrejectionhandled(V) {
735
+ const esValue = this !== null && this !== undefined ? this : globalObject;
736
+
737
+ if (!exports.is(esValue)) {
738
+ throw new globalObject.TypeError(
739
+ "'set onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
740
+ );
741
+ }
742
+
743
+ if (!utils.isObject(V)) {
744
+ V = null;
745
+ } else {
746
+ V = EventHandlerNonNull.convert(globalObject, V, {
747
+ context: "Failed to set the 'onrejectionhandled' property on 'HTMLBodyElement': The provided value"
748
+ });
749
+ }
750
+ esValue[implSymbol]["onrejectionhandled"] = V;
751
+ }
752
+
753
+ get onstorage() {
754
+ const esValue = this !== null && this !== undefined ? this : globalObject;
755
+
756
+ if (!exports.is(esValue)) {
757
+ throw new globalObject.TypeError(
758
+ "'get onstorage' called on an object that is not a valid instance of HTMLBodyElement."
759
+ );
760
+ }
761
+
762
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
763
+ }
764
+
765
+ set onstorage(V) {
766
+ const esValue = this !== null && this !== undefined ? this : globalObject;
767
+
768
+ if (!exports.is(esValue)) {
769
+ throw new globalObject.TypeError(
770
+ "'set onstorage' called on an object that is not a valid instance of HTMLBodyElement."
771
+ );
772
+ }
773
+
774
+ if (!utils.isObject(V)) {
775
+ V = null;
776
+ } else {
777
+ V = EventHandlerNonNull.convert(globalObject, V, {
778
+ context: "Failed to set the 'onstorage' property on 'HTMLBodyElement': The provided value"
779
+ });
780
+ }
781
+ esValue[implSymbol]["onstorage"] = V;
782
+ }
783
+
784
+ get onunhandledrejection() {
785
+ const esValue = this !== null && this !== undefined ? this : globalObject;
786
+
787
+ if (!exports.is(esValue)) {
788
+ throw new globalObject.TypeError(
789
+ "'get onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
790
+ );
791
+ }
792
+
793
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
794
+ }
795
+
796
+ set onunhandledrejection(V) {
797
+ const esValue = this !== null && this !== undefined ? this : globalObject;
798
+
799
+ if (!exports.is(esValue)) {
800
+ throw new globalObject.TypeError(
801
+ "'set onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
802
+ );
803
+ }
804
+
805
+ if (!utils.isObject(V)) {
806
+ V = null;
807
+ } else {
808
+ V = EventHandlerNonNull.convert(globalObject, V, {
809
+ context: "Failed to set the 'onunhandledrejection' property on 'HTMLBodyElement': The provided value"
810
+ });
811
+ }
812
+ esValue[implSymbol]["onunhandledrejection"] = V;
813
+ }
814
+
815
+ get onunload() {
816
+ const esValue = this !== null && this !== undefined ? this : globalObject;
817
+
818
+ if (!exports.is(esValue)) {
819
+ throw new globalObject.TypeError(
820
+ "'get onunload' called on an object that is not a valid instance of HTMLBodyElement."
821
+ );
822
+ }
823
+
824
+ return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
825
+ }
826
+
827
+ set onunload(V) {
828
+ const esValue = this !== null && this !== undefined ? this : globalObject;
829
+
830
+ if (!exports.is(esValue)) {
831
+ throw new globalObject.TypeError(
832
+ "'set onunload' called on an object that is not a valid instance of HTMLBodyElement."
833
+ );
834
+ }
835
+
836
+ if (!utils.isObject(V)) {
837
+ V = null;
838
+ } else {
839
+ V = EventHandlerNonNull.convert(globalObject, V, {
840
+ context: "Failed to set the 'onunload' property on 'HTMLBodyElement': The provided value"
841
+ });
842
+ }
843
+ esValue[implSymbol]["onunload"] = V;
844
+ }
845
+ }
846
+ Object.defineProperties(HTMLBodyElement.prototype, {
847
+ text: { enumerable: true },
848
+ link: { enumerable: true },
849
+ vLink: { enumerable: true },
850
+ aLink: { enumerable: true },
851
+ bgColor: { enumerable: true },
852
+ background: { enumerable: true },
853
+ onafterprint: { enumerable: true },
854
+ onbeforeprint: { enumerable: true },
855
+ onbeforeunload: { enumerable: true },
856
+ onhashchange: { enumerable: true },
857
+ onlanguagechange: { enumerable: true },
858
+ onmessage: { enumerable: true },
859
+ onmessageerror: { enumerable: true },
860
+ onoffline: { enumerable: true },
861
+ ononline: { enumerable: true },
862
+ onpagehide: { enumerable: true },
863
+ onpageshow: { enumerable: true },
864
+ onpopstate: { enumerable: true },
865
+ onrejectionhandled: { enumerable: true },
866
+ onstorage: { enumerable: true },
867
+ onunhandledrejection: { enumerable: true },
868
+ onunload: { enumerable: true },
869
+ [Symbol.toStringTag]: { value: "HTMLBodyElement", configurable: true }
870
+ });
871
+ ctorRegistry[interfaceName] = HTMLBodyElement;
872
+
873
+ Object.defineProperty(globalObject, interfaceName, {
874
+ configurable: true,
875
+ writable: true,
876
+ value: HTMLBodyElement
877
+ });
878
+ };
879
+
880
+ const Impl = require("../../jsdom/living/nodes/HTMLBodyElement-impl.js");