| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492 |
- "use strict";
- const conversions = require("webidl-conversions");
- const utils = require("./utils.js");
- const HTMLConstructor_jsdom_living_helpers_html_constructor =
- require("../../jsdom/living/helpers/html-constructor.js").HTMLConstructor;
- const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
- require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
- const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
- require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
- const EventHandlerNonNull = require("./EventHandlerNonNull.js");
- const OnErrorEventHandlerNonNull = require("./OnErrorEventHandlerNonNull.js");
- const implSymbol = utils.implSymbol;
- const ctorRegistrySymbol = utils.ctorRegistrySymbol;
- const Element = require("./Element.js");
- const interfaceName = "HTMLElement";
- exports.is = value => {
- return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
- };
- exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
- };
- exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLElement'.`);
- };
- function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLElement"].prototype;
- }
- return Object.create(proto);
- }
- exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
- };
- exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
- };
- exports._internalSetup = (wrapper, globalObject) => {
- Element._internalSetup(wrapper, globalObject);
- };
- exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
- };
- exports.new = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
- };
- const exposed = new Set(["Window"]);
- exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLElement extends globalObject.Element {
- constructor() {
- return HTMLConstructor_jsdom_living_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
- click() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'click' called on an object that is not a valid instance of HTMLElement.");
- }
- return esValue[implSymbol].click();
- }
- attachInternals() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'attachInternals' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].attachInternals());
- }
- focus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'focus' called on an object that is not a valid instance of HTMLElement.");
- }
- return esValue[implSymbol].focus();
- }
- blur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'blur' called on an object that is not a valid instance of HTMLElement.");
- }
- return esValue[implSymbol].blur();
- }
- get title() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get title' called on an object that is not a valid instance of HTMLElement."
- );
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol]._reflectGetTheContentAttribute("title");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set title(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set title' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'title' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]._reflectSetTheContentAttribute("title", V);
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get lang() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get lang' called on an object that is not a valid instance of HTMLElement.");
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol]._reflectGetTheContentAttribute("lang");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set lang(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set lang' called on an object that is not a valid instance of HTMLElement.");
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'lang' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]._reflectSetTheContentAttribute("lang", V);
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get translate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get translate' called on an object that is not a valid instance of HTMLElement."
- );
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["translate"];
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set translate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set translate' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["boolean"](V, {
- context: "Failed to set the 'translate' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["translate"] = V;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get dir() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get dir' called on an object that is not a valid instance of HTMLElement.");
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["dir"];
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set dir(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set dir' called on an object that is not a valid instance of HTMLElement.");
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dir' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["dir"] = V;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get hidden() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hidden' called on an object that is not a valid instance of HTMLElement."
- );
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]._reflectGetTheContentAttribute("hidden") !== null;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set hidden(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hidden' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["boolean"](V, {
- context: "Failed to set the 'hidden' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol]._reflectSetTheContentAttribute("hidden", "");
- } else {
- esValue[implSymbol]._reflectDeleteTheContentAttribute("hidden");
- }
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get accessKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get accessKey' called on an object that is not a valid instance of HTMLElement."
- );
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol]._reflectGetTheContentAttribute("accesskey");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set accessKey(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set accessKey' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'accessKey' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]._reflectSetTheContentAttribute("accesskey", V);
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get draggable() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get draggable' called on an object that is not a valid instance of HTMLElement."
- );
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["draggable"];
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set draggable(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set draggable' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["boolean"](V, {
- context: "Failed to set the 'draggable' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["draggable"] = V;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- get offsetParent() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetParent' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["offsetParent"]);
- }
- get offsetTop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetTop' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return esValue[implSymbol]["offsetTop"];
- }
- get offsetLeft() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetLeft' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return esValue[implSymbol]["offsetLeft"];
- }
- get offsetWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetWidth' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return esValue[implSymbol]["offsetWidth"];
- }
- get offsetHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetHeight' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return esValue[implSymbol]["offsetHeight"];
- }
- get style() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get style' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.getSameObject(this, "style", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
- });
- }
- set style(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set style' called on an object that is not a valid instance of HTMLElement."
- );
- }
- const Q = esValue["style"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'style' is not an object");
- }
- Reflect.set(Q, "cssText", V);
- }
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onabort' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onabort' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
- get onauxclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onauxclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
- }
- set onauxclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onauxclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onauxclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onauxclick"] = V;
- }
- get onbeforeinput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeinput' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeinput"]);
- }
- set onbeforeinput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeinput' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeinput' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeinput"] = V;
- }
- get onbeforematch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforematch' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforematch"]);
- }
- set onbeforematch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforematch' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforematch' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforematch"] = V;
- }
- get onbeforetoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforetoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforetoggle"]);
- }
- set onbeforetoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforetoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforetoggle' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforetoggle"] = V;
- }
- get onblur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onblur' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
- }
- set onblur(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onblur' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onblur' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onblur"] = V;
- }
- get oncancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
- }
- set oncancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncancel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncancel"] = V;
- }
- get oncanplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
- }
- set oncanplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplay' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplay"] = V;
- }
- get oncanplaythrough() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplaythrough' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
- }
- set oncanplaythrough(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplaythrough' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplaythrough' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplaythrough"] = V;
- }
- get onchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
- }
- set onchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onchange"] = V;
- }
- get onclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
- }
- set onclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onclick"] = V;
- }
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclose' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclose' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclose' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
- get oncontextlost() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextlost' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextlost"]);
- }
- set oncontextlost(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextlost' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextlost' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextlost"] = V;
- }
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextmenu' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
- }
- set oncontextmenu(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextmenu' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextmenu' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
- get oncontextrestored() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextrestored' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextrestored"]);
- }
- set oncontextrestored(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextrestored' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextrestored' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextrestored"] = V;
- }
- get oncopy() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncopy' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncopy"]);
- }
- set oncopy(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncopy' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncopy' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncopy"] = V;
- }
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncuechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncuechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncuechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncuechange"] = V;
- }
- get oncut() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncut' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncut"]);
- }
- set oncut(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncut' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncut' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncut"] = V;
- }
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondblclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
- }
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondblclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondblclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondrag' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
- }
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondrag' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrag' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrag"] = V;
- }
- get ondragend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
- }
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragenter' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragenter' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragenter' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragleave' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
- }
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragleave' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragleave' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragleave"] = V;
- }
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragover' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
- }
- set ondragover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragover' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragover' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragover"] = V;
- }
- get ondragstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
- }
- set ondragstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragstart"] = V;
- }
- get ondrop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondrop' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
- }
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondrop' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrop' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondurationchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondurationchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondurationchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
- }
- get onemptied() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onemptied' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
- }
- set onemptied(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onemptied' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onemptied' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
- }
- get onended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onended' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
- }
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onended' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onended' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onerror' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onerror' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
- get onfocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onfocus' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
- }
- set onfocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onfocus' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onfocus' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onfocus"] = V;
- }
- get onformdata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onformdata' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onformdata"]);
- }
- set onformdata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onformdata' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onformdata' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onformdata"] = V;
- }
- get oninput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninput' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
- }
- set oninput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninput' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninput' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oninput"] = V;
- }
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninvalid' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninvalid' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninvalid' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oninvalid"] = V;
- }
- get onkeydown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeydown' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
- }
- set onkeydown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeydown' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeydown' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeydown"] = V;
- }
- get onkeypress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeypress' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
- }
- set onkeypress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeypress' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeypress' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeypress"] = V;
- }
- get onkeyup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeyup' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
- }
- set onkeyup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeyup' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeyup' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeyup"] = V;
- }
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onload' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onload' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onload' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
- get onloadeddata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadeddata' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
- }
- set onloadeddata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadeddata' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadeddata' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadeddata"] = V;
- }
- get onloadedmetadata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadedmetadata' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
- }
- set onloadedmetadata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadedmetadata' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadedmetadata' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadedmetadata"] = V;
- }
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
- get onmousedown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousedown' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
- }
- set onmousedown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousedown' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousedown' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousedown"] = V;
- }
- get onmouseenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- return;
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
- }
- set onmouseenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- return;
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseenter' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseenter"] = V;
- }
- get onmouseleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- return;
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
- }
- set onmouseleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- return;
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseleave' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseleave"] = V;
- }
- get onmousemove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousemove' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
- }
- set onmousemove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousemove' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousemove' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousemove"] = V;
- }
- get onmouseout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseout' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
- }
- set onmouseout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseout' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseout' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseout"] = V;
- }
- get onmouseover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseover' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
- }
- set onmouseover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseover' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseover' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseover"] = V;
- }
- get onmouseup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseup' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
- }
- set onmouseup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseup' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseup' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseup"] = V;
- }
- get onpaste() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpaste' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpaste"]);
- }
- set onpaste(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpaste' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpaste' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpaste"] = V;
- }
- get onpause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpause' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
- }
- set onpause(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpause' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpause' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpause"] = V;
- }
- get onplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
- }
- set onplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplay' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onplay"] = V;
- }
- get onplaying() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplaying' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
- }
- set onplaying(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplaying' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplaying' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onplaying"] = V;
- }
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onprogress' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onprogress' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onprogress' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
- get onratechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onratechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
- }
- set onratechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onratechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onratechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onratechange"] = V;
- }
- get onreset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onreset' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
- }
- set onreset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onreset' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onreset' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onreset"] = V;
- }
- get onresize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onresize' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
- }
- set onresize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onresize' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onresize' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onresize"] = V;
- }
- get onscroll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscroll' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
- }
- set onscroll(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscroll' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscroll' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onscroll"] = V;
- }
- get onscrollend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscrollend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscrollend"]);
- }
- set onscrollend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscrollend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscrollend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onscrollend"] = V;
- }
- get onsecuritypolicyviolation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
- }
- set onsecuritypolicyviolation(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
- }
- get onseeked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeked' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
- }
- set onseeked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeked' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeked' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeked"] = V;
- }
- get onseeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeking' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
- }
- set onseeking(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeking' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeking' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeking"] = V;
- }
- get onselect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onselect' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
- }
- set onselect(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onselect' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onselect' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onselect"] = V;
- }
- get onslotchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onslotchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onslotchange"]);
- }
- set onslotchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onslotchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onslotchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onslotchange"] = V;
- }
- get onstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstalled' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
- }
- set onstalled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstalled' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstalled' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onstalled"] = V;
- }
- get onsubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsubmit' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
- }
- set onsubmit(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsubmit' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsubmit' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onsubmit"] = V;
- }
- get onsuspend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsuspend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
- }
- set onsuspend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsuspend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsuspend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onsuspend"] = V;
- }
- get ontimeupdate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontimeupdate' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
- }
- set ontimeupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontimeupdate' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontimeupdate' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontimeupdate"] = V;
- }
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
- }
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontoggle' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
- }
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onvolumechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
- }
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onvolumechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onvolumechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onvolumechange"] = V;
- }
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwaiting' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
- }
- set onwaiting(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwaiting' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwaiting' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwaiting"] = V;
- }
- get onwebkitanimationend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationend"]);
- }
- set onwebkitanimationend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationend"] = V;
- }
- get onwebkitanimationiteration() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationiteration' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationiteration"]);
- }
- set onwebkitanimationiteration(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationiteration' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationiteration' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationiteration"] = V;
- }
- get onwebkitanimationstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationstart"]);
- }
- set onwebkitanimationstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationstart"] = V;
- }
- get onwebkittransitionend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkittransitionend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkittransitionend"]);
- }
- set onwebkittransitionend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkittransitionend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkittransitionend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkittransitionend"] = V;
- }
- get onwheel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwheel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
- }
- set onwheel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwheel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwheel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwheel"] = V;
- }
- get ontouchstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchstart"]);
- }
- set ontouchstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchstart"] = V;
- }
- get ontouchend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchend"]);
- }
- set ontouchend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchend' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchend"] = V;
- }
- get ontouchmove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchmove' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchmove"]);
- }
- set ontouchmove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchmove' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchmove' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchmove"] = V;
- }
- get ontouchcancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchcancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchcancel"]);
- }
- set ontouchcancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchcancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchcancel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchcancel"] = V;
- }
- get onpointerover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerover' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerover"]);
- }
- set onpointerover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerover' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerover' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerover"] = V;
- }
- get onpointerenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerenter' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerenter"]);
- }
- set onpointerenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerenter' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerenter' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerenter"] = V;
- }
- get onpointerdown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerdown' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerdown"]);
- }
- set onpointerdown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerdown' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerdown' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerdown"] = V;
- }
- get onpointermove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointermove' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointermove"]);
- }
- set onpointermove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointermove' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointermove' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointermove"] = V;
- }
- get onpointerrawupdate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerrawupdate' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerrawupdate"]);
- }
- set onpointerrawupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerrawupdate' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerrawupdate' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerrawupdate"] = V;
- }
- get onpointerup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerup' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerup"]);
- }
- set onpointerup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerup' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerup' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerup"] = V;
- }
- get onpointercancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointercancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointercancel"]);
- }
- set onpointercancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointercancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointercancel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointercancel"] = V;
- }
- get onpointerout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerout' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerout"]);
- }
- set onpointerout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerout' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerout' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerout"] = V;
- }
- get onpointerleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpointerleave' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerleave"]);
- }
- set onpointerleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpointerleave' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpointerleave' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpointerleave"] = V;
- }
- get ongotpointercapture() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ongotpointercapture' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["ongotpointercapture"]);
- }
- set ongotpointercapture(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ongotpointercapture' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ongotpointercapture' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ongotpointercapture"] = V;
- }
- get onlostpointercapture() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onlostpointercapture' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlostpointercapture"]);
- }
- set onlostpointercapture(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onlostpointercapture' called on an object that is not a valid instance of HTMLElement."
- );
- }
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onlostpointercapture' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onlostpointercapture"] = V;
- }
- get dataset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dataset' called on an object that is not a valid instance of HTMLElement."
- );
- }
- return utils.getSameObject(this, "dataset", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
- });
- }
- get nonce() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get nonce' called on an object that is not a valid instance of HTMLElement."
- );
- }
- const value = esValue[implSymbol]._reflectGetTheContentAttribute("nonce");
- return value === null ? "" : value;
- }
- set nonce(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set nonce' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nonce' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- esValue[implSymbol]._reflectSetTheContentAttribute("nonce", V);
- }
- get tabIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tabIndex' called on an object that is not a valid instance of HTMLElement."
- );
- }
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["tabIndex"];
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- set tabIndex(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set tabIndex' called on an object that is not a valid instance of HTMLElement."
- );
- }
- V = conversions["long"](V, {
- context: "Failed to set the 'tabIndex' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
- ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tabIndex"] = V;
- } finally {
- ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLElement.prototype, {
- click: { enumerable: true },
- attachInternals: { enumerable: true },
- focus: { enumerable: true },
- blur: { enumerable: true },
- title: { enumerable: true },
- lang: { enumerable: true },
- translate: { enumerable: true },
- dir: { enumerable: true },
- hidden: { enumerable: true },
- accessKey: { enumerable: true },
- draggable: { enumerable: true },
- offsetParent: { enumerable: true },
- offsetTop: { enumerable: true },
- offsetLeft: { enumerable: true },
- offsetWidth: { enumerable: true },
- offsetHeight: { enumerable: true },
- style: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onbeforeinput: { enumerable: true },
- onbeforematch: { enumerable: true },
- onbeforetoggle: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextlost: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncontextrestored: { enumerable: true },
- oncopy: { enumerable: true },
- oncuechange: { enumerable: true },
- oncut: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- onformdata: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onpaste: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onscrollend: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onslotchange: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- onwebkitanimationend: { enumerable: true },
- onwebkitanimationiteration: { enumerable: true },
- onwebkitanimationstart: { enumerable: true },
- onwebkittransitionend: { enumerable: true },
- onwheel: { enumerable: true },
- ontouchstart: { enumerable: true },
- ontouchend: { enumerable: true },
- ontouchmove: { enumerable: true },
- ontouchcancel: { enumerable: true },
- onpointerover: { enumerable: true },
- onpointerenter: { enumerable: true },
- onpointerdown: { enumerable: true },
- onpointermove: { enumerable: true },
- onpointerrawupdate: { enumerable: true },
- onpointerup: { enumerable: true },
- onpointercancel: { enumerable: true },
- onpointerout: { enumerable: true },
- onpointerleave: { enumerable: true },
- ongotpointercapture: { enumerable: true },
- onlostpointercapture: { enumerable: true },
- dataset: { enumerable: true },
- nonce: { enumerable: true },
- tabIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLElement;
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLElement
- });
- };
- const Impl = require("../../jsdom/living/nodes/HTMLElement-impl.js");
|