HTMLInputElement.js 64 KB

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