ElementInternals.js 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152
  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 implSymbol = utils.implSymbol;
  9. const ctorRegistrySymbol = utils.ctorRegistrySymbol;
  10. const interfaceName = "ElementInternals";
  11. exports.is = value => {
  12. return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
  13. };
  14. exports.isImpl = value => {
  15. return utils.isObject(value) && value instanceof Impl.implementation;
  16. };
  17. exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
  18. if (exports.is(value)) {
  19. return utils.implForWrapper(value);
  20. }
  21. throw new globalObject.TypeError(`${context} is not of type 'ElementInternals'.`);
  22. };
  23. function makeWrapper(globalObject, newTarget) {
  24. let proto;
  25. if (newTarget !== undefined) {
  26. proto = newTarget.prototype;
  27. }
  28. if (!utils.isObject(proto)) {
  29. proto = globalObject[ctorRegistrySymbol]["ElementInternals"].prototype;
  30. }
  31. return Object.create(proto);
  32. }
  33. exports.create = (globalObject, constructorArgs, privateData) => {
  34. const wrapper = makeWrapper(globalObject);
  35. return exports.setup(wrapper, globalObject, constructorArgs, privateData);
  36. };
  37. exports.createImpl = (globalObject, constructorArgs, privateData) => {
  38. const wrapper = exports.create(globalObject, constructorArgs, privateData);
  39. return utils.implForWrapper(wrapper);
  40. };
  41. exports._internalSetup = (wrapper, globalObject) => {};
  42. exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
  43. privateData.wrapper = wrapper;
  44. exports._internalSetup(wrapper, globalObject);
  45. Object.defineProperty(wrapper, implSymbol, {
  46. value: new Impl.implementation(globalObject, constructorArgs, privateData),
  47. configurable: true
  48. });
  49. wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
  50. if (Impl.init) {
  51. Impl.init(wrapper[implSymbol]);
  52. }
  53. return wrapper;
  54. };
  55. exports.new = (globalObject, newTarget) => {
  56. const wrapper = makeWrapper(globalObject, newTarget);
  57. exports._internalSetup(wrapper, globalObject);
  58. Object.defineProperty(wrapper, implSymbol, {
  59. value: Object.create(Impl.implementation.prototype),
  60. configurable: true
  61. });
  62. wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
  63. if (Impl.init) {
  64. Impl.init(wrapper[implSymbol]);
  65. }
  66. return wrapper[implSymbol];
  67. };
  68. const exposed = new Set(["Window"]);
  69. exports.install = (globalObject, globalNames) => {
  70. if (!globalNames.some(globalName => exposed.has(globalName))) {
  71. return;
  72. }
  73. const ctorRegistry = utils.initCtorRegistry(globalObject);
  74. class ElementInternals {
  75. constructor() {
  76. throw new globalObject.TypeError("Illegal constructor");
  77. }
  78. get shadowRoot() {
  79. const esValue = this !== null && this !== undefined ? this : globalObject;
  80. if (!exports.is(esValue)) {
  81. throw new globalObject.TypeError(
  82. "'get shadowRoot' called on an object that is not a valid instance of ElementInternals."
  83. );
  84. }
  85. return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
  86. }
  87. get labels() {
  88. const esValue = this !== null && this !== undefined ? this : globalObject;
  89. if (!exports.is(esValue)) {
  90. throw new globalObject.TypeError(
  91. "'get labels' called on an object that is not a valid instance of ElementInternals."
  92. );
  93. }
  94. return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
  95. }
  96. get role() {
  97. const esValue = this !== null && this !== undefined ? this : globalObject;
  98. if (!exports.is(esValue)) {
  99. throw new globalObject.TypeError(
  100. "'get role' called on an object that is not a valid instance of ElementInternals."
  101. );
  102. }
  103. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  104. try {
  105. return esValue[implSymbol]._reflectGetTheContentAttribute("role");
  106. } finally {
  107. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  108. }
  109. }
  110. set role(V) {
  111. const esValue = this !== null && this !== undefined ? this : globalObject;
  112. if (!exports.is(esValue)) {
  113. throw new globalObject.TypeError(
  114. "'set role' called on an object that is not a valid instance of ElementInternals."
  115. );
  116. }
  117. if (V === null || V === undefined) {
  118. V = null;
  119. } else {
  120. V = conversions["DOMString"](V, {
  121. context: "Failed to set the 'role' property on 'ElementInternals': The provided value",
  122. globals: globalObject
  123. });
  124. }
  125. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  126. try {
  127. if (V === null) {
  128. esValue[implSymbol]._reflectDeleteTheContentAttribute("role");
  129. } else {
  130. esValue[implSymbol]._reflectSetTheContentAttribute("role", V);
  131. }
  132. } finally {
  133. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  134. }
  135. }
  136. get ariaAtomic() {
  137. const esValue = this !== null && this !== undefined ? this : globalObject;
  138. if (!exports.is(esValue)) {
  139. throw new globalObject.TypeError(
  140. "'get ariaAtomic' called on an object that is not a valid instance of ElementInternals."
  141. );
  142. }
  143. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  144. try {
  145. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-atomic");
  146. } finally {
  147. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  148. }
  149. }
  150. set ariaAtomic(V) {
  151. const esValue = this !== null && this !== undefined ? this : globalObject;
  152. if (!exports.is(esValue)) {
  153. throw new globalObject.TypeError(
  154. "'set ariaAtomic' called on an object that is not a valid instance of ElementInternals."
  155. );
  156. }
  157. if (V === null || V === undefined) {
  158. V = null;
  159. } else {
  160. V = conversions["DOMString"](V, {
  161. context: "Failed to set the 'ariaAtomic' property on 'ElementInternals': The provided value",
  162. globals: globalObject
  163. });
  164. }
  165. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  166. try {
  167. if (V === null) {
  168. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-atomic");
  169. } else {
  170. esValue[implSymbol]._reflectSetTheContentAttribute("aria-atomic", V);
  171. }
  172. } finally {
  173. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  174. }
  175. }
  176. get ariaAutoComplete() {
  177. const esValue = this !== null && this !== undefined ? this : globalObject;
  178. if (!exports.is(esValue)) {
  179. throw new globalObject.TypeError(
  180. "'get ariaAutoComplete' called on an object that is not a valid instance of ElementInternals."
  181. );
  182. }
  183. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  184. try {
  185. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-autocomplete");
  186. } finally {
  187. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  188. }
  189. }
  190. set ariaAutoComplete(V) {
  191. const esValue = this !== null && this !== undefined ? this : globalObject;
  192. if (!exports.is(esValue)) {
  193. throw new globalObject.TypeError(
  194. "'set ariaAutoComplete' called on an object that is not a valid instance of ElementInternals."
  195. );
  196. }
  197. if (V === null || V === undefined) {
  198. V = null;
  199. } else {
  200. V = conversions["DOMString"](V, {
  201. context: "Failed to set the 'ariaAutoComplete' property on 'ElementInternals': The provided value",
  202. globals: globalObject
  203. });
  204. }
  205. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  206. try {
  207. if (V === null) {
  208. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-autocomplete");
  209. } else {
  210. esValue[implSymbol]._reflectSetTheContentAttribute("aria-autocomplete", V);
  211. }
  212. } finally {
  213. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  214. }
  215. }
  216. get ariaBusy() {
  217. const esValue = this !== null && this !== undefined ? this : globalObject;
  218. if (!exports.is(esValue)) {
  219. throw new globalObject.TypeError(
  220. "'get ariaBusy' called on an object that is not a valid instance of ElementInternals."
  221. );
  222. }
  223. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  224. try {
  225. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-busy");
  226. } finally {
  227. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  228. }
  229. }
  230. set ariaBusy(V) {
  231. const esValue = this !== null && this !== undefined ? this : globalObject;
  232. if (!exports.is(esValue)) {
  233. throw new globalObject.TypeError(
  234. "'set ariaBusy' called on an object that is not a valid instance of ElementInternals."
  235. );
  236. }
  237. if (V === null || V === undefined) {
  238. V = null;
  239. } else {
  240. V = conversions["DOMString"](V, {
  241. context: "Failed to set the 'ariaBusy' property on 'ElementInternals': The provided value",
  242. globals: globalObject
  243. });
  244. }
  245. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  246. try {
  247. if (V === null) {
  248. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-busy");
  249. } else {
  250. esValue[implSymbol]._reflectSetTheContentAttribute("aria-busy", V);
  251. }
  252. } finally {
  253. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  254. }
  255. }
  256. get ariaChecked() {
  257. const esValue = this !== null && this !== undefined ? this : globalObject;
  258. if (!exports.is(esValue)) {
  259. throw new globalObject.TypeError(
  260. "'get ariaChecked' called on an object that is not a valid instance of ElementInternals."
  261. );
  262. }
  263. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  264. try {
  265. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-checked");
  266. } finally {
  267. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  268. }
  269. }
  270. set ariaChecked(V) {
  271. const esValue = this !== null && this !== undefined ? this : globalObject;
  272. if (!exports.is(esValue)) {
  273. throw new globalObject.TypeError(
  274. "'set ariaChecked' called on an object that is not a valid instance of ElementInternals."
  275. );
  276. }
  277. if (V === null || V === undefined) {
  278. V = null;
  279. } else {
  280. V = conversions["DOMString"](V, {
  281. context: "Failed to set the 'ariaChecked' property on 'ElementInternals': The provided value",
  282. globals: globalObject
  283. });
  284. }
  285. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  286. try {
  287. if (V === null) {
  288. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-checked");
  289. } else {
  290. esValue[implSymbol]._reflectSetTheContentAttribute("aria-checked", V);
  291. }
  292. } finally {
  293. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  294. }
  295. }
  296. get ariaColCount() {
  297. const esValue = this !== null && this !== undefined ? this : globalObject;
  298. if (!exports.is(esValue)) {
  299. throw new globalObject.TypeError(
  300. "'get ariaColCount' called on an object that is not a valid instance of ElementInternals."
  301. );
  302. }
  303. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  304. try {
  305. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colcount");
  306. } finally {
  307. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  308. }
  309. }
  310. set ariaColCount(V) {
  311. const esValue = this !== null && this !== undefined ? this : globalObject;
  312. if (!exports.is(esValue)) {
  313. throw new globalObject.TypeError(
  314. "'set ariaColCount' called on an object that is not a valid instance of ElementInternals."
  315. );
  316. }
  317. if (V === null || V === undefined) {
  318. V = null;
  319. } else {
  320. V = conversions["DOMString"](V, {
  321. context: "Failed to set the 'ariaColCount' property on 'ElementInternals': The provided value",
  322. globals: globalObject
  323. });
  324. }
  325. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  326. try {
  327. if (V === null) {
  328. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colcount");
  329. } else {
  330. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colcount", V);
  331. }
  332. } finally {
  333. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  334. }
  335. }
  336. get ariaColIndex() {
  337. const esValue = this !== null && this !== undefined ? this : globalObject;
  338. if (!exports.is(esValue)) {
  339. throw new globalObject.TypeError(
  340. "'get ariaColIndex' called on an object that is not a valid instance of ElementInternals."
  341. );
  342. }
  343. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  344. try {
  345. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colindex");
  346. } finally {
  347. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  348. }
  349. }
  350. set ariaColIndex(V) {
  351. const esValue = this !== null && this !== undefined ? this : globalObject;
  352. if (!exports.is(esValue)) {
  353. throw new globalObject.TypeError(
  354. "'set ariaColIndex' called on an object that is not a valid instance of ElementInternals."
  355. );
  356. }
  357. if (V === null || V === undefined) {
  358. V = null;
  359. } else {
  360. V = conversions["DOMString"](V, {
  361. context: "Failed to set the 'ariaColIndex' property on 'ElementInternals': The provided value",
  362. globals: globalObject
  363. });
  364. }
  365. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  366. try {
  367. if (V === null) {
  368. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colindex");
  369. } else {
  370. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colindex", V);
  371. }
  372. } finally {
  373. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  374. }
  375. }
  376. get ariaColIndexText() {
  377. const esValue = this !== null && this !== undefined ? this : globalObject;
  378. if (!exports.is(esValue)) {
  379. throw new globalObject.TypeError(
  380. "'get ariaColIndexText' called on an object that is not a valid instance of ElementInternals."
  381. );
  382. }
  383. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  384. try {
  385. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colindextext");
  386. } finally {
  387. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  388. }
  389. }
  390. set ariaColIndexText(V) {
  391. const esValue = this !== null && this !== undefined ? this : globalObject;
  392. if (!exports.is(esValue)) {
  393. throw new globalObject.TypeError(
  394. "'set ariaColIndexText' called on an object that is not a valid instance of ElementInternals."
  395. );
  396. }
  397. if (V === null || V === undefined) {
  398. V = null;
  399. } else {
  400. V = conversions["DOMString"](V, {
  401. context: "Failed to set the 'ariaColIndexText' property on 'ElementInternals': The provided value",
  402. globals: globalObject
  403. });
  404. }
  405. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  406. try {
  407. if (V === null) {
  408. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colindextext");
  409. } else {
  410. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colindextext", V);
  411. }
  412. } finally {
  413. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  414. }
  415. }
  416. get ariaColSpan() {
  417. const esValue = this !== null && this !== undefined ? this : globalObject;
  418. if (!exports.is(esValue)) {
  419. throw new globalObject.TypeError(
  420. "'get ariaColSpan' called on an object that is not a valid instance of ElementInternals."
  421. );
  422. }
  423. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  424. try {
  425. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-colspan");
  426. } finally {
  427. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  428. }
  429. }
  430. set ariaColSpan(V) {
  431. const esValue = this !== null && this !== undefined ? this : globalObject;
  432. if (!exports.is(esValue)) {
  433. throw new globalObject.TypeError(
  434. "'set ariaColSpan' called on an object that is not a valid instance of ElementInternals."
  435. );
  436. }
  437. if (V === null || V === undefined) {
  438. V = null;
  439. } else {
  440. V = conversions["DOMString"](V, {
  441. context: "Failed to set the 'ariaColSpan' property on 'ElementInternals': The provided value",
  442. globals: globalObject
  443. });
  444. }
  445. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  446. try {
  447. if (V === null) {
  448. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-colspan");
  449. } else {
  450. esValue[implSymbol]._reflectSetTheContentAttribute("aria-colspan", V);
  451. }
  452. } finally {
  453. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  454. }
  455. }
  456. get ariaCurrent() {
  457. const esValue = this !== null && this !== undefined ? this : globalObject;
  458. if (!exports.is(esValue)) {
  459. throw new globalObject.TypeError(
  460. "'get ariaCurrent' called on an object that is not a valid instance of ElementInternals."
  461. );
  462. }
  463. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  464. try {
  465. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-current");
  466. } finally {
  467. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  468. }
  469. }
  470. set ariaCurrent(V) {
  471. const esValue = this !== null && this !== undefined ? this : globalObject;
  472. if (!exports.is(esValue)) {
  473. throw new globalObject.TypeError(
  474. "'set ariaCurrent' called on an object that is not a valid instance of ElementInternals."
  475. );
  476. }
  477. if (V === null || V === undefined) {
  478. V = null;
  479. } else {
  480. V = conversions["DOMString"](V, {
  481. context: "Failed to set the 'ariaCurrent' property on 'ElementInternals': The provided value",
  482. globals: globalObject
  483. });
  484. }
  485. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  486. try {
  487. if (V === null) {
  488. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-current");
  489. } else {
  490. esValue[implSymbol]._reflectSetTheContentAttribute("aria-current", V);
  491. }
  492. } finally {
  493. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  494. }
  495. }
  496. get ariaDescription() {
  497. const esValue = this !== null && this !== undefined ? this : globalObject;
  498. if (!exports.is(esValue)) {
  499. throw new globalObject.TypeError(
  500. "'get ariaDescription' called on an object that is not a valid instance of ElementInternals."
  501. );
  502. }
  503. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  504. try {
  505. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-description");
  506. } finally {
  507. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  508. }
  509. }
  510. set ariaDescription(V) {
  511. const esValue = this !== null && this !== undefined ? this : globalObject;
  512. if (!exports.is(esValue)) {
  513. throw new globalObject.TypeError(
  514. "'set ariaDescription' called on an object that is not a valid instance of ElementInternals."
  515. );
  516. }
  517. if (V === null || V === undefined) {
  518. V = null;
  519. } else {
  520. V = conversions["DOMString"](V, {
  521. context: "Failed to set the 'ariaDescription' property on 'ElementInternals': The provided value",
  522. globals: globalObject
  523. });
  524. }
  525. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  526. try {
  527. if (V === null) {
  528. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-description");
  529. } else {
  530. esValue[implSymbol]._reflectSetTheContentAttribute("aria-description", V);
  531. }
  532. } finally {
  533. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  534. }
  535. }
  536. get ariaDisabled() {
  537. const esValue = this !== null && this !== undefined ? this : globalObject;
  538. if (!exports.is(esValue)) {
  539. throw new globalObject.TypeError(
  540. "'get ariaDisabled' called on an object that is not a valid instance of ElementInternals."
  541. );
  542. }
  543. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  544. try {
  545. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-disabled");
  546. } finally {
  547. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  548. }
  549. }
  550. set ariaDisabled(V) {
  551. const esValue = this !== null && this !== undefined ? this : globalObject;
  552. if (!exports.is(esValue)) {
  553. throw new globalObject.TypeError(
  554. "'set ariaDisabled' called on an object that is not a valid instance of ElementInternals."
  555. );
  556. }
  557. if (V === null || V === undefined) {
  558. V = null;
  559. } else {
  560. V = conversions["DOMString"](V, {
  561. context: "Failed to set the 'ariaDisabled' property on 'ElementInternals': The provided value",
  562. globals: globalObject
  563. });
  564. }
  565. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  566. try {
  567. if (V === null) {
  568. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-disabled");
  569. } else {
  570. esValue[implSymbol]._reflectSetTheContentAttribute("aria-disabled", V);
  571. }
  572. } finally {
  573. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  574. }
  575. }
  576. get ariaExpanded() {
  577. const esValue = this !== null && this !== undefined ? this : globalObject;
  578. if (!exports.is(esValue)) {
  579. throw new globalObject.TypeError(
  580. "'get ariaExpanded' called on an object that is not a valid instance of ElementInternals."
  581. );
  582. }
  583. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  584. try {
  585. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-expanded");
  586. } finally {
  587. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  588. }
  589. }
  590. set ariaExpanded(V) {
  591. const esValue = this !== null && this !== undefined ? this : globalObject;
  592. if (!exports.is(esValue)) {
  593. throw new globalObject.TypeError(
  594. "'set ariaExpanded' called on an object that is not a valid instance of ElementInternals."
  595. );
  596. }
  597. if (V === null || V === undefined) {
  598. V = null;
  599. } else {
  600. V = conversions["DOMString"](V, {
  601. context: "Failed to set the 'ariaExpanded' property on 'ElementInternals': The provided value",
  602. globals: globalObject
  603. });
  604. }
  605. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  606. try {
  607. if (V === null) {
  608. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-expanded");
  609. } else {
  610. esValue[implSymbol]._reflectSetTheContentAttribute("aria-expanded", V);
  611. }
  612. } finally {
  613. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  614. }
  615. }
  616. get ariaHasPopup() {
  617. const esValue = this !== null && this !== undefined ? this : globalObject;
  618. if (!exports.is(esValue)) {
  619. throw new globalObject.TypeError(
  620. "'get ariaHasPopup' called on an object that is not a valid instance of ElementInternals."
  621. );
  622. }
  623. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  624. try {
  625. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-haspopup");
  626. } finally {
  627. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  628. }
  629. }
  630. set ariaHasPopup(V) {
  631. const esValue = this !== null && this !== undefined ? this : globalObject;
  632. if (!exports.is(esValue)) {
  633. throw new globalObject.TypeError(
  634. "'set ariaHasPopup' called on an object that is not a valid instance of ElementInternals."
  635. );
  636. }
  637. if (V === null || V === undefined) {
  638. V = null;
  639. } else {
  640. V = conversions["DOMString"](V, {
  641. context: "Failed to set the 'ariaHasPopup' property on 'ElementInternals': The provided value",
  642. globals: globalObject
  643. });
  644. }
  645. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  646. try {
  647. if (V === null) {
  648. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-haspopup");
  649. } else {
  650. esValue[implSymbol]._reflectSetTheContentAttribute("aria-haspopup", V);
  651. }
  652. } finally {
  653. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  654. }
  655. }
  656. get ariaHidden() {
  657. const esValue = this !== null && this !== undefined ? this : globalObject;
  658. if (!exports.is(esValue)) {
  659. throw new globalObject.TypeError(
  660. "'get ariaHidden' called on an object that is not a valid instance of ElementInternals."
  661. );
  662. }
  663. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  664. try {
  665. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-hidden");
  666. } finally {
  667. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  668. }
  669. }
  670. set ariaHidden(V) {
  671. const esValue = this !== null && this !== undefined ? this : globalObject;
  672. if (!exports.is(esValue)) {
  673. throw new globalObject.TypeError(
  674. "'set ariaHidden' called on an object that is not a valid instance of ElementInternals."
  675. );
  676. }
  677. if (V === null || V === undefined) {
  678. V = null;
  679. } else {
  680. V = conversions["DOMString"](V, {
  681. context: "Failed to set the 'ariaHidden' property on 'ElementInternals': The provided value",
  682. globals: globalObject
  683. });
  684. }
  685. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  686. try {
  687. if (V === null) {
  688. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-hidden");
  689. } else {
  690. esValue[implSymbol]._reflectSetTheContentAttribute("aria-hidden", V);
  691. }
  692. } finally {
  693. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  694. }
  695. }
  696. get ariaInvalid() {
  697. const esValue = this !== null && this !== undefined ? this : globalObject;
  698. if (!exports.is(esValue)) {
  699. throw new globalObject.TypeError(
  700. "'get ariaInvalid' called on an object that is not a valid instance of ElementInternals."
  701. );
  702. }
  703. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  704. try {
  705. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-invalid");
  706. } finally {
  707. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  708. }
  709. }
  710. set ariaInvalid(V) {
  711. const esValue = this !== null && this !== undefined ? this : globalObject;
  712. if (!exports.is(esValue)) {
  713. throw new globalObject.TypeError(
  714. "'set ariaInvalid' called on an object that is not a valid instance of ElementInternals."
  715. );
  716. }
  717. if (V === null || V === undefined) {
  718. V = null;
  719. } else {
  720. V = conversions["DOMString"](V, {
  721. context: "Failed to set the 'ariaInvalid' property on 'ElementInternals': The provided value",
  722. globals: globalObject
  723. });
  724. }
  725. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  726. try {
  727. if (V === null) {
  728. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-invalid");
  729. } else {
  730. esValue[implSymbol]._reflectSetTheContentAttribute("aria-invalid", V);
  731. }
  732. } finally {
  733. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  734. }
  735. }
  736. get ariaKeyShortcuts() {
  737. const esValue = this !== null && this !== undefined ? this : globalObject;
  738. if (!exports.is(esValue)) {
  739. throw new globalObject.TypeError(
  740. "'get ariaKeyShortcuts' called on an object that is not a valid instance of ElementInternals."
  741. );
  742. }
  743. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  744. try {
  745. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-keyshortcuts");
  746. } finally {
  747. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  748. }
  749. }
  750. set ariaKeyShortcuts(V) {
  751. const esValue = this !== null && this !== undefined ? this : globalObject;
  752. if (!exports.is(esValue)) {
  753. throw new globalObject.TypeError(
  754. "'set ariaKeyShortcuts' called on an object that is not a valid instance of ElementInternals."
  755. );
  756. }
  757. if (V === null || V === undefined) {
  758. V = null;
  759. } else {
  760. V = conversions["DOMString"](V, {
  761. context: "Failed to set the 'ariaKeyShortcuts' property on 'ElementInternals': The provided value",
  762. globals: globalObject
  763. });
  764. }
  765. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  766. try {
  767. if (V === null) {
  768. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-keyshortcuts");
  769. } else {
  770. esValue[implSymbol]._reflectSetTheContentAttribute("aria-keyshortcuts", V);
  771. }
  772. } finally {
  773. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  774. }
  775. }
  776. get ariaLabel() {
  777. const esValue = this !== null && this !== undefined ? this : globalObject;
  778. if (!exports.is(esValue)) {
  779. throw new globalObject.TypeError(
  780. "'get ariaLabel' called on an object that is not a valid instance of ElementInternals."
  781. );
  782. }
  783. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  784. try {
  785. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-label");
  786. } finally {
  787. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  788. }
  789. }
  790. set ariaLabel(V) {
  791. const esValue = this !== null && this !== undefined ? this : globalObject;
  792. if (!exports.is(esValue)) {
  793. throw new globalObject.TypeError(
  794. "'set ariaLabel' called on an object that is not a valid instance of ElementInternals."
  795. );
  796. }
  797. if (V === null || V === undefined) {
  798. V = null;
  799. } else {
  800. V = conversions["DOMString"](V, {
  801. context: "Failed to set the 'ariaLabel' property on 'ElementInternals': The provided value",
  802. globals: globalObject
  803. });
  804. }
  805. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  806. try {
  807. if (V === null) {
  808. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-label");
  809. } else {
  810. esValue[implSymbol]._reflectSetTheContentAttribute("aria-label", V);
  811. }
  812. } finally {
  813. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  814. }
  815. }
  816. get ariaLevel() {
  817. const esValue = this !== null && this !== undefined ? this : globalObject;
  818. if (!exports.is(esValue)) {
  819. throw new globalObject.TypeError(
  820. "'get ariaLevel' called on an object that is not a valid instance of ElementInternals."
  821. );
  822. }
  823. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  824. try {
  825. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-level");
  826. } finally {
  827. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  828. }
  829. }
  830. set ariaLevel(V) {
  831. const esValue = this !== null && this !== undefined ? this : globalObject;
  832. if (!exports.is(esValue)) {
  833. throw new globalObject.TypeError(
  834. "'set ariaLevel' called on an object that is not a valid instance of ElementInternals."
  835. );
  836. }
  837. if (V === null || V === undefined) {
  838. V = null;
  839. } else {
  840. V = conversions["DOMString"](V, {
  841. context: "Failed to set the 'ariaLevel' property on 'ElementInternals': The provided value",
  842. globals: globalObject
  843. });
  844. }
  845. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  846. try {
  847. if (V === null) {
  848. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-level");
  849. } else {
  850. esValue[implSymbol]._reflectSetTheContentAttribute("aria-level", V);
  851. }
  852. } finally {
  853. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  854. }
  855. }
  856. get ariaLive() {
  857. const esValue = this !== null && this !== undefined ? this : globalObject;
  858. if (!exports.is(esValue)) {
  859. throw new globalObject.TypeError(
  860. "'get ariaLive' called on an object that is not a valid instance of ElementInternals."
  861. );
  862. }
  863. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  864. try {
  865. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-live");
  866. } finally {
  867. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  868. }
  869. }
  870. set ariaLive(V) {
  871. const esValue = this !== null && this !== undefined ? this : globalObject;
  872. if (!exports.is(esValue)) {
  873. throw new globalObject.TypeError(
  874. "'set ariaLive' called on an object that is not a valid instance of ElementInternals."
  875. );
  876. }
  877. if (V === null || V === undefined) {
  878. V = null;
  879. } else {
  880. V = conversions["DOMString"](V, {
  881. context: "Failed to set the 'ariaLive' property on 'ElementInternals': The provided value",
  882. globals: globalObject
  883. });
  884. }
  885. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  886. try {
  887. if (V === null) {
  888. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-live");
  889. } else {
  890. esValue[implSymbol]._reflectSetTheContentAttribute("aria-live", V);
  891. }
  892. } finally {
  893. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  894. }
  895. }
  896. get ariaModal() {
  897. const esValue = this !== null && this !== undefined ? this : globalObject;
  898. if (!exports.is(esValue)) {
  899. throw new globalObject.TypeError(
  900. "'get ariaModal' called on an object that is not a valid instance of ElementInternals."
  901. );
  902. }
  903. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  904. try {
  905. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-modal");
  906. } finally {
  907. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  908. }
  909. }
  910. set ariaModal(V) {
  911. const esValue = this !== null && this !== undefined ? this : globalObject;
  912. if (!exports.is(esValue)) {
  913. throw new globalObject.TypeError(
  914. "'set ariaModal' called on an object that is not a valid instance of ElementInternals."
  915. );
  916. }
  917. if (V === null || V === undefined) {
  918. V = null;
  919. } else {
  920. V = conversions["DOMString"](V, {
  921. context: "Failed to set the 'ariaModal' property on 'ElementInternals': The provided value",
  922. globals: globalObject
  923. });
  924. }
  925. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  926. try {
  927. if (V === null) {
  928. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-modal");
  929. } else {
  930. esValue[implSymbol]._reflectSetTheContentAttribute("aria-modal", V);
  931. }
  932. } finally {
  933. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  934. }
  935. }
  936. get ariaMultiLine() {
  937. const esValue = this !== null && this !== undefined ? this : globalObject;
  938. if (!exports.is(esValue)) {
  939. throw new globalObject.TypeError(
  940. "'get ariaMultiLine' called on an object that is not a valid instance of ElementInternals."
  941. );
  942. }
  943. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  944. try {
  945. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-multiline");
  946. } finally {
  947. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  948. }
  949. }
  950. set ariaMultiLine(V) {
  951. const esValue = this !== null && this !== undefined ? this : globalObject;
  952. if (!exports.is(esValue)) {
  953. throw new globalObject.TypeError(
  954. "'set ariaMultiLine' called on an object that is not a valid instance of ElementInternals."
  955. );
  956. }
  957. if (V === null || V === undefined) {
  958. V = null;
  959. } else {
  960. V = conversions["DOMString"](V, {
  961. context: "Failed to set the 'ariaMultiLine' property on 'ElementInternals': The provided value",
  962. globals: globalObject
  963. });
  964. }
  965. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  966. try {
  967. if (V === null) {
  968. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-multiline");
  969. } else {
  970. esValue[implSymbol]._reflectSetTheContentAttribute("aria-multiline", V);
  971. }
  972. } finally {
  973. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  974. }
  975. }
  976. get ariaMultiSelectable() {
  977. const esValue = this !== null && this !== undefined ? this : globalObject;
  978. if (!exports.is(esValue)) {
  979. throw new globalObject.TypeError(
  980. "'get ariaMultiSelectable' called on an object that is not a valid instance of ElementInternals."
  981. );
  982. }
  983. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  984. try {
  985. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-multiselectable");
  986. } finally {
  987. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  988. }
  989. }
  990. set ariaMultiSelectable(V) {
  991. const esValue = this !== null && this !== undefined ? this : globalObject;
  992. if (!exports.is(esValue)) {
  993. throw new globalObject.TypeError(
  994. "'set ariaMultiSelectable' called on an object that is not a valid instance of ElementInternals."
  995. );
  996. }
  997. if (V === null || V === undefined) {
  998. V = null;
  999. } else {
  1000. V = conversions["DOMString"](V, {
  1001. context: "Failed to set the 'ariaMultiSelectable' property on 'ElementInternals': The provided value",
  1002. globals: globalObject
  1003. });
  1004. }
  1005. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1006. try {
  1007. if (V === null) {
  1008. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-multiselectable");
  1009. } else {
  1010. esValue[implSymbol]._reflectSetTheContentAttribute("aria-multiselectable", V);
  1011. }
  1012. } finally {
  1013. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1014. }
  1015. }
  1016. get ariaOrientation() {
  1017. const esValue = this !== null && this !== undefined ? this : globalObject;
  1018. if (!exports.is(esValue)) {
  1019. throw new globalObject.TypeError(
  1020. "'get ariaOrientation' called on an object that is not a valid instance of ElementInternals."
  1021. );
  1022. }
  1023. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1024. try {
  1025. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-orientation");
  1026. } finally {
  1027. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1028. }
  1029. }
  1030. set ariaOrientation(V) {
  1031. const esValue = this !== null && this !== undefined ? this : globalObject;
  1032. if (!exports.is(esValue)) {
  1033. throw new globalObject.TypeError(
  1034. "'set ariaOrientation' called on an object that is not a valid instance of ElementInternals."
  1035. );
  1036. }
  1037. if (V === null || V === undefined) {
  1038. V = null;
  1039. } else {
  1040. V = conversions["DOMString"](V, {
  1041. context: "Failed to set the 'ariaOrientation' property on 'ElementInternals': The provided value",
  1042. globals: globalObject
  1043. });
  1044. }
  1045. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1046. try {
  1047. if (V === null) {
  1048. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-orientation");
  1049. } else {
  1050. esValue[implSymbol]._reflectSetTheContentAttribute("aria-orientation", V);
  1051. }
  1052. } finally {
  1053. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1054. }
  1055. }
  1056. get ariaPlaceholder() {
  1057. const esValue = this !== null && this !== undefined ? this : globalObject;
  1058. if (!exports.is(esValue)) {
  1059. throw new globalObject.TypeError(
  1060. "'get ariaPlaceholder' called on an object that is not a valid instance of ElementInternals."
  1061. );
  1062. }
  1063. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1064. try {
  1065. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-placeholder");
  1066. } finally {
  1067. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1068. }
  1069. }
  1070. set ariaPlaceholder(V) {
  1071. const esValue = this !== null && this !== undefined ? this : globalObject;
  1072. if (!exports.is(esValue)) {
  1073. throw new globalObject.TypeError(
  1074. "'set ariaPlaceholder' called on an object that is not a valid instance of ElementInternals."
  1075. );
  1076. }
  1077. if (V === null || V === undefined) {
  1078. V = null;
  1079. } else {
  1080. V = conversions["DOMString"](V, {
  1081. context: "Failed to set the 'ariaPlaceholder' property on 'ElementInternals': The provided value",
  1082. globals: globalObject
  1083. });
  1084. }
  1085. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1086. try {
  1087. if (V === null) {
  1088. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-placeholder");
  1089. } else {
  1090. esValue[implSymbol]._reflectSetTheContentAttribute("aria-placeholder", V);
  1091. }
  1092. } finally {
  1093. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1094. }
  1095. }
  1096. get ariaPosInSet() {
  1097. const esValue = this !== null && this !== undefined ? this : globalObject;
  1098. if (!exports.is(esValue)) {
  1099. throw new globalObject.TypeError(
  1100. "'get ariaPosInSet' called on an object that is not a valid instance of ElementInternals."
  1101. );
  1102. }
  1103. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1104. try {
  1105. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-posinset");
  1106. } finally {
  1107. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1108. }
  1109. }
  1110. set ariaPosInSet(V) {
  1111. const esValue = this !== null && this !== undefined ? this : globalObject;
  1112. if (!exports.is(esValue)) {
  1113. throw new globalObject.TypeError(
  1114. "'set ariaPosInSet' called on an object that is not a valid instance of ElementInternals."
  1115. );
  1116. }
  1117. if (V === null || V === undefined) {
  1118. V = null;
  1119. } else {
  1120. V = conversions["DOMString"](V, {
  1121. context: "Failed to set the 'ariaPosInSet' property on 'ElementInternals': The provided value",
  1122. globals: globalObject
  1123. });
  1124. }
  1125. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1126. try {
  1127. if (V === null) {
  1128. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-posinset");
  1129. } else {
  1130. esValue[implSymbol]._reflectSetTheContentAttribute("aria-posinset", V);
  1131. }
  1132. } finally {
  1133. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1134. }
  1135. }
  1136. get ariaPressed() {
  1137. const esValue = this !== null && this !== undefined ? this : globalObject;
  1138. if (!exports.is(esValue)) {
  1139. throw new globalObject.TypeError(
  1140. "'get ariaPressed' called on an object that is not a valid instance of ElementInternals."
  1141. );
  1142. }
  1143. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1144. try {
  1145. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-pressed");
  1146. } finally {
  1147. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1148. }
  1149. }
  1150. set ariaPressed(V) {
  1151. const esValue = this !== null && this !== undefined ? this : globalObject;
  1152. if (!exports.is(esValue)) {
  1153. throw new globalObject.TypeError(
  1154. "'set ariaPressed' called on an object that is not a valid instance of ElementInternals."
  1155. );
  1156. }
  1157. if (V === null || V === undefined) {
  1158. V = null;
  1159. } else {
  1160. V = conversions["DOMString"](V, {
  1161. context: "Failed to set the 'ariaPressed' property on 'ElementInternals': The provided value",
  1162. globals: globalObject
  1163. });
  1164. }
  1165. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1166. try {
  1167. if (V === null) {
  1168. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-pressed");
  1169. } else {
  1170. esValue[implSymbol]._reflectSetTheContentAttribute("aria-pressed", V);
  1171. }
  1172. } finally {
  1173. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1174. }
  1175. }
  1176. get ariaReadOnly() {
  1177. const esValue = this !== null && this !== undefined ? this : globalObject;
  1178. if (!exports.is(esValue)) {
  1179. throw new globalObject.TypeError(
  1180. "'get ariaReadOnly' called on an object that is not a valid instance of ElementInternals."
  1181. );
  1182. }
  1183. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1184. try {
  1185. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-readonly");
  1186. } finally {
  1187. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1188. }
  1189. }
  1190. set ariaReadOnly(V) {
  1191. const esValue = this !== null && this !== undefined ? this : globalObject;
  1192. if (!exports.is(esValue)) {
  1193. throw new globalObject.TypeError(
  1194. "'set ariaReadOnly' called on an object that is not a valid instance of ElementInternals."
  1195. );
  1196. }
  1197. if (V === null || V === undefined) {
  1198. V = null;
  1199. } else {
  1200. V = conversions["DOMString"](V, {
  1201. context: "Failed to set the 'ariaReadOnly' property on 'ElementInternals': The provided value",
  1202. globals: globalObject
  1203. });
  1204. }
  1205. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1206. try {
  1207. if (V === null) {
  1208. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-readonly");
  1209. } else {
  1210. esValue[implSymbol]._reflectSetTheContentAttribute("aria-readonly", V);
  1211. }
  1212. } finally {
  1213. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1214. }
  1215. }
  1216. get ariaRequired() {
  1217. const esValue = this !== null && this !== undefined ? this : globalObject;
  1218. if (!exports.is(esValue)) {
  1219. throw new globalObject.TypeError(
  1220. "'get ariaRequired' called on an object that is not a valid instance of ElementInternals."
  1221. );
  1222. }
  1223. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1224. try {
  1225. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-required");
  1226. } finally {
  1227. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1228. }
  1229. }
  1230. set ariaRequired(V) {
  1231. const esValue = this !== null && this !== undefined ? this : globalObject;
  1232. if (!exports.is(esValue)) {
  1233. throw new globalObject.TypeError(
  1234. "'set ariaRequired' called on an object that is not a valid instance of ElementInternals."
  1235. );
  1236. }
  1237. if (V === null || V === undefined) {
  1238. V = null;
  1239. } else {
  1240. V = conversions["DOMString"](V, {
  1241. context: "Failed to set the 'ariaRequired' property on 'ElementInternals': The provided value",
  1242. globals: globalObject
  1243. });
  1244. }
  1245. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1246. try {
  1247. if (V === null) {
  1248. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-required");
  1249. } else {
  1250. esValue[implSymbol]._reflectSetTheContentAttribute("aria-required", V);
  1251. }
  1252. } finally {
  1253. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1254. }
  1255. }
  1256. get ariaRoleDescription() {
  1257. const esValue = this !== null && this !== undefined ? this : globalObject;
  1258. if (!exports.is(esValue)) {
  1259. throw new globalObject.TypeError(
  1260. "'get ariaRoleDescription' called on an object that is not a valid instance of ElementInternals."
  1261. );
  1262. }
  1263. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1264. try {
  1265. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-roledescription");
  1266. } finally {
  1267. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1268. }
  1269. }
  1270. set ariaRoleDescription(V) {
  1271. const esValue = this !== null && this !== undefined ? this : globalObject;
  1272. if (!exports.is(esValue)) {
  1273. throw new globalObject.TypeError(
  1274. "'set ariaRoleDescription' called on an object that is not a valid instance of ElementInternals."
  1275. );
  1276. }
  1277. if (V === null || V === undefined) {
  1278. V = null;
  1279. } else {
  1280. V = conversions["DOMString"](V, {
  1281. context: "Failed to set the 'ariaRoleDescription' property on 'ElementInternals': The provided value",
  1282. globals: globalObject
  1283. });
  1284. }
  1285. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1286. try {
  1287. if (V === null) {
  1288. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-roledescription");
  1289. } else {
  1290. esValue[implSymbol]._reflectSetTheContentAttribute("aria-roledescription", V);
  1291. }
  1292. } finally {
  1293. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1294. }
  1295. }
  1296. get ariaRowCount() {
  1297. const esValue = this !== null && this !== undefined ? this : globalObject;
  1298. if (!exports.is(esValue)) {
  1299. throw new globalObject.TypeError(
  1300. "'get ariaRowCount' called on an object that is not a valid instance of ElementInternals."
  1301. );
  1302. }
  1303. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1304. try {
  1305. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowcount");
  1306. } finally {
  1307. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1308. }
  1309. }
  1310. set ariaRowCount(V) {
  1311. const esValue = this !== null && this !== undefined ? this : globalObject;
  1312. if (!exports.is(esValue)) {
  1313. throw new globalObject.TypeError(
  1314. "'set ariaRowCount' called on an object that is not a valid instance of ElementInternals."
  1315. );
  1316. }
  1317. if (V === null || V === undefined) {
  1318. V = null;
  1319. } else {
  1320. V = conversions["DOMString"](V, {
  1321. context: "Failed to set the 'ariaRowCount' property on 'ElementInternals': The provided value",
  1322. globals: globalObject
  1323. });
  1324. }
  1325. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1326. try {
  1327. if (V === null) {
  1328. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowcount");
  1329. } else {
  1330. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowcount", V);
  1331. }
  1332. } finally {
  1333. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1334. }
  1335. }
  1336. get ariaRowIndex() {
  1337. const esValue = this !== null && this !== undefined ? this : globalObject;
  1338. if (!exports.is(esValue)) {
  1339. throw new globalObject.TypeError(
  1340. "'get ariaRowIndex' called on an object that is not a valid instance of ElementInternals."
  1341. );
  1342. }
  1343. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1344. try {
  1345. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowindex");
  1346. } finally {
  1347. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1348. }
  1349. }
  1350. set ariaRowIndex(V) {
  1351. const esValue = this !== null && this !== undefined ? this : globalObject;
  1352. if (!exports.is(esValue)) {
  1353. throw new globalObject.TypeError(
  1354. "'set ariaRowIndex' called on an object that is not a valid instance of ElementInternals."
  1355. );
  1356. }
  1357. if (V === null || V === undefined) {
  1358. V = null;
  1359. } else {
  1360. V = conversions["DOMString"](V, {
  1361. context: "Failed to set the 'ariaRowIndex' property on 'ElementInternals': The provided value",
  1362. globals: globalObject
  1363. });
  1364. }
  1365. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1366. try {
  1367. if (V === null) {
  1368. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowindex");
  1369. } else {
  1370. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowindex", V);
  1371. }
  1372. } finally {
  1373. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1374. }
  1375. }
  1376. get ariaRowIndexText() {
  1377. const esValue = this !== null && this !== undefined ? this : globalObject;
  1378. if (!exports.is(esValue)) {
  1379. throw new globalObject.TypeError(
  1380. "'get ariaRowIndexText' called on an object that is not a valid instance of ElementInternals."
  1381. );
  1382. }
  1383. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1384. try {
  1385. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowindextext");
  1386. } finally {
  1387. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1388. }
  1389. }
  1390. set ariaRowIndexText(V) {
  1391. const esValue = this !== null && this !== undefined ? this : globalObject;
  1392. if (!exports.is(esValue)) {
  1393. throw new globalObject.TypeError(
  1394. "'set ariaRowIndexText' called on an object that is not a valid instance of ElementInternals."
  1395. );
  1396. }
  1397. if (V === null || V === undefined) {
  1398. V = null;
  1399. } else {
  1400. V = conversions["DOMString"](V, {
  1401. context: "Failed to set the 'ariaRowIndexText' property on 'ElementInternals': The provided value",
  1402. globals: globalObject
  1403. });
  1404. }
  1405. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1406. try {
  1407. if (V === null) {
  1408. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowindextext");
  1409. } else {
  1410. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowindextext", V);
  1411. }
  1412. } finally {
  1413. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1414. }
  1415. }
  1416. get ariaRowSpan() {
  1417. const esValue = this !== null && this !== undefined ? this : globalObject;
  1418. if (!exports.is(esValue)) {
  1419. throw new globalObject.TypeError(
  1420. "'get ariaRowSpan' called on an object that is not a valid instance of ElementInternals."
  1421. );
  1422. }
  1423. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1424. try {
  1425. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-rowspan");
  1426. } finally {
  1427. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1428. }
  1429. }
  1430. set ariaRowSpan(V) {
  1431. const esValue = this !== null && this !== undefined ? this : globalObject;
  1432. if (!exports.is(esValue)) {
  1433. throw new globalObject.TypeError(
  1434. "'set ariaRowSpan' called on an object that is not a valid instance of ElementInternals."
  1435. );
  1436. }
  1437. if (V === null || V === undefined) {
  1438. V = null;
  1439. } else {
  1440. V = conversions["DOMString"](V, {
  1441. context: "Failed to set the 'ariaRowSpan' property on 'ElementInternals': The provided value",
  1442. globals: globalObject
  1443. });
  1444. }
  1445. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1446. try {
  1447. if (V === null) {
  1448. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-rowspan");
  1449. } else {
  1450. esValue[implSymbol]._reflectSetTheContentAttribute("aria-rowspan", V);
  1451. }
  1452. } finally {
  1453. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1454. }
  1455. }
  1456. get ariaSelected() {
  1457. const esValue = this !== null && this !== undefined ? this : globalObject;
  1458. if (!exports.is(esValue)) {
  1459. throw new globalObject.TypeError(
  1460. "'get ariaSelected' called on an object that is not a valid instance of ElementInternals."
  1461. );
  1462. }
  1463. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1464. try {
  1465. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-selected");
  1466. } finally {
  1467. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1468. }
  1469. }
  1470. set ariaSelected(V) {
  1471. const esValue = this !== null && this !== undefined ? this : globalObject;
  1472. if (!exports.is(esValue)) {
  1473. throw new globalObject.TypeError(
  1474. "'set ariaSelected' called on an object that is not a valid instance of ElementInternals."
  1475. );
  1476. }
  1477. if (V === null || V === undefined) {
  1478. V = null;
  1479. } else {
  1480. V = conversions["DOMString"](V, {
  1481. context: "Failed to set the 'ariaSelected' property on 'ElementInternals': The provided value",
  1482. globals: globalObject
  1483. });
  1484. }
  1485. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1486. try {
  1487. if (V === null) {
  1488. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-selected");
  1489. } else {
  1490. esValue[implSymbol]._reflectSetTheContentAttribute("aria-selected", V);
  1491. }
  1492. } finally {
  1493. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1494. }
  1495. }
  1496. get ariaSetSize() {
  1497. const esValue = this !== null && this !== undefined ? this : globalObject;
  1498. if (!exports.is(esValue)) {
  1499. throw new globalObject.TypeError(
  1500. "'get ariaSetSize' called on an object that is not a valid instance of ElementInternals."
  1501. );
  1502. }
  1503. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1504. try {
  1505. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-setsize");
  1506. } finally {
  1507. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1508. }
  1509. }
  1510. set ariaSetSize(V) {
  1511. const esValue = this !== null && this !== undefined ? this : globalObject;
  1512. if (!exports.is(esValue)) {
  1513. throw new globalObject.TypeError(
  1514. "'set ariaSetSize' called on an object that is not a valid instance of ElementInternals."
  1515. );
  1516. }
  1517. if (V === null || V === undefined) {
  1518. V = null;
  1519. } else {
  1520. V = conversions["DOMString"](V, {
  1521. context: "Failed to set the 'ariaSetSize' property on 'ElementInternals': The provided value",
  1522. globals: globalObject
  1523. });
  1524. }
  1525. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1526. try {
  1527. if (V === null) {
  1528. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-setsize");
  1529. } else {
  1530. esValue[implSymbol]._reflectSetTheContentAttribute("aria-setsize", V);
  1531. }
  1532. } finally {
  1533. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1534. }
  1535. }
  1536. get ariaSort() {
  1537. const esValue = this !== null && this !== undefined ? this : globalObject;
  1538. if (!exports.is(esValue)) {
  1539. throw new globalObject.TypeError(
  1540. "'get ariaSort' called on an object that is not a valid instance of ElementInternals."
  1541. );
  1542. }
  1543. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1544. try {
  1545. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-sort");
  1546. } finally {
  1547. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1548. }
  1549. }
  1550. set ariaSort(V) {
  1551. const esValue = this !== null && this !== undefined ? this : globalObject;
  1552. if (!exports.is(esValue)) {
  1553. throw new globalObject.TypeError(
  1554. "'set ariaSort' called on an object that is not a valid instance of ElementInternals."
  1555. );
  1556. }
  1557. if (V === null || V === undefined) {
  1558. V = null;
  1559. } else {
  1560. V = conversions["DOMString"](V, {
  1561. context: "Failed to set the 'ariaSort' property on 'ElementInternals': The provided value",
  1562. globals: globalObject
  1563. });
  1564. }
  1565. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1566. try {
  1567. if (V === null) {
  1568. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-sort");
  1569. } else {
  1570. esValue[implSymbol]._reflectSetTheContentAttribute("aria-sort", V);
  1571. }
  1572. } finally {
  1573. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1574. }
  1575. }
  1576. get ariaValueMax() {
  1577. const esValue = this !== null && this !== undefined ? this : globalObject;
  1578. if (!exports.is(esValue)) {
  1579. throw new globalObject.TypeError(
  1580. "'get ariaValueMax' called on an object that is not a valid instance of ElementInternals."
  1581. );
  1582. }
  1583. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1584. try {
  1585. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuemax");
  1586. } finally {
  1587. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1588. }
  1589. }
  1590. set ariaValueMax(V) {
  1591. const esValue = this !== null && this !== undefined ? this : globalObject;
  1592. if (!exports.is(esValue)) {
  1593. throw new globalObject.TypeError(
  1594. "'set ariaValueMax' called on an object that is not a valid instance of ElementInternals."
  1595. );
  1596. }
  1597. if (V === null || V === undefined) {
  1598. V = null;
  1599. } else {
  1600. V = conversions["DOMString"](V, {
  1601. context: "Failed to set the 'ariaValueMax' property on 'ElementInternals': The provided value",
  1602. globals: globalObject
  1603. });
  1604. }
  1605. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1606. try {
  1607. if (V === null) {
  1608. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuemax");
  1609. } else {
  1610. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuemax", V);
  1611. }
  1612. } finally {
  1613. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1614. }
  1615. }
  1616. get ariaValueMin() {
  1617. const esValue = this !== null && this !== undefined ? this : globalObject;
  1618. if (!exports.is(esValue)) {
  1619. throw new globalObject.TypeError(
  1620. "'get ariaValueMin' called on an object that is not a valid instance of ElementInternals."
  1621. );
  1622. }
  1623. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1624. try {
  1625. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuemin");
  1626. } finally {
  1627. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1628. }
  1629. }
  1630. set ariaValueMin(V) {
  1631. const esValue = this !== null && this !== undefined ? this : globalObject;
  1632. if (!exports.is(esValue)) {
  1633. throw new globalObject.TypeError(
  1634. "'set ariaValueMin' called on an object that is not a valid instance of ElementInternals."
  1635. );
  1636. }
  1637. if (V === null || V === undefined) {
  1638. V = null;
  1639. } else {
  1640. V = conversions["DOMString"](V, {
  1641. context: "Failed to set the 'ariaValueMin' property on 'ElementInternals': The provided value",
  1642. globals: globalObject
  1643. });
  1644. }
  1645. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1646. try {
  1647. if (V === null) {
  1648. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuemin");
  1649. } else {
  1650. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuemin", V);
  1651. }
  1652. } finally {
  1653. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1654. }
  1655. }
  1656. get ariaValueNow() {
  1657. const esValue = this !== null && this !== undefined ? this : globalObject;
  1658. if (!exports.is(esValue)) {
  1659. throw new globalObject.TypeError(
  1660. "'get ariaValueNow' called on an object that is not a valid instance of ElementInternals."
  1661. );
  1662. }
  1663. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1664. try {
  1665. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuenow");
  1666. } finally {
  1667. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1668. }
  1669. }
  1670. set ariaValueNow(V) {
  1671. const esValue = this !== null && this !== undefined ? this : globalObject;
  1672. if (!exports.is(esValue)) {
  1673. throw new globalObject.TypeError(
  1674. "'set ariaValueNow' called on an object that is not a valid instance of ElementInternals."
  1675. );
  1676. }
  1677. if (V === null || V === undefined) {
  1678. V = null;
  1679. } else {
  1680. V = conversions["DOMString"](V, {
  1681. context: "Failed to set the 'ariaValueNow' property on 'ElementInternals': The provided value",
  1682. globals: globalObject
  1683. });
  1684. }
  1685. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1686. try {
  1687. if (V === null) {
  1688. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuenow");
  1689. } else {
  1690. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuenow", V);
  1691. }
  1692. } finally {
  1693. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1694. }
  1695. }
  1696. get ariaValueText() {
  1697. const esValue = this !== null && this !== undefined ? this : globalObject;
  1698. if (!exports.is(esValue)) {
  1699. throw new globalObject.TypeError(
  1700. "'get ariaValueText' called on an object that is not a valid instance of ElementInternals."
  1701. );
  1702. }
  1703. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1704. try {
  1705. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-valuetext");
  1706. } finally {
  1707. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1708. }
  1709. }
  1710. set ariaValueText(V) {
  1711. const esValue = this !== null && this !== undefined ? this : globalObject;
  1712. if (!exports.is(esValue)) {
  1713. throw new globalObject.TypeError(
  1714. "'set ariaValueText' called on an object that is not a valid instance of ElementInternals."
  1715. );
  1716. }
  1717. if (V === null || V === undefined) {
  1718. V = null;
  1719. } else {
  1720. V = conversions["DOMString"](V, {
  1721. context: "Failed to set the 'ariaValueText' property on 'ElementInternals': The provided value",
  1722. globals: globalObject
  1723. });
  1724. }
  1725. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1726. try {
  1727. if (V === null) {
  1728. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-valuetext");
  1729. } else {
  1730. esValue[implSymbol]._reflectSetTheContentAttribute("aria-valuetext", V);
  1731. }
  1732. } finally {
  1733. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1734. }
  1735. }
  1736. get ariaRelevant() {
  1737. const esValue = this !== null && this !== undefined ? this : globalObject;
  1738. if (!exports.is(esValue)) {
  1739. throw new globalObject.TypeError(
  1740. "'get ariaRelevant' called on an object that is not a valid instance of ElementInternals."
  1741. );
  1742. }
  1743. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1744. try {
  1745. return esValue[implSymbol]._reflectGetTheContentAttribute("aria-relevant");
  1746. } finally {
  1747. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1748. }
  1749. }
  1750. set ariaRelevant(V) {
  1751. const esValue = this !== null && this !== undefined ? this : globalObject;
  1752. if (!exports.is(esValue)) {
  1753. throw new globalObject.TypeError(
  1754. "'set ariaRelevant' called on an object that is not a valid instance of ElementInternals."
  1755. );
  1756. }
  1757. if (V === null || V === undefined) {
  1758. V = null;
  1759. } else {
  1760. V = conversions["DOMString"](V, {
  1761. context: "Failed to set the 'ariaRelevant' property on 'ElementInternals': The provided value",
  1762. globals: globalObject
  1763. });
  1764. }
  1765. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  1766. try {
  1767. if (V === null) {
  1768. esValue[implSymbol]._reflectDeleteTheContentAttribute("aria-relevant");
  1769. } else {
  1770. esValue[implSymbol]._reflectSetTheContentAttribute("aria-relevant", V);
  1771. }
  1772. } finally {
  1773. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  1774. }
  1775. }
  1776. }
  1777. Object.defineProperties(ElementInternals.prototype, {
  1778. shadowRoot: { enumerable: true },
  1779. labels: { enumerable: true },
  1780. role: { enumerable: true },
  1781. ariaAtomic: { enumerable: true },
  1782. ariaAutoComplete: { enumerable: true },
  1783. ariaBusy: { enumerable: true },
  1784. ariaChecked: { enumerable: true },
  1785. ariaColCount: { enumerable: true },
  1786. ariaColIndex: { enumerable: true },
  1787. ariaColIndexText: { enumerable: true },
  1788. ariaColSpan: { enumerable: true },
  1789. ariaCurrent: { enumerable: true },
  1790. ariaDescription: { enumerable: true },
  1791. ariaDisabled: { enumerable: true },
  1792. ariaExpanded: { enumerable: true },
  1793. ariaHasPopup: { enumerable: true },
  1794. ariaHidden: { enumerable: true },
  1795. ariaInvalid: { enumerable: true },
  1796. ariaKeyShortcuts: { enumerable: true },
  1797. ariaLabel: { enumerable: true },
  1798. ariaLevel: { enumerable: true },
  1799. ariaLive: { enumerable: true },
  1800. ariaModal: { enumerable: true },
  1801. ariaMultiLine: { enumerable: true },
  1802. ariaMultiSelectable: { enumerable: true },
  1803. ariaOrientation: { enumerable: true },
  1804. ariaPlaceholder: { enumerable: true },
  1805. ariaPosInSet: { enumerable: true },
  1806. ariaPressed: { enumerable: true },
  1807. ariaReadOnly: { enumerable: true },
  1808. ariaRequired: { enumerable: true },
  1809. ariaRoleDescription: { enumerable: true },
  1810. ariaRowCount: { enumerable: true },
  1811. ariaRowIndex: { enumerable: true },
  1812. ariaRowIndexText: { enumerable: true },
  1813. ariaRowSpan: { enumerable: true },
  1814. ariaSelected: { enumerable: true },
  1815. ariaSetSize: { enumerable: true },
  1816. ariaSort: { enumerable: true },
  1817. ariaValueMax: { enumerable: true },
  1818. ariaValueMin: { enumerable: true },
  1819. ariaValueNow: { enumerable: true },
  1820. ariaValueText: { enumerable: true },
  1821. ariaRelevant: { enumerable: true },
  1822. [Symbol.toStringTag]: { value: "ElementInternals", configurable: true }
  1823. });
  1824. ctorRegistry[interfaceName] = ElementInternals;
  1825. Object.defineProperty(globalObject, interfaceName, {
  1826. configurable: true,
  1827. writable: true,
  1828. value: ElementInternals
  1829. });
  1830. };
  1831. const Impl = require("../../jsdom/living/custom-elements/ElementInternals-impl.js");