Element.js 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720
  1. "use strict";
  2. const conversions = require("webidl-conversions");
  3. const utils = require("./utils.js");
  4. const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
  5. require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
  6. const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
  7. require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
  8. const Attr = require("./Attr.js");
  9. const ShadowRootInit = require("./ShadowRootInit.js");
  10. const Node = require("./Node.js");
  11. const implSymbol = utils.implSymbol;
  12. const ctorRegistrySymbol = utils.ctorRegistrySymbol;
  13. const interfaceName = "Element";
  14. exports.is = value => {
  15. return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
  16. };
  17. exports.isImpl = value => {
  18. return utils.isObject(value) && value instanceof Impl.implementation;
  19. };
  20. exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
  21. if (exports.is(value)) {
  22. return utils.implForWrapper(value);
  23. }
  24. throw new globalObject.TypeError(`${context} is not of type 'Element'.`);
  25. };
  26. function makeWrapper(globalObject, newTarget) {
  27. let proto;
  28. if (newTarget !== undefined) {
  29. proto = newTarget.prototype;
  30. }
  31. if (!utils.isObject(proto)) {
  32. proto = globalObject[ctorRegistrySymbol]["Element"].prototype;
  33. }
  34. return Object.create(proto);
  35. }
  36. exports.create = (globalObject, constructorArgs, privateData) => {
  37. const wrapper = makeWrapper(globalObject);
  38. return exports.setup(wrapper, globalObject, constructorArgs, privateData);
  39. };
  40. exports.createImpl = (globalObject, constructorArgs, privateData) => {
  41. const wrapper = exports.create(globalObject, constructorArgs, privateData);
  42. return utils.implForWrapper(wrapper);
  43. };
  44. exports._internalSetup = (wrapper, globalObject) => {
  45. Node._internalSetup(wrapper, globalObject);
  46. };
  47. exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
  48. privateData.wrapper = wrapper;
  49. exports._internalSetup(wrapper, globalObject);
  50. Object.defineProperty(wrapper, implSymbol, {
  51. value: new Impl.implementation(globalObject, constructorArgs, privateData),
  52. configurable: true
  53. });
  54. wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
  55. if (Impl.init) {
  56. Impl.init(wrapper[implSymbol]);
  57. }
  58. return wrapper;
  59. };
  60. exports.new = (globalObject, newTarget) => {
  61. const wrapper = makeWrapper(globalObject, newTarget);
  62. exports._internalSetup(wrapper, globalObject);
  63. Object.defineProperty(wrapper, implSymbol, {
  64. value: Object.create(Impl.implementation.prototype),
  65. configurable: true
  66. });
  67. wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
  68. if (Impl.init) {
  69. Impl.init(wrapper[implSymbol]);
  70. }
  71. return wrapper[implSymbol];
  72. };
  73. const exposed = new Set(["Window"]);
  74. exports.install = (globalObject, globalNames) => {
  75. if (!globalNames.some(globalName => exposed.has(globalName))) {
  76. return;
  77. }
  78. const ctorRegistry = utils.initCtorRegistry(globalObject);
  79. class Element extends globalObject.Node {
  80. constructor() {
  81. throw new globalObject.TypeError("Illegal constructor");
  82. }
  83. hasAttributes() {
  84. const esValue = this !== null && this !== undefined ? this : globalObject;
  85. if (!exports.is(esValue)) {
  86. throw new globalObject.TypeError(
  87. "'hasAttributes' called on an object that is not a valid instance of Element."
  88. );
  89. }
  90. return esValue[implSymbol].hasAttributes();
  91. }
  92. getAttributeNames() {
  93. const esValue = this !== null && this !== undefined ? this : globalObject;
  94. if (!exports.is(esValue)) {
  95. throw new globalObject.TypeError(
  96. "'getAttributeNames' called on an object that is not a valid instance of Element."
  97. );
  98. }
  99. return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNames());
  100. }
  101. getAttribute(qualifiedName) {
  102. const esValue = this !== null && this !== undefined ? this : globalObject;
  103. if (!exports.is(esValue)) {
  104. throw new globalObject.TypeError("'getAttribute' called on an object that is not a valid instance of Element.");
  105. }
  106. if (arguments.length < 1) {
  107. throw new globalObject.TypeError(
  108. `Failed to execute 'getAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
  109. );
  110. }
  111. const args = [];
  112. {
  113. let curArg = arguments[0];
  114. curArg = conversions["DOMString"](curArg, {
  115. context: "Failed to execute 'getAttribute' on 'Element': parameter 1",
  116. globals: globalObject
  117. });
  118. args.push(curArg);
  119. }
  120. return esValue[implSymbol].getAttribute(...args);
  121. }
  122. getAttributeNS(namespace, localName) {
  123. const esValue = this !== null && this !== undefined ? this : globalObject;
  124. if (!exports.is(esValue)) {
  125. throw new globalObject.TypeError(
  126. "'getAttributeNS' called on an object that is not a valid instance of Element."
  127. );
  128. }
  129. if (arguments.length < 2) {
  130. throw new globalObject.TypeError(
  131. `Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  132. );
  133. }
  134. const args = [];
  135. {
  136. let curArg = arguments[0];
  137. if (curArg === null || curArg === undefined) {
  138. curArg = null;
  139. } else {
  140. curArg = conversions["DOMString"](curArg, {
  141. context: "Failed to execute 'getAttributeNS' on 'Element': parameter 1",
  142. globals: globalObject
  143. });
  144. }
  145. args.push(curArg);
  146. }
  147. {
  148. let curArg = arguments[1];
  149. curArg = conversions["DOMString"](curArg, {
  150. context: "Failed to execute 'getAttributeNS' on 'Element': parameter 2",
  151. globals: globalObject
  152. });
  153. args.push(curArg);
  154. }
  155. return esValue[implSymbol].getAttributeNS(...args);
  156. }
  157. setAttribute(qualifiedName, value) {
  158. const esValue = this !== null && this !== undefined ? this : globalObject;
  159. if (!exports.is(esValue)) {
  160. throw new globalObject.TypeError("'setAttribute' called on an object that is not a valid instance of Element.");
  161. }
  162. if (arguments.length < 2) {
  163. throw new globalObject.TypeError(
  164. `Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  165. );
  166. }
  167. const args = [];
  168. {
  169. let curArg = arguments[0];
  170. curArg = conversions["DOMString"](curArg, {
  171. context: "Failed to execute 'setAttribute' on 'Element': parameter 1",
  172. globals: globalObject
  173. });
  174. args.push(curArg);
  175. }
  176. {
  177. let curArg = arguments[1];
  178. curArg = conversions["DOMString"](curArg, {
  179. context: "Failed to execute 'setAttribute' on 'Element': parameter 2",
  180. globals: globalObject
  181. });
  182. args.push(curArg);
  183. }
  184. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  185. try {
  186. return esValue[implSymbol].setAttribute(...args);
  187. } finally {
  188. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  189. }
  190. }
  191. setAttributeNS(namespace, qualifiedName, value) {
  192. const esValue = this !== null && this !== undefined ? this : globalObject;
  193. if (!exports.is(esValue)) {
  194. throw new globalObject.TypeError(
  195. "'setAttributeNS' called on an object that is not a valid instance of Element."
  196. );
  197. }
  198. if (arguments.length < 3) {
  199. throw new globalObject.TypeError(
  200. `Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only ${arguments.length} present.`
  201. );
  202. }
  203. const args = [];
  204. {
  205. let curArg = arguments[0];
  206. if (curArg === null || curArg === undefined) {
  207. curArg = null;
  208. } else {
  209. curArg = conversions["DOMString"](curArg, {
  210. context: "Failed to execute 'setAttributeNS' on 'Element': parameter 1",
  211. globals: globalObject
  212. });
  213. }
  214. args.push(curArg);
  215. }
  216. {
  217. let curArg = arguments[1];
  218. curArg = conversions["DOMString"](curArg, {
  219. context: "Failed to execute 'setAttributeNS' on 'Element': parameter 2",
  220. globals: globalObject
  221. });
  222. args.push(curArg);
  223. }
  224. {
  225. let curArg = arguments[2];
  226. curArg = conversions["DOMString"](curArg, {
  227. context: "Failed to execute 'setAttributeNS' on 'Element': parameter 3",
  228. globals: globalObject
  229. });
  230. args.push(curArg);
  231. }
  232. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  233. try {
  234. return esValue[implSymbol].setAttributeNS(...args);
  235. } finally {
  236. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  237. }
  238. }
  239. removeAttribute(qualifiedName) {
  240. const esValue = this !== null && this !== undefined ? this : globalObject;
  241. if (!exports.is(esValue)) {
  242. throw new globalObject.TypeError(
  243. "'removeAttribute' called on an object that is not a valid instance of Element."
  244. );
  245. }
  246. if (arguments.length < 1) {
  247. throw new globalObject.TypeError(
  248. `Failed to execute 'removeAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
  249. );
  250. }
  251. const args = [];
  252. {
  253. let curArg = arguments[0];
  254. curArg = conversions["DOMString"](curArg, {
  255. context: "Failed to execute 'removeAttribute' on 'Element': parameter 1",
  256. globals: globalObject
  257. });
  258. args.push(curArg);
  259. }
  260. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  261. try {
  262. return esValue[implSymbol].removeAttribute(...args);
  263. } finally {
  264. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  265. }
  266. }
  267. removeAttributeNS(namespace, localName) {
  268. const esValue = this !== null && this !== undefined ? this : globalObject;
  269. if (!exports.is(esValue)) {
  270. throw new globalObject.TypeError(
  271. "'removeAttributeNS' called on an object that is not a valid instance of Element."
  272. );
  273. }
  274. if (arguments.length < 2) {
  275. throw new globalObject.TypeError(
  276. `Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  277. );
  278. }
  279. const args = [];
  280. {
  281. let curArg = arguments[0];
  282. if (curArg === null || curArg === undefined) {
  283. curArg = null;
  284. } else {
  285. curArg = conversions["DOMString"](curArg, {
  286. context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 1",
  287. globals: globalObject
  288. });
  289. }
  290. args.push(curArg);
  291. }
  292. {
  293. let curArg = arguments[1];
  294. curArg = conversions["DOMString"](curArg, {
  295. context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 2",
  296. globals: globalObject
  297. });
  298. args.push(curArg);
  299. }
  300. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  301. try {
  302. return esValue[implSymbol].removeAttributeNS(...args);
  303. } finally {
  304. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  305. }
  306. }
  307. toggleAttribute(qualifiedName) {
  308. const esValue = this !== null && this !== undefined ? this : globalObject;
  309. if (!exports.is(esValue)) {
  310. throw new globalObject.TypeError(
  311. "'toggleAttribute' called on an object that is not a valid instance of Element."
  312. );
  313. }
  314. if (arguments.length < 1) {
  315. throw new globalObject.TypeError(
  316. `Failed to execute 'toggleAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
  317. );
  318. }
  319. const args = [];
  320. {
  321. let curArg = arguments[0];
  322. curArg = conversions["DOMString"](curArg, {
  323. context: "Failed to execute 'toggleAttribute' on 'Element': parameter 1",
  324. globals: globalObject
  325. });
  326. args.push(curArg);
  327. }
  328. {
  329. let curArg = arguments[1];
  330. if (curArg !== undefined) {
  331. curArg = conversions["boolean"](curArg, {
  332. context: "Failed to execute 'toggleAttribute' on 'Element': parameter 2",
  333. globals: globalObject
  334. });
  335. }
  336. args.push(curArg);
  337. }
  338. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  339. try {
  340. return esValue[implSymbol].toggleAttribute(...args);
  341. } finally {
  342. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  343. }
  344. }
  345. hasAttribute(qualifiedName) {
  346. const esValue = this !== null && this !== undefined ? this : globalObject;
  347. if (!exports.is(esValue)) {
  348. throw new globalObject.TypeError("'hasAttribute' called on an object that is not a valid instance of Element.");
  349. }
  350. if (arguments.length < 1) {
  351. throw new globalObject.TypeError(
  352. `Failed to execute 'hasAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
  353. );
  354. }
  355. const args = [];
  356. {
  357. let curArg = arguments[0];
  358. curArg = conversions["DOMString"](curArg, {
  359. context: "Failed to execute 'hasAttribute' on 'Element': parameter 1",
  360. globals: globalObject
  361. });
  362. args.push(curArg);
  363. }
  364. return esValue[implSymbol].hasAttribute(...args);
  365. }
  366. hasAttributeNS(namespace, localName) {
  367. const esValue = this !== null && this !== undefined ? this : globalObject;
  368. if (!exports.is(esValue)) {
  369. throw new globalObject.TypeError(
  370. "'hasAttributeNS' called on an object that is not a valid instance of Element."
  371. );
  372. }
  373. if (arguments.length < 2) {
  374. throw new globalObject.TypeError(
  375. `Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  376. );
  377. }
  378. const args = [];
  379. {
  380. let curArg = arguments[0];
  381. if (curArg === null || curArg === undefined) {
  382. curArg = null;
  383. } else {
  384. curArg = conversions["DOMString"](curArg, {
  385. context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 1",
  386. globals: globalObject
  387. });
  388. }
  389. args.push(curArg);
  390. }
  391. {
  392. let curArg = arguments[1];
  393. curArg = conversions["DOMString"](curArg, {
  394. context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 2",
  395. globals: globalObject
  396. });
  397. args.push(curArg);
  398. }
  399. return esValue[implSymbol].hasAttributeNS(...args);
  400. }
  401. getAttributeNode(qualifiedName) {
  402. const esValue = this !== null && this !== undefined ? this : globalObject;
  403. if (!exports.is(esValue)) {
  404. throw new globalObject.TypeError(
  405. "'getAttributeNode' called on an object that is not a valid instance of Element."
  406. );
  407. }
  408. if (arguments.length < 1) {
  409. throw new globalObject.TypeError(
  410. `Failed to execute 'getAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
  411. );
  412. }
  413. const args = [];
  414. {
  415. let curArg = arguments[0];
  416. curArg = conversions["DOMString"](curArg, {
  417. context: "Failed to execute 'getAttributeNode' on 'Element': parameter 1",
  418. globals: globalObject
  419. });
  420. args.push(curArg);
  421. }
  422. return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNode(...args));
  423. }
  424. getAttributeNodeNS(namespace, localName) {
  425. const esValue = this !== null && this !== undefined ? this : globalObject;
  426. if (!exports.is(esValue)) {
  427. throw new globalObject.TypeError(
  428. "'getAttributeNodeNS' called on an object that is not a valid instance of Element."
  429. );
  430. }
  431. if (arguments.length < 2) {
  432. throw new globalObject.TypeError(
  433. `Failed to execute 'getAttributeNodeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  434. );
  435. }
  436. const args = [];
  437. {
  438. let curArg = arguments[0];
  439. if (curArg === null || curArg === undefined) {
  440. curArg = null;
  441. } else {
  442. curArg = conversions["DOMString"](curArg, {
  443. context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 1",
  444. globals: globalObject
  445. });
  446. }
  447. args.push(curArg);
  448. }
  449. {
  450. let curArg = arguments[1];
  451. curArg = conversions["DOMString"](curArg, {
  452. context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 2",
  453. globals: globalObject
  454. });
  455. args.push(curArg);
  456. }
  457. return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNodeNS(...args));
  458. }
  459. setAttributeNode(attr) {
  460. const esValue = this !== null && this !== undefined ? this : globalObject;
  461. if (!exports.is(esValue)) {
  462. throw new globalObject.TypeError(
  463. "'setAttributeNode' called on an object that is not a valid instance of Element."
  464. );
  465. }
  466. if (arguments.length < 1) {
  467. throw new globalObject.TypeError(
  468. `Failed to execute 'setAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
  469. );
  470. }
  471. const args = [];
  472. {
  473. let curArg = arguments[0];
  474. curArg = Attr.convert(globalObject, curArg, {
  475. context: "Failed to execute 'setAttributeNode' on 'Element': parameter 1"
  476. });
  477. args.push(curArg);
  478. }
  479. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  480. try {
  481. return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNode(...args));
  482. } finally {
  483. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  484. }
  485. }
  486. setAttributeNodeNS(attr) {
  487. const esValue = this !== null && this !== undefined ? this : globalObject;
  488. if (!exports.is(esValue)) {
  489. throw new globalObject.TypeError(
  490. "'setAttributeNodeNS' called on an object that is not a valid instance of Element."
  491. );
  492. }
  493. if (arguments.length < 1) {
  494. throw new globalObject.TypeError(
  495. `Failed to execute 'setAttributeNodeNS' on 'Element': 1 argument required, but only ${arguments.length} present.`
  496. );
  497. }
  498. const args = [];
  499. {
  500. let curArg = arguments[0];
  501. curArg = Attr.convert(globalObject, curArg, {
  502. context: "Failed to execute 'setAttributeNodeNS' on 'Element': parameter 1"
  503. });
  504. args.push(curArg);
  505. }
  506. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  507. try {
  508. return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNodeNS(...args));
  509. } finally {
  510. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  511. }
  512. }
  513. removeAttributeNode(attr) {
  514. const esValue = this !== null && this !== undefined ? this : globalObject;
  515. if (!exports.is(esValue)) {
  516. throw new globalObject.TypeError(
  517. "'removeAttributeNode' called on an object that is not a valid instance of Element."
  518. );
  519. }
  520. if (arguments.length < 1) {
  521. throw new globalObject.TypeError(
  522. `Failed to execute 'removeAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
  523. );
  524. }
  525. const args = [];
  526. {
  527. let curArg = arguments[0];
  528. curArg = Attr.convert(globalObject, curArg, {
  529. context: "Failed to execute 'removeAttributeNode' on 'Element': parameter 1"
  530. });
  531. args.push(curArg);
  532. }
  533. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  534. try {
  535. return utils.tryWrapperForImpl(esValue[implSymbol].removeAttributeNode(...args));
  536. } finally {
  537. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  538. }
  539. }
  540. attachShadow(init) {
  541. const esValue = this !== null && this !== undefined ? this : globalObject;
  542. if (!exports.is(esValue)) {
  543. throw new globalObject.TypeError("'attachShadow' called on an object that is not a valid instance of Element.");
  544. }
  545. if (arguments.length < 1) {
  546. throw new globalObject.TypeError(
  547. `Failed to execute 'attachShadow' on 'Element': 1 argument required, but only ${arguments.length} present.`
  548. );
  549. }
  550. const args = [];
  551. {
  552. let curArg = arguments[0];
  553. curArg = ShadowRootInit.convert(globalObject, curArg, {
  554. context: "Failed to execute 'attachShadow' on 'Element': parameter 1"
  555. });
  556. args.push(curArg);
  557. }
  558. return utils.tryWrapperForImpl(esValue[implSymbol].attachShadow(...args));
  559. }
  560. closest(selectors) {
  561. const esValue = this !== null && this !== undefined ? this : globalObject;
  562. if (!exports.is(esValue)) {
  563. throw new globalObject.TypeError("'closest' called on an object that is not a valid instance of Element.");
  564. }
  565. if (arguments.length < 1) {
  566. throw new globalObject.TypeError(
  567. `Failed to execute 'closest' on 'Element': 1 argument required, but only ${arguments.length} present.`
  568. );
  569. }
  570. const args = [];
  571. {
  572. let curArg = arguments[0];
  573. curArg = conversions["DOMString"](curArg, {
  574. context: "Failed to execute 'closest' on 'Element': parameter 1",
  575. globals: globalObject
  576. });
  577. args.push(curArg);
  578. }
  579. return utils.tryWrapperForImpl(esValue[implSymbol].closest(...args));
  580. }
  581. matches(selectors) {
  582. const esValue = this !== null && this !== undefined ? this : globalObject;
  583. if (!exports.is(esValue)) {
  584. throw new globalObject.TypeError("'matches' called on an object that is not a valid instance of Element.");
  585. }
  586. if (arguments.length < 1) {
  587. throw new globalObject.TypeError(
  588. `Failed to execute 'matches' on 'Element': 1 argument required, but only ${arguments.length} present.`
  589. );
  590. }
  591. const args = [];
  592. {
  593. let curArg = arguments[0];
  594. curArg = conversions["DOMString"](curArg, {
  595. context: "Failed to execute 'matches' on 'Element': parameter 1",
  596. globals: globalObject
  597. });
  598. args.push(curArg);
  599. }
  600. return esValue[implSymbol].matches(...args);
  601. }
  602. webkitMatchesSelector(selectors) {
  603. const esValue = this !== null && this !== undefined ? this : globalObject;
  604. if (!exports.is(esValue)) {
  605. throw new globalObject.TypeError(
  606. "'webkitMatchesSelector' called on an object that is not a valid instance of Element."
  607. );
  608. }
  609. if (arguments.length < 1) {
  610. throw new globalObject.TypeError(
  611. `Failed to execute 'webkitMatchesSelector' on 'Element': 1 argument required, but only ${arguments.length} present.`
  612. );
  613. }
  614. const args = [];
  615. {
  616. let curArg = arguments[0];
  617. curArg = conversions["DOMString"](curArg, {
  618. context: "Failed to execute 'webkitMatchesSelector' on 'Element': parameter 1",
  619. globals: globalObject
  620. });
  621. args.push(curArg);
  622. }
  623. return esValue[implSymbol].webkitMatchesSelector(...args);
  624. }
  625. getElementsByTagName(qualifiedName) {
  626. const esValue = this !== null && this !== undefined ? this : globalObject;
  627. if (!exports.is(esValue)) {
  628. throw new globalObject.TypeError(
  629. "'getElementsByTagName' called on an object that is not a valid instance of Element."
  630. );
  631. }
  632. if (arguments.length < 1) {
  633. throw new globalObject.TypeError(
  634. `Failed to execute 'getElementsByTagName' on 'Element': 1 argument required, but only ${arguments.length} present.`
  635. );
  636. }
  637. const args = [];
  638. {
  639. let curArg = arguments[0];
  640. curArg = conversions["DOMString"](curArg, {
  641. context: "Failed to execute 'getElementsByTagName' on 'Element': parameter 1",
  642. globals: globalObject
  643. });
  644. args.push(curArg);
  645. }
  646. return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
  647. }
  648. getElementsByTagNameNS(namespace, localName) {
  649. const esValue = this !== null && this !== undefined ? this : globalObject;
  650. if (!exports.is(esValue)) {
  651. throw new globalObject.TypeError(
  652. "'getElementsByTagNameNS' called on an object that is not a valid instance of Element."
  653. );
  654. }
  655. if (arguments.length < 2) {
  656. throw new globalObject.TypeError(
  657. `Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  658. );
  659. }
  660. const args = [];
  661. {
  662. let curArg = arguments[0];
  663. if (curArg === null || curArg === undefined) {
  664. curArg = null;
  665. } else {
  666. curArg = conversions["DOMString"](curArg, {
  667. context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 1",
  668. globals: globalObject
  669. });
  670. }
  671. args.push(curArg);
  672. }
  673. {
  674. let curArg = arguments[1];
  675. curArg = conversions["DOMString"](curArg, {
  676. context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 2",
  677. globals: globalObject
  678. });
  679. args.push(curArg);
  680. }
  681. return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
  682. }
  683. getElementsByClassName(classNames) {
  684. const esValue = this !== null && this !== undefined ? this : globalObject;
  685. if (!exports.is(esValue)) {
  686. throw new globalObject.TypeError(
  687. "'getElementsByClassName' called on an object that is not a valid instance of Element."
  688. );
  689. }
  690. if (arguments.length < 1) {
  691. throw new globalObject.TypeError(
  692. `Failed to execute 'getElementsByClassName' on 'Element': 1 argument required, but only ${arguments.length} present.`
  693. );
  694. }
  695. const args = [];
  696. {
  697. let curArg = arguments[0];
  698. curArg = conversions["DOMString"](curArg, {
  699. context: "Failed to execute 'getElementsByClassName' on 'Element': parameter 1",
  700. globals: globalObject
  701. });
  702. args.push(curArg);
  703. }
  704. return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
  705. }
  706. insertAdjacentElement(where, element) {
  707. const esValue = this !== null && this !== undefined ? this : globalObject;
  708. if (!exports.is(esValue)) {
  709. throw new globalObject.TypeError(
  710. "'insertAdjacentElement' called on an object that is not a valid instance of Element."
  711. );
  712. }
  713. if (arguments.length < 2) {
  714. throw new globalObject.TypeError(
  715. `Failed to execute 'insertAdjacentElement' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  716. );
  717. }
  718. const args = [];
  719. {
  720. let curArg = arguments[0];
  721. curArg = conversions["DOMString"](curArg, {
  722. context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 1",
  723. globals: globalObject
  724. });
  725. args.push(curArg);
  726. }
  727. {
  728. let curArg = arguments[1];
  729. curArg = exports.convert(globalObject, curArg, {
  730. context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 2"
  731. });
  732. args.push(curArg);
  733. }
  734. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  735. try {
  736. return utils.tryWrapperForImpl(esValue[implSymbol].insertAdjacentElement(...args));
  737. } finally {
  738. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  739. }
  740. }
  741. insertAdjacentText(where, data) {
  742. const esValue = this !== null && this !== undefined ? this : globalObject;
  743. if (!exports.is(esValue)) {
  744. throw new globalObject.TypeError(
  745. "'insertAdjacentText' called on an object that is not a valid instance of Element."
  746. );
  747. }
  748. if (arguments.length < 2) {
  749. throw new globalObject.TypeError(
  750. `Failed to execute 'insertAdjacentText' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  751. );
  752. }
  753. const args = [];
  754. {
  755. let curArg = arguments[0];
  756. curArg = conversions["DOMString"](curArg, {
  757. context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 1",
  758. globals: globalObject
  759. });
  760. args.push(curArg);
  761. }
  762. {
  763. let curArg = arguments[1];
  764. curArg = conversions["DOMString"](curArg, {
  765. context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 2",
  766. globals: globalObject
  767. });
  768. args.push(curArg);
  769. }
  770. return esValue[implSymbol].insertAdjacentText(...args);
  771. }
  772. insertAdjacentHTML(position, text) {
  773. const esValue = this !== null && this !== undefined ? this : globalObject;
  774. if (!exports.is(esValue)) {
  775. throw new globalObject.TypeError(
  776. "'insertAdjacentHTML' called on an object that is not a valid instance of Element."
  777. );
  778. }
  779. if (arguments.length < 2) {
  780. throw new globalObject.TypeError(
  781. `Failed to execute 'insertAdjacentHTML' on 'Element': 2 arguments required, but only ${arguments.length} present.`
  782. );
  783. }
  784. const args = [];
  785. {
  786. let curArg = arguments[0];
  787. curArg = conversions["DOMString"](curArg, {
  788. context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 1",
  789. globals: globalObject
  790. });
  791. args.push(curArg);
  792. }
  793. {
  794. let curArg = arguments[1];
  795. curArg = conversions["DOMString"](curArg, {
  796. context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 2",
  797. globals: globalObject
  798. });
  799. args.push(curArg);
  800. }
  801. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  802. try {
  803. return esValue[implSymbol].insertAdjacentHTML(...args);
  804. } finally {
  805. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  806. }
  807. }
  808. getClientRects() {
  809. const esValue = this !== null && this !== undefined ? this : globalObject;
  810. if (!exports.is(esValue)) {
  811. throw new globalObject.TypeError(
  812. "'getClientRects' called on an object that is not a valid instance of Element."
  813. );
  814. }
  815. return utils.tryWrapperForImpl(esValue[implSymbol].getClientRects());
  816. }
  817. getBoundingClientRect() {
  818. const esValue = this !== null && this !== undefined ? this : globalObject;
  819. if (!exports.is(esValue)) {
  820. throw new globalObject.TypeError(
  821. "'getBoundingClientRect' called on an object that is not a valid instance of Element."
  822. );
  823. }
  824. return utils.tryWrapperForImpl(esValue[implSymbol].getBoundingClientRect());
  825. }
  826. before() {
  827. const esValue = this !== null && this !== undefined ? this : globalObject;
  828. if (!exports.is(esValue)) {
  829. throw new globalObject.TypeError("'before' called on an object that is not a valid instance of Element.");
  830. }
  831. const args = [];
  832. for (let i = 0; i < arguments.length; i++) {
  833. let curArg = arguments[i];
  834. if (Node.is(curArg)) {
  835. curArg = utils.implForWrapper(curArg);
  836. } else {
  837. curArg = conversions["DOMString"](curArg, {
  838. context: "Failed to execute 'before' on 'Element': parameter " + (i + 1),
  839. globals: globalObject
  840. });
  841. }
  842. args.push(curArg);
  843. }
  844. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  845. try {
  846. return esValue[implSymbol].before(...args);
  847. } finally {
  848. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  849. }
  850. }
  851. after() {
  852. const esValue = this !== null && this !== undefined ? this : globalObject;
  853. if (!exports.is(esValue)) {
  854. throw new globalObject.TypeError("'after' called on an object that is not a valid instance of Element.");
  855. }
  856. const args = [];
  857. for (let i = 0; i < arguments.length; i++) {
  858. let curArg = arguments[i];
  859. if (Node.is(curArg)) {
  860. curArg = utils.implForWrapper(curArg);
  861. } else {
  862. curArg = conversions["DOMString"](curArg, {
  863. context: "Failed to execute 'after' on 'Element': parameter " + (i + 1),
  864. globals: globalObject
  865. });
  866. }
  867. args.push(curArg);
  868. }
  869. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  870. try {
  871. return esValue[implSymbol].after(...args);
  872. } finally {
  873. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  874. }
  875. }
  876. replaceWith() {
  877. const esValue = this !== null && this !== undefined ? this : globalObject;
  878. if (!exports.is(esValue)) {
  879. throw new globalObject.TypeError("'replaceWith' called on an object that is not a valid instance of Element.");
  880. }
  881. const args = [];
  882. for (let i = 0; i < arguments.length; i++) {
  883. let curArg = arguments[i];
  884. if (Node.is(curArg)) {
  885. curArg = utils.implForWrapper(curArg);
  886. } else {
  887. curArg = conversions["DOMString"](curArg, {
  888. context: "Failed to execute 'replaceWith' on 'Element': parameter " + (i + 1),
  889. globals: globalObject
  890. });
  891. }
  892. args.push(curArg);
  893. }
  894. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  895. try {
  896. return esValue[implSymbol].replaceWith(...args);
  897. } finally {
  898. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  899. }
  900. }
  901. remove() {
  902. const esValue = this !== null && this !== undefined ? this : globalObject;
  903. if (!exports.is(esValue)) {
  904. throw new globalObject.TypeError("'remove' called on an object that is not a valid instance of Element.");
  905. }
  906. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  907. try {
  908. return esValue[implSymbol].remove();
  909. } finally {
  910. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  911. }
  912. }
  913. prepend() {
  914. const esValue = this !== null && this !== undefined ? this : globalObject;
  915. if (!exports.is(esValue)) {
  916. throw new globalObject.TypeError("'prepend' called on an object that is not a valid instance of Element.");
  917. }
  918. const args = [];
  919. for (let i = 0; i < arguments.length; i++) {
  920. let curArg = arguments[i];
  921. if (Node.is(curArg)) {
  922. curArg = utils.implForWrapper(curArg);
  923. } else {
  924. curArg = conversions["DOMString"](curArg, {
  925. context: "Failed to execute 'prepend' on 'Element': parameter " + (i + 1),
  926. globals: globalObject
  927. });
  928. }
  929. args.push(curArg);
  930. }
  931. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  932. try {
  933. return esValue[implSymbol].prepend(...args);
  934. } finally {
  935. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  936. }
  937. }
  938. append() {
  939. const esValue = this !== null && this !== undefined ? this : globalObject;
  940. if (!exports.is(esValue)) {
  941. throw new globalObject.TypeError("'append' called on an object that is not a valid instance of Element.");
  942. }
  943. const args = [];
  944. for (let i = 0; i < arguments.length; i++) {
  945. let curArg = arguments[i];
  946. if (Node.is(curArg)) {
  947. curArg = utils.implForWrapper(curArg);
  948. } else {
  949. curArg = conversions["DOMString"](curArg, {
  950. context: "Failed to execute 'append' on 'Element': parameter " + (i + 1),
  951. globals: globalObject
  952. });
  953. }
  954. args.push(curArg);
  955. }
  956. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  957. try {
  958. return esValue[implSymbol].append(...args);
  959. } finally {
  960. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  961. }
  962. }
  963. replaceChildren() {
  964. const esValue = this !== null && this !== undefined ? this : globalObject;
  965. if (!exports.is(esValue)) {
  966. throw new globalObject.TypeError(
  967. "'replaceChildren' called on an object that is not a valid instance of Element."
  968. );
  969. }
  970. const args = [];
  971. for (let i = 0; i < arguments.length; i++) {
  972. let curArg = arguments[i];
  973. if (Node.is(curArg)) {
  974. curArg = utils.implForWrapper(curArg);
  975. } else {
  976. curArg = conversions["DOMString"](curArg, {
  977. context: "Failed to execute 'replaceChildren' on 'Element': parameter " + (i + 1),
  978. globals: globalObject
  979. });
  980. }
  981. args.push(curArg);
  982. }
  983. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  984. try {
  985. return esValue[implSymbol].replaceChildren(...args);
  986. } finally {
  987. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  988. }
  989. }
  990. querySelector(selectors) {
  991. const esValue = this !== null && this !== undefined ? this : globalObject;
  992. if (!exports.is(esValue)) {
  993. throw new globalObject.TypeError(
  994. "'querySelector' called on an object that is not a valid instance of Element."
  995. );
  996. }
  997. if (arguments.length < 1) {
  998. throw new globalObject.TypeError(
  999. `Failed to execute 'querySelector' on 'Element': 1 argument required, but only ${arguments.length} present.`
  1000. );
  1001. }
  1002. const args = [];
  1003. {
  1004. let curArg = arguments[0];
  1005. curArg = conversions["DOMString"](curArg, {
  1006. context: "Failed to execute 'querySelector' on 'Element': parameter 1",
  1007. globals: globalObject
  1008. });
  1009. args.push(curArg);
  1010. }
  1011. return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
  1012. }
  1013. querySelectorAll(selectors) {
  1014. const esValue = this !== null && this !== undefined ? this : globalObject;
  1015. if (!exports.is(esValue)) {
  1016. throw new globalObject.TypeError(
  1017. "'querySelectorAll' called on an object that is not a valid instance of Element."
  1018. );
  1019. }
  1020. if (arguments.length < 1) {
  1021. throw new globalObject.TypeError(
  1022. `Failed to execute 'querySelectorAll' on 'Element': 1 argument required, but only ${arguments.length} present.`
  1023. );
  1024. }
  1025. const args = [];
  1026. {
  1027. let curArg = arguments[0];
  1028. curArg = conversions["DOMString"](curArg, {
  1029. context: "Failed to execute 'querySelectorAll' on 'Element': parameter 1",
  1030. globals: globalObject
  1031. });
  1032. args.push(curArg);
  1033. }
  1034. return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
  1035. }
  1036. get namespaceURI() {
  1037. const esValue = this !== null && this !== undefined ? this : globalObject;
  1038. if (!exports.is(esValue)) {
  1039. throw new globalObject.TypeError(
  1040. "'get namespaceURI' called on an object that is not a valid instance of Element."
  1041. );
  1042. }
  1043. return esValue[implSymbol]["namespaceURI"];
  1044. }
  1045. get prefix() {
  1046. const esValue = this !== null && this !== undefined ? this : globalObject;
  1047. if (!exports.is(esValue)) {
  1048. throw new globalObject.TypeError("'get prefix' called on an object that is not a valid instance of Element.");
  1049. }
  1050. return esValue[implSymbol]["prefix"];
  1051. }
  1052. get localName() {
  1053. const esValue = this !== null && this !== undefined ? this : globalObject;
  1054. if (!exports.is(esValue)) {
  1055. throw new globalObject.TypeError(
  1056. "'get localName' called on an object that is not a valid instance of Element."
  1057. );
  1058. }
  1059. return esValue[implSymbol]["localName"];
  1060. }
  1061. get tagName() {
  1062. const esValue = this !== null && this !== undefined ? this : globalObject;
  1063. if (!exports.is(esValue)) {
  1064. throw new globalObject.TypeError("'get tagName' called on an object that is not a valid instance of Element.");
  1065. }
  1066. return esValue[implSymbol]["tagName"];
  1067. }
  1068. get id() {
  1069. const esValue = this !== null && this !== undefined ? this : globalObject;
  1070. if (!exports.is(esValue)) {
  1071. throw new globalObject.TypeError("'get id' called on an object that is not a valid instance of Element.");
  1072. }
  1073. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1074. try {
  1075. const value = esValue[implSymbol]._reflectGetTheContentAttribute("id");
  1076. return value === null ? "" : value;
  1077. } finally {
  1078. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1079. }
  1080. }
  1081. set id(V) {
  1082. const esValue = this !== null && this !== undefined ? this : globalObject;
  1083. if (!exports.is(esValue)) {
  1084. throw new globalObject.TypeError("'set id' called on an object that is not a valid instance of Element.");
  1085. }
  1086. V = conversions["DOMString"](V, {
  1087. context: "Failed to set the 'id' property on 'Element': The provided value",
  1088. globals: globalObject
  1089. });
  1090. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1091. try {
  1092. esValue[implSymbol]._reflectSetTheContentAttribute("id", V);
  1093. } finally {
  1094. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1095. }
  1096. }
  1097. get className() {
  1098. const esValue = this !== null && this !== undefined ? this : globalObject;
  1099. if (!exports.is(esValue)) {
  1100. throw new globalObject.TypeError(
  1101. "'get className' called on an object that is not a valid instance of Element."
  1102. );
  1103. }
  1104. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1105. try {
  1106. const value = esValue[implSymbol]._reflectGetTheContentAttribute("class");
  1107. return value === null ? "" : value;
  1108. } finally {
  1109. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1110. }
  1111. }
  1112. set className(V) {
  1113. const esValue = this !== null && this !== undefined ? this : globalObject;
  1114. if (!exports.is(esValue)) {
  1115. throw new globalObject.TypeError(
  1116. "'set className' called on an object that is not a valid instance of Element."
  1117. );
  1118. }
  1119. V = conversions["DOMString"](V, {
  1120. context: "Failed to set the 'className' property on 'Element': The provided value",
  1121. globals: globalObject
  1122. });
  1123. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1124. try {
  1125. esValue[implSymbol]._reflectSetTheContentAttribute("class", V);
  1126. } finally {
  1127. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1128. }
  1129. }
  1130. get classList() {
  1131. const esValue = this !== null && this !== undefined ? this : globalObject;
  1132. if (!exports.is(esValue)) {
  1133. throw new globalObject.TypeError(
  1134. "'get classList' called on an object that is not a valid instance of Element."
  1135. );
  1136. }
  1137. return utils.getSameObject(this, "classList", () => {
  1138. return utils.tryWrapperForImpl(esValue[implSymbol]["classList"]);
  1139. });
  1140. }
  1141. set classList(V) {
  1142. const esValue = this !== null && this !== undefined ? this : globalObject;
  1143. if (!exports.is(esValue)) {
  1144. throw new globalObject.TypeError(
  1145. "'set classList' called on an object that is not a valid instance of Element."
  1146. );
  1147. }
  1148. const Q = esValue["classList"];
  1149. if (!utils.isObject(Q)) {
  1150. throw new globalObject.TypeError("Property 'classList' is not an object");
  1151. }
  1152. Reflect.set(Q, "value", V);
  1153. }
  1154. get slot() {
  1155. const esValue = this !== null && this !== undefined ? this : globalObject;
  1156. if (!exports.is(esValue)) {
  1157. throw new globalObject.TypeError("'get slot' called on an object that is not a valid instance of Element.");
  1158. }
  1159. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1160. try {
  1161. const value = esValue[implSymbol]._reflectGetTheContentAttribute("slot");
  1162. return value === null ? "" : value;
  1163. } finally {
  1164. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1165. }
  1166. }
  1167. set slot(V) {
  1168. const esValue = this !== null && this !== undefined ? this : globalObject;
  1169. if (!exports.is(esValue)) {
  1170. throw new globalObject.TypeError("'set slot' called on an object that is not a valid instance of Element.");
  1171. }
  1172. V = conversions["DOMString"](V, {
  1173. context: "Failed to set the 'slot' property on 'Element': The provided value",
  1174. globals: globalObject
  1175. });
  1176. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1177. try {
  1178. esValue[implSymbol]._reflectSetTheContentAttribute("slot", V);
  1179. } finally {
  1180. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1181. }
  1182. }
  1183. get attributes() {
  1184. const esValue = this !== null && this !== undefined ? this : globalObject;
  1185. if (!exports.is(esValue)) {
  1186. throw new globalObject.TypeError(
  1187. "'get attributes' called on an object that is not a valid instance of Element."
  1188. );
  1189. }
  1190. return utils.getSameObject(this, "attributes", () => {
  1191. return utils.tryWrapperForImpl(esValue[implSymbol]["attributes"]);
  1192. });
  1193. }
  1194. get shadowRoot() {
  1195. const esValue = this !== null && this !== undefined ? this : globalObject;
  1196. if (!exports.is(esValue)) {
  1197. throw new globalObject.TypeError(
  1198. "'get shadowRoot' called on an object that is not a valid instance of Element."
  1199. );
  1200. }
  1201. return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
  1202. }
  1203. get outerHTML() {
  1204. const esValue = this !== null && this !== undefined ? this : globalObject;
  1205. if (!exports.is(esValue)) {
  1206. throw new globalObject.TypeError(
  1207. "'get outerHTML' called on an object that is not a valid instance of Element."
  1208. );
  1209. }
  1210. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1211. try {
  1212. return esValue[implSymbol]["outerHTML"];
  1213. } finally {
  1214. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1215. }
  1216. }
  1217. set outerHTML(V) {
  1218. const esValue = this !== null && this !== undefined ? this : globalObject;
  1219. if (!exports.is(esValue)) {
  1220. throw new globalObject.TypeError(
  1221. "'set outerHTML' called on an object that is not a valid instance of Element."
  1222. );
  1223. }
  1224. V = conversions["DOMString"](V, {
  1225. context: "Failed to set the 'outerHTML' property on 'Element': The provided value",
  1226. globals: globalObject,
  1227. treatNullAsEmptyString: true
  1228. });
  1229. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1230. try {
  1231. esValue[implSymbol]["outerHTML"] = V;
  1232. } finally {
  1233. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1234. }
  1235. }
  1236. get scrollTop() {
  1237. const esValue = this !== null && this !== undefined ? this : globalObject;
  1238. if (!exports.is(esValue)) {
  1239. throw new globalObject.TypeError(
  1240. "'get scrollTop' called on an object that is not a valid instance of Element."
  1241. );
  1242. }
  1243. return esValue[implSymbol]["scrollTop"];
  1244. }
  1245. set scrollTop(V) {
  1246. const esValue = this !== null && this !== undefined ? this : globalObject;
  1247. if (!exports.is(esValue)) {
  1248. throw new globalObject.TypeError(
  1249. "'set scrollTop' called on an object that is not a valid instance of Element."
  1250. );
  1251. }
  1252. V = conversions["unrestricted double"](V, {
  1253. context: "Failed to set the 'scrollTop' property on 'Element': The provided value",
  1254. globals: globalObject
  1255. });
  1256. esValue[implSymbol]["scrollTop"] = V;
  1257. }
  1258. get scrollLeft() {
  1259. const esValue = this !== null && this !== undefined ? this : globalObject;
  1260. if (!exports.is(esValue)) {
  1261. throw new globalObject.TypeError(
  1262. "'get scrollLeft' called on an object that is not a valid instance of Element."
  1263. );
  1264. }
  1265. return esValue[implSymbol]["scrollLeft"];
  1266. }
  1267. set scrollLeft(V) {
  1268. const esValue = this !== null && this !== undefined ? this : globalObject;
  1269. if (!exports.is(esValue)) {
  1270. throw new globalObject.TypeError(
  1271. "'set scrollLeft' called on an object that is not a valid instance of Element."
  1272. );
  1273. }
  1274. V = conversions["unrestricted double"](V, {
  1275. context: "Failed to set the 'scrollLeft' property on 'Element': The provided value",
  1276. globals: globalObject
  1277. });
  1278. esValue[implSymbol]["scrollLeft"] = V;
  1279. }
  1280. get scrollWidth() {
  1281. const esValue = this !== null && this !== undefined ? this : globalObject;
  1282. if (!exports.is(esValue)) {
  1283. throw new globalObject.TypeError(
  1284. "'get scrollWidth' called on an object that is not a valid instance of Element."
  1285. );
  1286. }
  1287. return esValue[implSymbol]["scrollWidth"];
  1288. }
  1289. get scrollHeight() {
  1290. const esValue = this !== null && this !== undefined ? this : globalObject;
  1291. if (!exports.is(esValue)) {
  1292. throw new globalObject.TypeError(
  1293. "'get scrollHeight' called on an object that is not a valid instance of Element."
  1294. );
  1295. }
  1296. return esValue[implSymbol]["scrollHeight"];
  1297. }
  1298. get clientTop() {
  1299. const esValue = this !== null && this !== undefined ? this : globalObject;
  1300. if (!exports.is(esValue)) {
  1301. throw new globalObject.TypeError(
  1302. "'get clientTop' called on an object that is not a valid instance of Element."
  1303. );
  1304. }
  1305. return esValue[implSymbol]["clientTop"];
  1306. }
  1307. get clientLeft() {
  1308. const esValue = this !== null && this !== undefined ? this : globalObject;
  1309. if (!exports.is(esValue)) {
  1310. throw new globalObject.TypeError(
  1311. "'get clientLeft' called on an object that is not a valid instance of Element."
  1312. );
  1313. }
  1314. return esValue[implSymbol]["clientLeft"];
  1315. }
  1316. get clientWidth() {
  1317. const esValue = this !== null && this !== undefined ? this : globalObject;
  1318. if (!exports.is(esValue)) {
  1319. throw new globalObject.TypeError(
  1320. "'get clientWidth' called on an object that is not a valid instance of Element."
  1321. );
  1322. }
  1323. return esValue[implSymbol]["clientWidth"];
  1324. }
  1325. get clientHeight() {
  1326. const esValue = this !== null && this !== undefined ? this : globalObject;
  1327. if (!exports.is(esValue)) {
  1328. throw new globalObject.TypeError(
  1329. "'get clientHeight' called on an object that is not a valid instance of Element."
  1330. );
  1331. }
  1332. return esValue[implSymbol]["clientHeight"];
  1333. }
  1334. get innerHTML() {
  1335. const esValue = this !== null && this !== undefined ? this : globalObject;
  1336. if (!exports.is(esValue)) {
  1337. throw new globalObject.TypeError(
  1338. "'get innerHTML' called on an object that is not a valid instance of Element."
  1339. );
  1340. }
  1341. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1342. try {
  1343. return esValue[implSymbol]["innerHTML"];
  1344. } finally {
  1345. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1346. }
  1347. }
  1348. set innerHTML(V) {
  1349. const esValue = this !== null && this !== undefined ? this : globalObject;
  1350. if (!exports.is(esValue)) {
  1351. throw new globalObject.TypeError(
  1352. "'set innerHTML' called on an object that is not a valid instance of Element."
  1353. );
  1354. }
  1355. V = conversions["DOMString"](V, {
  1356. context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
  1357. globals: globalObject,
  1358. treatNullAsEmptyString: true
  1359. });
  1360. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1361. try {
  1362. esValue[implSymbol]["innerHTML"] = V;
  1363. } finally {
  1364. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1365. }
  1366. }
  1367. get role() {
  1368. const esValue = this !== null && this !== undefined ? this : globalObject;
  1369. if (!exports.is(esValue)) {
  1370. throw new globalObject.TypeError("'get role' called on an object that is not a valid instance of Element.");
  1371. }
  1372. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1373. try {
  1374. return esValue[implSymbol]._reflectGetTheContentAttribute("role");
  1375. } finally {
  1376. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1377. }
  1378. }
  1379. set role(V) {
  1380. const esValue = this !== null && this !== undefined ? this : globalObject;
  1381. if (!exports.is(esValue)) {
  1382. throw new globalObject.TypeError("'set role' called on an object that is not a valid instance of Element.");
  1383. }
  1384. if (V === null || V === undefined) {
  1385. V = null;
  1386. } else {
  1387. V = conversions["DOMString"](V, {
  1388. context: "Failed to set the 'role' property on 'Element': The provided value",
  1389. globals: globalObject
  1390. });
  1391. }
  1392. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1393. try {
  1394. if (V === null) {
  1395. esValue[implSymbol]._reflectDeleteTheContentAttribute("role");
  1396. } else {
  1397. esValue[implSymbol]._reflectSetTheContentAttribute("role", V);
  1398. }
  1399. } finally {
  1400. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1401. }
  1402. }
  1403. get ariaAtomic() {
  1404. const esValue = this !== null && this !== undefined ? this : globalObject;
  1405. if (!exports.is(esValue)) {
  1406. throw new globalObject.TypeError(
  1407. "'get ariaAtomic' called on an object that is not a valid instance of Element."
  1408. );
  1409. }
  1410. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1411. try {
  1412. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-atomic");
  1413. } finally {
  1414. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1415. }
  1416. }
  1417. set ariaAtomic(V) {
  1418. const esValue = this !== null && this !== undefined ? this : globalObject;
  1419. if (!exports.is(esValue)) {
  1420. throw new globalObject.TypeError(
  1421. "'set ariaAtomic' called on an object that is not a valid instance of Element."
  1422. );
  1423. }
  1424. if (V === null || V === undefined) {
  1425. V = null;
  1426. } else {
  1427. V = conversions["DOMString"](V, {
  1428. context: "Failed to set the 'ariaAtomic' property on 'Element': The provided value",
  1429. globals: globalObject
  1430. });
  1431. }
  1432. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1433. try {
  1434. if (V === null) {
  1435. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-atomic");
  1436. } else {
  1437. esValue[implSymbol]._reflectSetTheContentAttribute("aria-atomic", V);
  1438. }
  1439. } finally {
  1440. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1441. }
  1442. }
  1443. get ariaAutoComplete() {
  1444. const esValue = this !== null && this !== undefined ? this : globalObject;
  1445. if (!exports.is(esValue)) {
  1446. throw new globalObject.TypeError(
  1447. "'get ariaAutoComplete' called on an object that is not a valid instance of Element."
  1448. );
  1449. }
  1450. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1451. try {
  1452. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-autocomplete");
  1453. } finally {
  1454. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1455. }
  1456. }
  1457. set ariaAutoComplete(V) {
  1458. const esValue = this !== null && this !== undefined ? this : globalObject;
  1459. if (!exports.is(esValue)) {
  1460. throw new globalObject.TypeError(
  1461. "'set ariaAutoComplete' called on an object that is not a valid instance of Element."
  1462. );
  1463. }
  1464. if (V === null || V === undefined) {
  1465. V = null;
  1466. } else {
  1467. V = conversions["DOMString"](V, {
  1468. context: "Failed to set the 'ariaAutoComplete' property on 'Element': The provided value",
  1469. globals: globalObject
  1470. });
  1471. }
  1472. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1473. try {
  1474. if (V === null) {
  1475. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-autocomplete");
  1476. } else {
  1477. esValue[implSymbol]._reflectSetTheContentAttribute("aria-autocomplete", V);
  1478. }
  1479. } finally {
  1480. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1481. }
  1482. }
  1483. get ariaBusy() {
  1484. const esValue = this !== null && this !== undefined ? this : globalObject;
  1485. if (!exports.is(esValue)) {
  1486. throw new globalObject.TypeError("'get ariaBusy' called on an object that is not a valid instance of Element.");
  1487. }
  1488. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1489. try {
  1490. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-busy");
  1491. } finally {
  1492. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1493. }
  1494. }
  1495. set ariaBusy(V) {
  1496. const esValue = this !== null && this !== undefined ? this : globalObject;
  1497. if (!exports.is(esValue)) {
  1498. throw new globalObject.TypeError("'set ariaBusy' called on an object that is not a valid instance of Element.");
  1499. }
  1500. if (V === null || V === undefined) {
  1501. V = null;
  1502. } else {
  1503. V = conversions["DOMString"](V, {
  1504. context: "Failed to set the 'ariaBusy' property on 'Element': The provided value",
  1505. globals: globalObject
  1506. });
  1507. }
  1508. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1509. try {
  1510. if (V === null) {
  1511. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-busy");
  1512. } else {
  1513. esValue[implSymbol]._reflectSetTheContentAttribute("aria-busy", V);
  1514. }
  1515. } finally {
  1516. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1517. }
  1518. }
  1519. get ariaChecked() {
  1520. const esValue = this !== null && this !== undefined ? this : globalObject;
  1521. if (!exports.is(esValue)) {
  1522. throw new globalObject.TypeError(
  1523. "'get ariaChecked' called on an object that is not a valid instance of Element."
  1524. );
  1525. }
  1526. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1527. try {
  1528. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-checked");
  1529. } finally {
  1530. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1531. }
  1532. }
  1533. set ariaChecked(V) {
  1534. const esValue = this !== null && this !== undefined ? this : globalObject;
  1535. if (!exports.is(esValue)) {
  1536. throw new globalObject.TypeError(
  1537. "'set ariaChecked' called on an object that is not a valid instance of Element."
  1538. );
  1539. }
  1540. if (V === null || V === undefined) {
  1541. V = null;
  1542. } else {
  1543. V = conversions["DOMString"](V, {
  1544. context: "Failed to set the 'ariaChecked' property on 'Element': The provided value",
  1545. globals: globalObject
  1546. });
  1547. }
  1548. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1549. try {
  1550. if (V === null) {
  1551. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-checked");
  1552. } else {
  1553. esValue[implSymbol]._reflectSetTheContentAttribute("aria-checked", V);
  1554. }
  1555. } finally {
  1556. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1557. }
  1558. }
  1559. get ariaColCount() {
  1560. const esValue = this !== null && this !== undefined ? this : globalObject;
  1561. if (!exports.is(esValue)) {
  1562. throw new globalObject.TypeError(
  1563. "'get ariaColCount' called on an object that is not a valid instance of Element."
  1564. );
  1565. }
  1566. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1567. try {
  1568. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colcount");
  1569. } finally {
  1570. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1571. }
  1572. }
  1573. set ariaColCount(V) {
  1574. const esValue = this !== null && this !== undefined ? this : globalObject;
  1575. if (!exports.is(esValue)) {
  1576. throw new globalObject.TypeError(
  1577. "'set ariaColCount' called on an object that is not a valid instance of Element."
  1578. );
  1579. }
  1580. if (V === null || V === undefined) {
  1581. V = null;
  1582. } else {
  1583. V = conversions["DOMString"](V, {
  1584. context: "Failed to set the 'ariaColCount' property on 'Element': The provided value",
  1585. globals: globalObject
  1586. });
  1587. }
  1588. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1589. try {
  1590. if (V === null) {
  1591. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colcount");
  1592. } else {
  1593. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colcount", V);
  1594. }
  1595. } finally {
  1596. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1597. }
  1598. }
  1599. get ariaColIndex() {
  1600. const esValue = this !== null && this !== undefined ? this : globalObject;
  1601. if (!exports.is(esValue)) {
  1602. throw new globalObject.TypeError(
  1603. "'get ariaColIndex' called on an object that is not a valid instance of Element."
  1604. );
  1605. }
  1606. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1607. try {
  1608. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colindex");
  1609. } finally {
  1610. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1611. }
  1612. }
  1613. set ariaColIndex(V) {
  1614. const esValue = this !== null && this !== undefined ? this : globalObject;
  1615. if (!exports.is(esValue)) {
  1616. throw new globalObject.TypeError(
  1617. "'set ariaColIndex' called on an object that is not a valid instance of Element."
  1618. );
  1619. }
  1620. if (V === null || V === undefined) {
  1621. V = null;
  1622. } else {
  1623. V = conversions["DOMString"](V, {
  1624. context: "Failed to set the 'ariaColIndex' property on 'Element': The provided value",
  1625. globals: globalObject
  1626. });
  1627. }
  1628. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1629. try {
  1630. if (V === null) {
  1631. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colindex");
  1632. } else {
  1633. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colindex", V);
  1634. }
  1635. } finally {
  1636. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1637. }
  1638. }
  1639. get ariaColIndexText() {
  1640. const esValue = this !== null && this !== undefined ? this : globalObject;
  1641. if (!exports.is(esValue)) {
  1642. throw new globalObject.TypeError(
  1643. "'get ariaColIndexText' called on an object that is not a valid instance of Element."
  1644. );
  1645. }
  1646. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1647. try {
  1648. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colindextext");
  1649. } finally {
  1650. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1651. }
  1652. }
  1653. set ariaColIndexText(V) {
  1654. const esValue = this !== null && this !== undefined ? this : globalObject;
  1655. if (!exports.is(esValue)) {
  1656. throw new globalObject.TypeError(
  1657. "'set ariaColIndexText' called on an object that is not a valid instance of Element."
  1658. );
  1659. }
  1660. if (V === null || V === undefined) {
  1661. V = null;
  1662. } else {
  1663. V = conversions["DOMString"](V, {
  1664. context: "Failed to set the 'ariaColIndexText' property on 'Element': The provided value",
  1665. globals: globalObject
  1666. });
  1667. }
  1668. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1669. try {
  1670. if (V === null) {
  1671. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colindextext");
  1672. } else {
  1673. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colindextext", V);
  1674. }
  1675. } finally {
  1676. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1677. }
  1678. }
  1679. get ariaColSpan() {
  1680. const esValue = this !== null && this !== undefined ? this : globalObject;
  1681. if (!exports.is(esValue)) {
  1682. throw new globalObject.TypeError(
  1683. "'get ariaColSpan' called on an object that is not a valid instance of Element."
  1684. );
  1685. }
  1686. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1687. try {
  1688. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colspan");
  1689. } finally {
  1690. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1691. }
  1692. }
  1693. set ariaColSpan(V) {
  1694. const esValue = this !== null && this !== undefined ? this : globalObject;
  1695. if (!exports.is(esValue)) {
  1696. throw new globalObject.TypeError(
  1697. "'set ariaColSpan' called on an object that is not a valid instance of Element."
  1698. );
  1699. }
  1700. if (V === null || V === undefined) {
  1701. V = null;
  1702. } else {
  1703. V = conversions["DOMString"](V, {
  1704. context: "Failed to set the 'ariaColSpan' property on 'Element': The provided value",
  1705. globals: globalObject
  1706. });
  1707. }
  1708. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1709. try {
  1710. if (V === null) {
  1711. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colspan");
  1712. } else {
  1713. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colspan", V);
  1714. }
  1715. } finally {
  1716. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1717. }
  1718. }
  1719. get ariaCurrent() {
  1720. const esValue = this !== null && this !== undefined ? this : globalObject;
  1721. if (!exports.is(esValue)) {
  1722. throw new globalObject.TypeError(
  1723. "'get ariaCurrent' called on an object that is not a valid instance of Element."
  1724. );
  1725. }
  1726. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1727. try {
  1728. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-current");
  1729. } finally {
  1730. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1731. }
  1732. }
  1733. set ariaCurrent(V) {
  1734. const esValue = this !== null && this !== undefined ? this : globalObject;
  1735. if (!exports.is(esValue)) {
  1736. throw new globalObject.TypeError(
  1737. "'set ariaCurrent' called on an object that is not a valid instance of Element."
  1738. );
  1739. }
  1740. if (V === null || V === undefined) {
  1741. V = null;
  1742. } else {
  1743. V = conversions["DOMString"](V, {
  1744. context: "Failed to set the 'ariaCurrent' property on 'Element': The provided value",
  1745. globals: globalObject
  1746. });
  1747. }
  1748. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1749. try {
  1750. if (V === null) {
  1751. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-current");
  1752. } else {
  1753. esValue[implSymbol]._reflectSetTheContentAttribute("aria-current", V);
  1754. }
  1755. } finally {
  1756. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1757. }
  1758. }
  1759. get ariaDescription() {
  1760. const esValue = this !== null && this !== undefined ? this : globalObject;
  1761. if (!exports.is(esValue)) {
  1762. throw new globalObject.TypeError(
  1763. "'get ariaDescription' called on an object that is not a valid instance of Element."
  1764. );
  1765. }
  1766. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1767. try {
  1768. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-description");
  1769. } finally {
  1770. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1771. }
  1772. }
  1773. set ariaDescription(V) {
  1774. const esValue = this !== null && this !== undefined ? this : globalObject;
  1775. if (!exports.is(esValue)) {
  1776. throw new globalObject.TypeError(
  1777. "'set ariaDescription' called on an object that is not a valid instance of Element."
  1778. );
  1779. }
  1780. if (V === null || V === undefined) {
  1781. V = null;
  1782. } else {
  1783. V = conversions["DOMString"](V, {
  1784. context: "Failed to set the 'ariaDescription' property on 'Element': The provided value",
  1785. globals: globalObject
  1786. });
  1787. }
  1788. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1789. try {
  1790. if (V === null) {
  1791. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-description");
  1792. } else {
  1793. esValue[implSymbol]._reflectSetTheContentAttribute("aria-description", V);
  1794. }
  1795. } finally {
  1796. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1797. }
  1798. }
  1799. get ariaDisabled() {
  1800. const esValue = this !== null && this !== undefined ? this : globalObject;
  1801. if (!exports.is(esValue)) {
  1802. throw new globalObject.TypeError(
  1803. "'get ariaDisabled' called on an object that is not a valid instance of Element."
  1804. );
  1805. }
  1806. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1807. try {
  1808. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-disabled");
  1809. } finally {
  1810. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1811. }
  1812. }
  1813. set ariaDisabled(V) {
  1814. const esValue = this !== null && this !== undefined ? this : globalObject;
  1815. if (!exports.is(esValue)) {
  1816. throw new globalObject.TypeError(
  1817. "'set ariaDisabled' called on an object that is not a valid instance of Element."
  1818. );
  1819. }
  1820. if (V === null || V === undefined) {
  1821. V = null;
  1822. } else {
  1823. V = conversions["DOMString"](V, {
  1824. context: "Failed to set the 'ariaDisabled' property on 'Element': The provided value",
  1825. globals: globalObject
  1826. });
  1827. }
  1828. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1829. try {
  1830. if (V === null) {
  1831. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-disabled");
  1832. } else {
  1833. esValue[implSymbol]._reflectSetTheContentAttribute("aria-disabled", V);
  1834. }
  1835. } finally {
  1836. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1837. }
  1838. }
  1839. get ariaExpanded() {
  1840. const esValue = this !== null && this !== undefined ? this : globalObject;
  1841. if (!exports.is(esValue)) {
  1842. throw new globalObject.TypeError(
  1843. "'get ariaExpanded' called on an object that is not a valid instance of Element."
  1844. );
  1845. }
  1846. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1847. try {
  1848. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-expanded");
  1849. } finally {
  1850. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1851. }
  1852. }
  1853. set ariaExpanded(V) {
  1854. const esValue = this !== null && this !== undefined ? this : globalObject;
  1855. if (!exports.is(esValue)) {
  1856. throw new globalObject.TypeError(
  1857. "'set ariaExpanded' called on an object that is not a valid instance of Element."
  1858. );
  1859. }
  1860. if (V === null || V === undefined) {
  1861. V = null;
  1862. } else {
  1863. V = conversions["DOMString"](V, {
  1864. context: "Failed to set the 'ariaExpanded' property on 'Element': The provided value",
  1865. globals: globalObject
  1866. });
  1867. }
  1868. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1869. try {
  1870. if (V === null) {
  1871. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-expanded");
  1872. } else {
  1873. esValue[implSymbol]._reflectSetTheContentAttribute("aria-expanded", V);
  1874. }
  1875. } finally {
  1876. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1877. }
  1878. }
  1879. get ariaHasPopup() {
  1880. const esValue = this !== null && this !== undefined ? this : globalObject;
  1881. if (!exports.is(esValue)) {
  1882. throw new globalObject.TypeError(
  1883. "'get ariaHasPopup' called on an object that is not a valid instance of Element."
  1884. );
  1885. }
  1886. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1887. try {
  1888. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-haspopup");
  1889. } finally {
  1890. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1891. }
  1892. }
  1893. set ariaHasPopup(V) {
  1894. const esValue = this !== null && this !== undefined ? this : globalObject;
  1895. if (!exports.is(esValue)) {
  1896. throw new globalObject.TypeError(
  1897. "'set ariaHasPopup' called on an object that is not a valid instance of Element."
  1898. );
  1899. }
  1900. if (V === null || V === undefined) {
  1901. V = null;
  1902. } else {
  1903. V = conversions["DOMString"](V, {
  1904. context: "Failed to set the 'ariaHasPopup' property on 'Element': The provided value",
  1905. globals: globalObject
  1906. });
  1907. }
  1908. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1909. try {
  1910. if (V === null) {
  1911. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-haspopup");
  1912. } else {
  1913. esValue[implSymbol]._reflectSetTheContentAttribute("aria-haspopup", V);
  1914. }
  1915. } finally {
  1916. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1917. }
  1918. }
  1919. get ariaHidden() {
  1920. const esValue = this !== null && this !== undefined ? this : globalObject;
  1921. if (!exports.is(esValue)) {
  1922. throw new globalObject.TypeError(
  1923. "'get ariaHidden' called on an object that is not a valid instance of Element."
  1924. );
  1925. }
  1926. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1927. try {
  1928. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-hidden");
  1929. } finally {
  1930. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1931. }
  1932. }
  1933. set ariaHidden(V) {
  1934. const esValue = this !== null && this !== undefined ? this : globalObject;
  1935. if (!exports.is(esValue)) {
  1936. throw new globalObject.TypeError(
  1937. "'set ariaHidden' called on an object that is not a valid instance of Element."
  1938. );
  1939. }
  1940. if (V === null || V === undefined) {
  1941. V = null;
  1942. } else {
  1943. V = conversions["DOMString"](V, {
  1944. context: "Failed to set the 'ariaHidden' property on 'Element': The provided value",
  1945. globals: globalObject
  1946. });
  1947. }
  1948. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1949. try {
  1950. if (V === null) {
  1951. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-hidden");
  1952. } else {
  1953. esValue[implSymbol]._reflectSetTheContentAttribute("aria-hidden", V);
  1954. }
  1955. } finally {
  1956. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1957. }
  1958. }
  1959. get ariaInvalid() {
  1960. const esValue = this !== null && this !== undefined ? this : globalObject;
  1961. if (!exports.is(esValue)) {
  1962. throw new globalObject.TypeError(
  1963. "'get ariaInvalid' called on an object that is not a valid instance of Element."
  1964. );
  1965. }
  1966. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1967. try {
  1968. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-invalid");
  1969. } finally {
  1970. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1971. }
  1972. }
  1973. set ariaInvalid(V) {
  1974. const esValue = this !== null && this !== undefined ? this : globalObject;
  1975. if (!exports.is(esValue)) {
  1976. throw new globalObject.TypeError(
  1977. "'set ariaInvalid' called on an object that is not a valid instance of Element."
  1978. );
  1979. }
  1980. if (V === null || V === undefined) {
  1981. V = null;
  1982. } else {
  1983. V = conversions["DOMString"](V, {
  1984. context: "Failed to set the 'ariaInvalid' property on 'Element': The provided value",
  1985. globals: globalObject
  1986. });
  1987. }
  1988. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1989. try {
  1990. if (V === null) {
  1991. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-invalid");
  1992. } else {
  1993. esValue[implSymbol]._reflectSetTheContentAttribute("aria-invalid", V);
  1994. }
  1995. } finally {
  1996. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1997. }
  1998. }
  1999. get ariaKeyShortcuts() {
  2000. const esValue = this !== null && this !== undefined ? this : globalObject;
  2001. if (!exports.is(esValue)) {
  2002. throw new globalObject.TypeError(
  2003. "'get ariaKeyShortcuts' called on an object that is not a valid instance of Element."
  2004. );
  2005. }
  2006. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2007. try {
  2008. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-keyshortcuts");
  2009. } finally {
  2010. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2011. }
  2012. }
  2013. set ariaKeyShortcuts(V) {
  2014. const esValue = this !== null && this !== undefined ? this : globalObject;
  2015. if (!exports.is(esValue)) {
  2016. throw new globalObject.TypeError(
  2017. "'set ariaKeyShortcuts' called on an object that is not a valid instance of Element."
  2018. );
  2019. }
  2020. if (V === null || V === undefined) {
  2021. V = null;
  2022. } else {
  2023. V = conversions["DOMString"](V, {
  2024. context: "Failed to set the 'ariaKeyShortcuts' property on 'Element': The provided value",
  2025. globals: globalObject
  2026. });
  2027. }
  2028. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2029. try {
  2030. if (V === null) {
  2031. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-keyshortcuts");
  2032. } else {
  2033. esValue[implSymbol]._reflectSetTheContentAttribute("aria-keyshortcuts", V);
  2034. }
  2035. } finally {
  2036. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2037. }
  2038. }
  2039. get ariaLabel() {
  2040. const esValue = this !== null && this !== undefined ? this : globalObject;
  2041. if (!exports.is(esValue)) {
  2042. throw new globalObject.TypeError(
  2043. "'get ariaLabel' called on an object that is not a valid instance of Element."
  2044. );
  2045. }
  2046. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2047. try {
  2048. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-label");
  2049. } finally {
  2050. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2051. }
  2052. }
  2053. set ariaLabel(V) {
  2054. const esValue = this !== null && this !== undefined ? this : globalObject;
  2055. if (!exports.is(esValue)) {
  2056. throw new globalObject.TypeError(
  2057. "'set ariaLabel' called on an object that is not a valid instance of Element."
  2058. );
  2059. }
  2060. if (V === null || V === undefined) {
  2061. V = null;
  2062. } else {
  2063. V = conversions["DOMString"](V, {
  2064. context: "Failed to set the 'ariaLabel' property on 'Element': The provided value",
  2065. globals: globalObject
  2066. });
  2067. }
  2068. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2069. try {
  2070. if (V === null) {
  2071. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-label");
  2072. } else {
  2073. esValue[implSymbol]._reflectSetTheContentAttribute("aria-label", V);
  2074. }
  2075. } finally {
  2076. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2077. }
  2078. }
  2079. get ariaLevel() {
  2080. const esValue = this !== null && this !== undefined ? this : globalObject;
  2081. if (!exports.is(esValue)) {
  2082. throw new globalObject.TypeError(
  2083. "'get ariaLevel' called on an object that is not a valid instance of Element."
  2084. );
  2085. }
  2086. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2087. try {
  2088. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-level");
  2089. } finally {
  2090. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2091. }
  2092. }
  2093. set ariaLevel(V) {
  2094. const esValue = this !== null && this !== undefined ? this : globalObject;
  2095. if (!exports.is(esValue)) {
  2096. throw new globalObject.TypeError(
  2097. "'set ariaLevel' called on an object that is not a valid instance of Element."
  2098. );
  2099. }
  2100. if (V === null || V === undefined) {
  2101. V = null;
  2102. } else {
  2103. V = conversions["DOMString"](V, {
  2104. context: "Failed to set the 'ariaLevel' property on 'Element': The provided value",
  2105. globals: globalObject
  2106. });
  2107. }
  2108. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2109. try {
  2110. if (V === null) {
  2111. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-level");
  2112. } else {
  2113. esValue[implSymbol]._reflectSetTheContentAttribute("aria-level", V);
  2114. }
  2115. } finally {
  2116. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2117. }
  2118. }
  2119. get ariaLive() {
  2120. const esValue = this !== null && this !== undefined ? this : globalObject;
  2121. if (!exports.is(esValue)) {
  2122. throw new globalObject.TypeError("'get ariaLive' called on an object that is not a valid instance of Element.");
  2123. }
  2124. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2125. try {
  2126. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-live");
  2127. } finally {
  2128. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2129. }
  2130. }
  2131. set ariaLive(V) {
  2132. const esValue = this !== null && this !== undefined ? this : globalObject;
  2133. if (!exports.is(esValue)) {
  2134. throw new globalObject.TypeError("'set ariaLive' called on an object that is not a valid instance of Element.");
  2135. }
  2136. if (V === null || V === undefined) {
  2137. V = null;
  2138. } else {
  2139. V = conversions["DOMString"](V, {
  2140. context: "Failed to set the 'ariaLive' property on 'Element': The provided value",
  2141. globals: globalObject
  2142. });
  2143. }
  2144. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2145. try {
  2146. if (V === null) {
  2147. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-live");
  2148. } else {
  2149. esValue[implSymbol]._reflectSetTheContentAttribute("aria-live", V);
  2150. }
  2151. } finally {
  2152. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2153. }
  2154. }
  2155. get ariaModal() {
  2156. const esValue = this !== null && this !== undefined ? this : globalObject;
  2157. if (!exports.is(esValue)) {
  2158. throw new globalObject.TypeError(
  2159. "'get ariaModal' called on an object that is not a valid instance of Element."
  2160. );
  2161. }
  2162. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2163. try {
  2164. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-modal");
  2165. } finally {
  2166. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2167. }
  2168. }
  2169. set ariaModal(V) {
  2170. const esValue = this !== null && this !== undefined ? this : globalObject;
  2171. if (!exports.is(esValue)) {
  2172. throw new globalObject.TypeError(
  2173. "'set ariaModal' called on an object that is not a valid instance of Element."
  2174. );
  2175. }
  2176. if (V === null || V === undefined) {
  2177. V = null;
  2178. } else {
  2179. V = conversions["DOMString"](V, {
  2180. context: "Failed to set the 'ariaModal' property on 'Element': The provided value",
  2181. globals: globalObject
  2182. });
  2183. }
  2184. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2185. try {
  2186. if (V === null) {
  2187. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-modal");
  2188. } else {
  2189. esValue[implSymbol]._reflectSetTheContentAttribute("aria-modal", V);
  2190. }
  2191. } finally {
  2192. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2193. }
  2194. }
  2195. get ariaMultiLine() {
  2196. const esValue = this !== null && this !== undefined ? this : globalObject;
  2197. if (!exports.is(esValue)) {
  2198. throw new globalObject.TypeError(
  2199. "'get ariaMultiLine' called on an object that is not a valid instance of Element."
  2200. );
  2201. }
  2202. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2203. try {
  2204. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-multiline");
  2205. } finally {
  2206. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2207. }
  2208. }
  2209. set ariaMultiLine(V) {
  2210. const esValue = this !== null && this !== undefined ? this : globalObject;
  2211. if (!exports.is(esValue)) {
  2212. throw new globalObject.TypeError(
  2213. "'set ariaMultiLine' called on an object that is not a valid instance of Element."
  2214. );
  2215. }
  2216. if (V === null || V === undefined) {
  2217. V = null;
  2218. } else {
  2219. V = conversions["DOMString"](V, {
  2220. context: "Failed to set the 'ariaMultiLine' property on 'Element': The provided value",
  2221. globals: globalObject
  2222. });
  2223. }
  2224. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2225. try {
  2226. if (V === null) {
  2227. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-multiline");
  2228. } else {
  2229. esValue[implSymbol]._reflectSetTheContentAttribute("aria-multiline", V);
  2230. }
  2231. } finally {
  2232. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2233. }
  2234. }
  2235. get ariaMultiSelectable() {
  2236. const esValue = this !== null && this !== undefined ? this : globalObject;
  2237. if (!exports.is(esValue)) {
  2238. throw new globalObject.TypeError(
  2239. "'get ariaMultiSelectable' called on an object that is not a valid instance of Element."
  2240. );
  2241. }
  2242. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2243. try {
  2244. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-multiselectable");
  2245. } finally {
  2246. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2247. }
  2248. }
  2249. set ariaMultiSelectable(V) {
  2250. const esValue = this !== null && this !== undefined ? this : globalObject;
  2251. if (!exports.is(esValue)) {
  2252. throw new globalObject.TypeError(
  2253. "'set ariaMultiSelectable' called on an object that is not a valid instance of Element."
  2254. );
  2255. }
  2256. if (V === null || V === undefined) {
  2257. V = null;
  2258. } else {
  2259. V = conversions["DOMString"](V, {
  2260. context: "Failed to set the 'ariaMultiSelectable' property on 'Element': The provided value",
  2261. globals: globalObject
  2262. });
  2263. }
  2264. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2265. try {
  2266. if (V === null) {
  2267. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-multiselectable");
  2268. } else {
  2269. esValue[implSymbol]._reflectSetTheContentAttribute("aria-multiselectable", V);
  2270. }
  2271. } finally {
  2272. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2273. }
  2274. }
  2275. get ariaOrientation() {
  2276. const esValue = this !== null && this !== undefined ? this : globalObject;
  2277. if (!exports.is(esValue)) {
  2278. throw new globalObject.TypeError(
  2279. "'get ariaOrientation' called on an object that is not a valid instance of Element."
  2280. );
  2281. }
  2282. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2283. try {
  2284. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-orientation");
  2285. } finally {
  2286. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2287. }
  2288. }
  2289. set ariaOrientation(V) {
  2290. const esValue = this !== null && this !== undefined ? this : globalObject;
  2291. if (!exports.is(esValue)) {
  2292. throw new globalObject.TypeError(
  2293. "'set ariaOrientation' called on an object that is not a valid instance of Element."
  2294. );
  2295. }
  2296. if (V === null || V === undefined) {
  2297. V = null;
  2298. } else {
  2299. V = conversions["DOMString"](V, {
  2300. context: "Failed to set the 'ariaOrientation' property on 'Element': The provided value",
  2301. globals: globalObject
  2302. });
  2303. }
  2304. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2305. try {
  2306. if (V === null) {
  2307. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-orientation");
  2308. } else {
  2309. esValue[implSymbol]._reflectSetTheContentAttribute("aria-orientation", V);
  2310. }
  2311. } finally {
  2312. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2313. }
  2314. }
  2315. get ariaPlaceholder() {
  2316. const esValue = this !== null && this !== undefined ? this : globalObject;
  2317. if (!exports.is(esValue)) {
  2318. throw new globalObject.TypeError(
  2319. "'get ariaPlaceholder' called on an object that is not a valid instance of Element."
  2320. );
  2321. }
  2322. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2323. try {
  2324. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-placeholder");
  2325. } finally {
  2326. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2327. }
  2328. }
  2329. set ariaPlaceholder(V) {
  2330. const esValue = this !== null && this !== undefined ? this : globalObject;
  2331. if (!exports.is(esValue)) {
  2332. throw new globalObject.TypeError(
  2333. "'set ariaPlaceholder' called on an object that is not a valid instance of Element."
  2334. );
  2335. }
  2336. if (V === null || V === undefined) {
  2337. V = null;
  2338. } else {
  2339. V = conversions["DOMString"](V, {
  2340. context: "Failed to set the 'ariaPlaceholder' property on 'Element': The provided value",
  2341. globals: globalObject
  2342. });
  2343. }
  2344. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2345. try {
  2346. if (V === null) {
  2347. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-placeholder");
  2348. } else {
  2349. esValue[implSymbol]._reflectSetTheContentAttribute("aria-placeholder", V);
  2350. }
  2351. } finally {
  2352. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2353. }
  2354. }
  2355. get ariaPosInSet() {
  2356. const esValue = this !== null && this !== undefined ? this : globalObject;
  2357. if (!exports.is(esValue)) {
  2358. throw new globalObject.TypeError(
  2359. "'get ariaPosInSet' called on an object that is not a valid instance of Element."
  2360. );
  2361. }
  2362. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2363. try {
  2364. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-posinset");
  2365. } finally {
  2366. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2367. }
  2368. }
  2369. set ariaPosInSet(V) {
  2370. const esValue = this !== null && this !== undefined ? this : globalObject;
  2371. if (!exports.is(esValue)) {
  2372. throw new globalObject.TypeError(
  2373. "'set ariaPosInSet' called on an object that is not a valid instance of Element."
  2374. );
  2375. }
  2376. if (V === null || V === undefined) {
  2377. V = null;
  2378. } else {
  2379. V = conversions["DOMString"](V, {
  2380. context: "Failed to set the 'ariaPosInSet' property on 'Element': The provided value",
  2381. globals: globalObject
  2382. });
  2383. }
  2384. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2385. try {
  2386. if (V === null) {
  2387. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-posinset");
  2388. } else {
  2389. esValue[implSymbol]._reflectSetTheContentAttribute("aria-posinset", V);
  2390. }
  2391. } finally {
  2392. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2393. }
  2394. }
  2395. get ariaPressed() {
  2396. const esValue = this !== null && this !== undefined ? this : globalObject;
  2397. if (!exports.is(esValue)) {
  2398. throw new globalObject.TypeError(
  2399. "'get ariaPressed' called on an object that is not a valid instance of Element."
  2400. );
  2401. }
  2402. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2403. try {
  2404. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-pressed");
  2405. } finally {
  2406. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2407. }
  2408. }
  2409. set ariaPressed(V) {
  2410. const esValue = this !== null && this !== undefined ? this : globalObject;
  2411. if (!exports.is(esValue)) {
  2412. throw new globalObject.TypeError(
  2413. "'set ariaPressed' called on an object that is not a valid instance of Element."
  2414. );
  2415. }
  2416. if (V === null || V === undefined) {
  2417. V = null;
  2418. } else {
  2419. V = conversions["DOMString"](V, {
  2420. context: "Failed to set the 'ariaPressed' property on 'Element': The provided value",
  2421. globals: globalObject
  2422. });
  2423. }
  2424. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2425. try {
  2426. if (V === null) {
  2427. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-pressed");
  2428. } else {
  2429. esValue[implSymbol]._reflectSetTheContentAttribute("aria-pressed", V);
  2430. }
  2431. } finally {
  2432. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2433. }
  2434. }
  2435. get ariaReadOnly() {
  2436. const esValue = this !== null && this !== undefined ? this : globalObject;
  2437. if (!exports.is(esValue)) {
  2438. throw new globalObject.TypeError(
  2439. "'get ariaReadOnly' called on an object that is not a valid instance of Element."
  2440. );
  2441. }
  2442. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2443. try {
  2444. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-readonly");
  2445. } finally {
  2446. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2447. }
  2448. }
  2449. set ariaReadOnly(V) {
  2450. const esValue = this !== null && this !== undefined ? this : globalObject;
  2451. if (!exports.is(esValue)) {
  2452. throw new globalObject.TypeError(
  2453. "'set ariaReadOnly' called on an object that is not a valid instance of Element."
  2454. );
  2455. }
  2456. if (V === null || V === undefined) {
  2457. V = null;
  2458. } else {
  2459. V = conversions["DOMString"](V, {
  2460. context: "Failed to set the 'ariaReadOnly' property on 'Element': The provided value",
  2461. globals: globalObject
  2462. });
  2463. }
  2464. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2465. try {
  2466. if (V === null) {
  2467. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-readonly");
  2468. } else {
  2469. esValue[implSymbol]._reflectSetTheContentAttribute("aria-readonly", V);
  2470. }
  2471. } finally {
  2472. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2473. }
  2474. }
  2475. get ariaRequired() {
  2476. const esValue = this !== null && this !== undefined ? this : globalObject;
  2477. if (!exports.is(esValue)) {
  2478. throw new globalObject.TypeError(
  2479. "'get ariaRequired' called on an object that is not a valid instance of Element."
  2480. );
  2481. }
  2482. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2483. try {
  2484. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-required");
  2485. } finally {
  2486. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2487. }
  2488. }
  2489. set ariaRequired(V) {
  2490. const esValue = this !== null && this !== undefined ? this : globalObject;
  2491. if (!exports.is(esValue)) {
  2492. throw new globalObject.TypeError(
  2493. "'set ariaRequired' called on an object that is not a valid instance of Element."
  2494. );
  2495. }
  2496. if (V === null || V === undefined) {
  2497. V = null;
  2498. } else {
  2499. V = conversions["DOMString"](V, {
  2500. context: "Failed to set the 'ariaRequired' property on 'Element': The provided value",
  2501. globals: globalObject
  2502. });
  2503. }
  2504. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2505. try {
  2506. if (V === null) {
  2507. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-required");
  2508. } else {
  2509. esValue[implSymbol]._reflectSetTheContentAttribute("aria-required", V);
  2510. }
  2511. } finally {
  2512. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2513. }
  2514. }
  2515. get ariaRoleDescription() {
  2516. const esValue = this !== null && this !== undefined ? this : globalObject;
  2517. if (!exports.is(esValue)) {
  2518. throw new globalObject.TypeError(
  2519. "'get ariaRoleDescription' called on an object that is not a valid instance of Element."
  2520. );
  2521. }
  2522. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2523. try {
  2524. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-roledescription");
  2525. } finally {
  2526. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2527. }
  2528. }
  2529. set ariaRoleDescription(V) {
  2530. const esValue = this !== null && this !== undefined ? this : globalObject;
  2531. if (!exports.is(esValue)) {
  2532. throw new globalObject.TypeError(
  2533. "'set ariaRoleDescription' called on an object that is not a valid instance of Element."
  2534. );
  2535. }
  2536. if (V === null || V === undefined) {
  2537. V = null;
  2538. } else {
  2539. V = conversions["DOMString"](V, {
  2540. context: "Failed to set the 'ariaRoleDescription' property on 'Element': The provided value",
  2541. globals: globalObject
  2542. });
  2543. }
  2544. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2545. try {
  2546. if (V === null) {
  2547. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-roledescription");
  2548. } else {
  2549. esValue[implSymbol]._reflectSetTheContentAttribute("aria-roledescription", V);
  2550. }
  2551. } finally {
  2552. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2553. }
  2554. }
  2555. get ariaRowCount() {
  2556. const esValue = this !== null && this !== undefined ? this : globalObject;
  2557. if (!exports.is(esValue)) {
  2558. throw new globalObject.TypeError(
  2559. "'get ariaRowCount' called on an object that is not a valid instance of Element."
  2560. );
  2561. }
  2562. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2563. try {
  2564. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowcount");
  2565. } finally {
  2566. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2567. }
  2568. }
  2569. set ariaRowCount(V) {
  2570. const esValue = this !== null && this !== undefined ? this : globalObject;
  2571. if (!exports.is(esValue)) {
  2572. throw new globalObject.TypeError(
  2573. "'set ariaRowCount' called on an object that is not a valid instance of Element."
  2574. );
  2575. }
  2576. if (V === null || V === undefined) {
  2577. V = null;
  2578. } else {
  2579. V = conversions["DOMString"](V, {
  2580. context: "Failed to set the 'ariaRowCount' property on 'Element': The provided value",
  2581. globals: globalObject
  2582. });
  2583. }
  2584. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2585. try {
  2586. if (V === null) {
  2587. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowcount");
  2588. } else {
  2589. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowcount", V);
  2590. }
  2591. } finally {
  2592. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2593. }
  2594. }
  2595. get ariaRowIndex() {
  2596. const esValue = this !== null && this !== undefined ? this : globalObject;
  2597. if (!exports.is(esValue)) {
  2598. throw new globalObject.TypeError(
  2599. "'get ariaRowIndex' called on an object that is not a valid instance of Element."
  2600. );
  2601. }
  2602. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2603. try {
  2604. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowindex");
  2605. } finally {
  2606. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2607. }
  2608. }
  2609. set ariaRowIndex(V) {
  2610. const esValue = this !== null && this !== undefined ? this : globalObject;
  2611. if (!exports.is(esValue)) {
  2612. throw new globalObject.TypeError(
  2613. "'set ariaRowIndex' called on an object that is not a valid instance of Element."
  2614. );
  2615. }
  2616. if (V === null || V === undefined) {
  2617. V = null;
  2618. } else {
  2619. V = conversions["DOMString"](V, {
  2620. context: "Failed to set the 'ariaRowIndex' property on 'Element': The provided value",
  2621. globals: globalObject
  2622. });
  2623. }
  2624. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2625. try {
  2626. if (V === null) {
  2627. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowindex");
  2628. } else {
  2629. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowindex", V);
  2630. }
  2631. } finally {
  2632. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2633. }
  2634. }
  2635. get ariaRowIndexText() {
  2636. const esValue = this !== null && this !== undefined ? this : globalObject;
  2637. if (!exports.is(esValue)) {
  2638. throw new globalObject.TypeError(
  2639. "'get ariaRowIndexText' called on an object that is not a valid instance of Element."
  2640. );
  2641. }
  2642. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2643. try {
  2644. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowindextext");
  2645. } finally {
  2646. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2647. }
  2648. }
  2649. set ariaRowIndexText(V) {
  2650. const esValue = this !== null && this !== undefined ? this : globalObject;
  2651. if (!exports.is(esValue)) {
  2652. throw new globalObject.TypeError(
  2653. "'set ariaRowIndexText' called on an object that is not a valid instance of Element."
  2654. );
  2655. }
  2656. if (V === null || V === undefined) {
  2657. V = null;
  2658. } else {
  2659. V = conversions["DOMString"](V, {
  2660. context: "Failed to set the 'ariaRowIndexText' property on 'Element': The provided value",
  2661. globals: globalObject
  2662. });
  2663. }
  2664. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2665. try {
  2666. if (V === null) {
  2667. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowindextext");
  2668. } else {
  2669. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowindextext", V);
  2670. }
  2671. } finally {
  2672. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2673. }
  2674. }
  2675. get ariaRowSpan() {
  2676. const esValue = this !== null && this !== undefined ? this : globalObject;
  2677. if (!exports.is(esValue)) {
  2678. throw new globalObject.TypeError(
  2679. "'get ariaRowSpan' called on an object that is not a valid instance of Element."
  2680. );
  2681. }
  2682. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2683. try {
  2684. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowspan");
  2685. } finally {
  2686. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2687. }
  2688. }
  2689. set ariaRowSpan(V) {
  2690. const esValue = this !== null && this !== undefined ? this : globalObject;
  2691. if (!exports.is(esValue)) {
  2692. throw new globalObject.TypeError(
  2693. "'set ariaRowSpan' called on an object that is not a valid instance of Element."
  2694. );
  2695. }
  2696. if (V === null || V === undefined) {
  2697. V = null;
  2698. } else {
  2699. V = conversions["DOMString"](V, {
  2700. context: "Failed to set the 'ariaRowSpan' property on 'Element': The provided value",
  2701. globals: globalObject
  2702. });
  2703. }
  2704. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2705. try {
  2706. if (V === null) {
  2707. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowspan");
  2708. } else {
  2709. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowspan", V);
  2710. }
  2711. } finally {
  2712. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2713. }
  2714. }
  2715. get ariaSelected() {
  2716. const esValue = this !== null && this !== undefined ? this : globalObject;
  2717. if (!exports.is(esValue)) {
  2718. throw new globalObject.TypeError(
  2719. "'get ariaSelected' called on an object that is not a valid instance of Element."
  2720. );
  2721. }
  2722. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2723. try {
  2724. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-selected");
  2725. } finally {
  2726. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2727. }
  2728. }
  2729. set ariaSelected(V) {
  2730. const esValue = this !== null && this !== undefined ? this : globalObject;
  2731. if (!exports.is(esValue)) {
  2732. throw new globalObject.TypeError(
  2733. "'set ariaSelected' called on an object that is not a valid instance of Element."
  2734. );
  2735. }
  2736. if (V === null || V === undefined) {
  2737. V = null;
  2738. } else {
  2739. V = conversions["DOMString"](V, {
  2740. context: "Failed to set the 'ariaSelected' property on 'Element': The provided value",
  2741. globals: globalObject
  2742. });
  2743. }
  2744. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2745. try {
  2746. if (V === null) {
  2747. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-selected");
  2748. } else {
  2749. esValue[implSymbol]._reflectSetTheContentAttribute("aria-selected", V);
  2750. }
  2751. } finally {
  2752. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2753. }
  2754. }
  2755. get ariaSetSize() {
  2756. const esValue = this !== null && this !== undefined ? this : globalObject;
  2757. if (!exports.is(esValue)) {
  2758. throw new globalObject.TypeError(
  2759. "'get ariaSetSize' called on an object that is not a valid instance of Element."
  2760. );
  2761. }
  2762. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2763. try {
  2764. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-setsize");
  2765. } finally {
  2766. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2767. }
  2768. }
  2769. set ariaSetSize(V) {
  2770. const esValue = this !== null && this !== undefined ? this : globalObject;
  2771. if (!exports.is(esValue)) {
  2772. throw new globalObject.TypeError(
  2773. "'set ariaSetSize' called on an object that is not a valid instance of Element."
  2774. );
  2775. }
  2776. if (V === null || V === undefined) {
  2777. V = null;
  2778. } else {
  2779. V = conversions["DOMString"](V, {
  2780. context: "Failed to set the 'ariaSetSize' property on 'Element': The provided value",
  2781. globals: globalObject
  2782. });
  2783. }
  2784. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2785. try {
  2786. if (V === null) {
  2787. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-setsize");
  2788. } else {
  2789. esValue[implSymbol]._reflectSetTheContentAttribute("aria-setsize", V);
  2790. }
  2791. } finally {
  2792. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2793. }
  2794. }
  2795. get ariaSort() {
  2796. const esValue = this !== null && this !== undefined ? this : globalObject;
  2797. if (!exports.is(esValue)) {
  2798. throw new globalObject.TypeError("'get ariaSort' called on an object that is not a valid instance of Element.");
  2799. }
  2800. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2801. try {
  2802. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-sort");
  2803. } finally {
  2804. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2805. }
  2806. }
  2807. set ariaSort(V) {
  2808. const esValue = this !== null && this !== undefined ? this : globalObject;
  2809. if (!exports.is(esValue)) {
  2810. throw new globalObject.TypeError("'set ariaSort' called on an object that is not a valid instance of Element.");
  2811. }
  2812. if (V === null || V === undefined) {
  2813. V = null;
  2814. } else {
  2815. V = conversions["DOMString"](V, {
  2816. context: "Failed to set the 'ariaSort' property on 'Element': The provided value",
  2817. globals: globalObject
  2818. });
  2819. }
  2820. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2821. try {
  2822. if (V === null) {
  2823. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-sort");
  2824. } else {
  2825. esValue[implSymbol]._reflectSetTheContentAttribute("aria-sort", V);
  2826. }
  2827. } finally {
  2828. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2829. }
  2830. }
  2831. get ariaValueMax() {
  2832. const esValue = this !== null && this !== undefined ? this : globalObject;
  2833. if (!exports.is(esValue)) {
  2834. throw new globalObject.TypeError(
  2835. "'get ariaValueMax' called on an object that is not a valid instance of Element."
  2836. );
  2837. }
  2838. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2839. try {
  2840. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuemax");
  2841. } finally {
  2842. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2843. }
  2844. }
  2845. set ariaValueMax(V) {
  2846. const esValue = this !== null && this !== undefined ? this : globalObject;
  2847. if (!exports.is(esValue)) {
  2848. throw new globalObject.TypeError(
  2849. "'set ariaValueMax' called on an object that is not a valid instance of Element."
  2850. );
  2851. }
  2852. if (V === null || V === undefined) {
  2853. V = null;
  2854. } else {
  2855. V = conversions["DOMString"](V, {
  2856. context: "Failed to set the 'ariaValueMax' property on 'Element': The provided value",
  2857. globals: globalObject
  2858. });
  2859. }
  2860. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2861. try {
  2862. if (V === null) {
  2863. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuemax");
  2864. } else {
  2865. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuemax", V);
  2866. }
  2867. } finally {
  2868. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2869. }
  2870. }
  2871. get ariaValueMin() {
  2872. const esValue = this !== null && this !== undefined ? this : globalObject;
  2873. if (!exports.is(esValue)) {
  2874. throw new globalObject.TypeError(
  2875. "'get ariaValueMin' called on an object that is not a valid instance of Element."
  2876. );
  2877. }
  2878. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2879. try {
  2880. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuemin");
  2881. } finally {
  2882. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2883. }
  2884. }
  2885. set ariaValueMin(V) {
  2886. const esValue = this !== null && this !== undefined ? this : globalObject;
  2887. if (!exports.is(esValue)) {
  2888. throw new globalObject.TypeError(
  2889. "'set ariaValueMin' called on an object that is not a valid instance of Element."
  2890. );
  2891. }
  2892. if (V === null || V === undefined) {
  2893. V = null;
  2894. } else {
  2895. V = conversions["DOMString"](V, {
  2896. context: "Failed to set the 'ariaValueMin' property on 'Element': The provided value",
  2897. globals: globalObject
  2898. });
  2899. }
  2900. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2901. try {
  2902. if (V === null) {
  2903. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuemin");
  2904. } else {
  2905. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuemin", V);
  2906. }
  2907. } finally {
  2908. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2909. }
  2910. }
  2911. get ariaValueNow() {
  2912. const esValue = this !== null && this !== undefined ? this : globalObject;
  2913. if (!exports.is(esValue)) {
  2914. throw new globalObject.TypeError(
  2915. "'get ariaValueNow' called on an object that is not a valid instance of Element."
  2916. );
  2917. }
  2918. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2919. try {
  2920. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuenow");
  2921. } finally {
  2922. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2923. }
  2924. }
  2925. set ariaValueNow(V) {
  2926. const esValue = this !== null && this !== undefined ? this : globalObject;
  2927. if (!exports.is(esValue)) {
  2928. throw new globalObject.TypeError(
  2929. "'set ariaValueNow' called on an object that is not a valid instance of Element."
  2930. );
  2931. }
  2932. if (V === null || V === undefined) {
  2933. V = null;
  2934. } else {
  2935. V = conversions["DOMString"](V, {
  2936. context: "Failed to set the 'ariaValueNow' property on 'Element': The provided value",
  2937. globals: globalObject
  2938. });
  2939. }
  2940. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2941. try {
  2942. if (V === null) {
  2943. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuenow");
  2944. } else {
  2945. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuenow", V);
  2946. }
  2947. } finally {
  2948. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2949. }
  2950. }
  2951. get ariaValueText() {
  2952. const esValue = this !== null && this !== undefined ? this : globalObject;
  2953. if (!exports.is(esValue)) {
  2954. throw new globalObject.TypeError(
  2955. "'get ariaValueText' called on an object that is not a valid instance of Element."
  2956. );
  2957. }
  2958. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2959. try {
  2960. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuetext");
  2961. } finally {
  2962. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2963. }
  2964. }
  2965. set ariaValueText(V) {
  2966. const esValue = this !== null && this !== undefined ? this : globalObject;
  2967. if (!exports.is(esValue)) {
  2968. throw new globalObject.TypeError(
  2969. "'set ariaValueText' called on an object that is not a valid instance of Element."
  2970. );
  2971. }
  2972. if (V === null || V === undefined) {
  2973. V = null;
  2974. } else {
  2975. V = conversions["DOMString"](V, {
  2976. context: "Failed to set the 'ariaValueText' property on 'Element': The provided value",
  2977. globals: globalObject
  2978. });
  2979. }
  2980. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2981. try {
  2982. if (V === null) {
  2983. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuetext");
  2984. } else {
  2985. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuetext", V);
  2986. }
  2987. } finally {
  2988. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2989. }
  2990. }
  2991. get ariaRelevant() {
  2992. const esValue = this !== null && this !== undefined ? this : globalObject;
  2993. if (!exports.is(esValue)) {
  2994. throw new globalObject.TypeError(
  2995. "'get ariaRelevant' called on an object that is not a valid instance of Element."
  2996. );
  2997. }
  2998. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2999. try {
  3000. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-relevant");
  3001. } finally {
  3002. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  3003. }
  3004. }
  3005. set ariaRelevant(V) {
  3006. const esValue = this !== null && this !== undefined ? this : globalObject;
  3007. if (!exports.is(esValue)) {
  3008. throw new globalObject.TypeError(
  3009. "'set ariaRelevant' called on an object that is not a valid instance of Element."
  3010. );
  3011. }
  3012. if (V === null || V === undefined) {
  3013. V = null;
  3014. } else {
  3015. V = conversions["DOMString"](V, {
  3016. context: "Failed to set the 'ariaRelevant' property on 'Element': The provided value",
  3017. globals: globalObject
  3018. });
  3019. }
  3020. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  3021. try {
  3022. if (V === null) {
  3023. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-relevant");
  3024. } else {
  3025. esValue[implSymbol]._reflectSetTheContentAttribute("aria-relevant", V);
  3026. }
  3027. } finally {
  3028. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  3029. }
  3030. }
  3031. get previousElementSibling() {
  3032. const esValue = this !== null && this !== undefined ? this : globalObject;
  3033. if (!exports.is(esValue)) {
  3034. throw new globalObject.TypeError(
  3035. "'get previousElementSibling' called on an object that is not a valid instance of Element."
  3036. );
  3037. }
  3038. return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
  3039. }
  3040. get nextElementSibling() {
  3041. const esValue = this !== null && this !== undefined ? this : globalObject;
  3042. if (!exports.is(esValue)) {
  3043. throw new globalObject.TypeError(
  3044. "'get nextElementSibling' called on an object that is not a valid instance of Element."
  3045. );
  3046. }
  3047. return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
  3048. }
  3049. get children() {
  3050. const esValue = this !== null && this !== undefined ? this : globalObject;
  3051. if (!exports.is(esValue)) {
  3052. throw new globalObject.TypeError("'get children' called on an object that is not a valid instance of Element.");
  3053. }
  3054. return utils.getSameObject(this, "children", () => {
  3055. return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
  3056. });
  3057. }
  3058. get firstElementChild() {
  3059. const esValue = this !== null && this !== undefined ? this : globalObject;
  3060. if (!exports.is(esValue)) {
  3061. throw new globalObject.TypeError(
  3062. "'get firstElementChild' called on an object that is not a valid instance of Element."
  3063. );
  3064. }
  3065. return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
  3066. }
  3067. get lastElementChild() {
  3068. const esValue = this !== null && this !== undefined ? this : globalObject;
  3069. if (!exports.is(esValue)) {
  3070. throw new globalObject.TypeError(
  3071. "'get lastElementChild' called on an object that is not a valid instance of Element."
  3072. );
  3073. }
  3074. return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
  3075. }
  3076. get childElementCount() {
  3077. const esValue = this !== null && this !== undefined ? this : globalObject;
  3078. if (!exports.is(esValue)) {
  3079. throw new globalObject.TypeError(
  3080. "'get childElementCount' called on an object that is not a valid instance of Element."
  3081. );
  3082. }
  3083. return esValue[implSymbol]["childElementCount"];
  3084. }
  3085. get assignedSlot() {
  3086. const esValue = this !== null && this !== undefined ? this : globalObject;
  3087. if (!exports.is(esValue)) {
  3088. throw new globalObject.TypeError(
  3089. "'get assignedSlot' called on an object that is not a valid instance of Element."
  3090. );
  3091. }
  3092. return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
  3093. }
  3094. }
  3095. Object.defineProperties(Element.prototype, {
  3096. hasAttributes: { enumerable: true },
  3097. getAttributeNames: { enumerable: true },
  3098. getAttribute: { enumerable: true },
  3099. getAttributeNS: { enumerable: true },
  3100. setAttribute: { enumerable: true },
  3101. setAttributeNS: { enumerable: true },
  3102. removeAttribute: { enumerable: true },
  3103. removeAttributeNS: { enumerable: true },
  3104. toggleAttribute: { enumerable: true },
  3105. hasAttribute: { enumerable: true },
  3106. hasAttributeNS: { enumerable: true },
  3107. getAttributeNode: { enumerable: true },
  3108. getAttributeNodeNS: { enumerable: true },
  3109. setAttributeNode: { enumerable: true },
  3110. setAttributeNodeNS: { enumerable: true },
  3111. removeAttributeNode: { enumerable: true },
  3112. attachShadow: { enumerable: true },
  3113. closest: { enumerable: true },
  3114. matches: { enumerable: true },
  3115. webkitMatchesSelector: { enumerable: true },
  3116. getElementsByTagName: { enumerable: true },
  3117. getElementsByTagNameNS: { enumerable: true },
  3118. getElementsByClassName: { enumerable: true },
  3119. insertAdjacentElement: { enumerable: true },
  3120. insertAdjacentText: { enumerable: true },
  3121. insertAdjacentHTML: { enumerable: true },
  3122. getClientRects: { enumerable: true },
  3123. getBoundingClientRect: { enumerable: true },
  3124. before: { enumerable: true },
  3125. after: { enumerable: true },
  3126. replaceWith: { enumerable: true },
  3127. remove: { enumerable: true },
  3128. prepend: { enumerable: true },
  3129. append: { enumerable: true },
  3130. replaceChildren: { enumerable: true },
  3131. querySelector: { enumerable: true },
  3132. querySelectorAll: { enumerable: true },
  3133. namespaceURI: { enumerable: true },
  3134. prefix: { enumerable: true },
  3135. localName: { enumerable: true },
  3136. tagName: { enumerable: true },
  3137. id: { enumerable: true },
  3138. className: { enumerable: true },
  3139. classList: { enumerable: true },
  3140. slot: { enumerable: true },
  3141. attributes: { enumerable: true },
  3142. shadowRoot: { enumerable: true },
  3143. outerHTML: { enumerable: true },
  3144. scrollTop: { enumerable: true },
  3145. scrollLeft: { enumerable: true },
  3146. scrollWidth: { enumerable: true },
  3147. scrollHeight: { enumerable: true },
  3148. clientTop: { enumerable: true },
  3149. clientLeft: { enumerable: true },
  3150. clientWidth: { enumerable: true },
  3151. clientHeight: { enumerable: true },
  3152. innerHTML: { enumerable: true },
  3153. role: { enumerable: true },
  3154. ariaAtomic: { enumerable: true },
  3155. ariaAutoComplete: { enumerable: true },
  3156. ariaBusy: { enumerable: true },
  3157. ariaChecked: { enumerable: true },
  3158. ariaColCount: { enumerable: true },
  3159. ariaColIndex: { enumerable: true },
  3160. ariaColIndexText: { enumerable: true },
  3161. ariaColSpan: { enumerable: true },
  3162. ariaCurrent: { enumerable: true },
  3163. ariaDescription: { enumerable: true },
  3164. ariaDisabled: { enumerable: true },
  3165. ariaExpanded: { enumerable: true },
  3166. ariaHasPopup: { enumerable: true },
  3167. ariaHidden: { enumerable: true },
  3168. ariaInvalid: { enumerable: true },
  3169. ariaKeyShortcuts: { enumerable: true },
  3170. ariaLabel: { enumerable: true },
  3171. ariaLevel: { enumerable: true },
  3172. ariaLive: { enumerable: true },
  3173. ariaModal: { enumerable: true },
  3174. ariaMultiLine: { enumerable: true },
  3175. ariaMultiSelectable: { enumerable: true },
  3176. ariaOrientation: { enumerable: true },
  3177. ariaPlaceholder: { enumerable: true },
  3178. ariaPosInSet: { enumerable: true },
  3179. ariaPressed: { enumerable: true },
  3180. ariaReadOnly: { enumerable: true },
  3181. ariaRequired: { enumerable: true },
  3182. ariaRoleDescription: { enumerable: true },
  3183. ariaRowCount: { enumerable: true },
  3184. ariaRowIndex: { enumerable: true },
  3185. ariaRowIndexText: { enumerable: true },
  3186. ariaRowSpan: { enumerable: true },
  3187. ariaSelected: { enumerable: true },
  3188. ariaSetSize: { enumerable: true },
  3189. ariaSort: { enumerable: true },
  3190. ariaValueMax: { enumerable: true },
  3191. ariaValueMin: { enumerable: true },
  3192. ariaValueNow: { enumerable: true },
  3193. ariaValueText: { enumerable: true },
  3194. ariaRelevant: { enumerable: true },
  3195. previousElementSibling: { enumerable: true },
  3196. nextElementSibling: { enumerable: true },
  3197. children: { enumerable: true },
  3198. firstElementChild: { enumerable: true },
  3199. lastElementChild: { enumerable: true },
  3200. childElementCount: { enumerable: true },
  3201. assignedSlot: { enumerable: true },
  3202. [Symbol.toStringTag]: { value: "Element", configurable: true },
  3203. [Symbol.unscopables]: {
  3204. value: {
  3205. slot: true,
  3206. before: true,
  3207. after: true,
  3208. replaceWith: true,
  3209. remove: true,
  3210. prepend: true,
  3211. append: true,
  3212. replaceChildren: true,
  3213. __proto__: null
  3214. },
  3215. configurable: true
  3216. }
  3217. });
  3218. ctorRegistry[interfaceName] = Element;
  3219. Object.defineProperty(globalObject, interfaceName, {
  3220. configurable: true,
  3221. writable: true,
  3222. value: Element
  3223. });
  3224. };
  3225. const Impl = require("../../jsdom/living/nodes/Element-impl.js");