marko 5.31.10 → 5.31.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,10 @@ module.exports = function defineRenderer(renderingLogic) {
20
20
  template = req(template);
21
21
  }
22
22
 
23
+ if (template && template.default) {
24
+ template = template.default;
25
+ }
26
+
23
27
  if (!renderer) {
24
28
  var getInitialProps;
25
29
  var getTemplateData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.31.10",
3
+ "version": "5.31.12",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -64,7 +64,7 @@
64
64
  "build": "babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production"
65
65
  },
66
66
  "dependencies": {
67
- "@marko/compiler": "^5.33.2",
67
+ "@marko/compiler": "^5.33.3",
68
68
  "@marko/translator-default": "^5.31.3",
69
69
  "app-module-path": "^2.2.0",
70
70
  "argly": "^1.2.0",
@@ -20,6 +20,10 @@ module.exports = function defineRenderer(renderingLogic) {
20
20
  template = req(template);
21
21
  }
22
22
 
23
+ if (template && template.default) {
24
+ template = template.default;
25
+ }
26
+
23
27
  if (!renderer) {
24
28
  var getInitialProps;
25
29
  var getTemplateData;
package/tags-html.d.ts CHANGED
@@ -125,7 +125,9 @@ declare global {
125
125
  }
126
126
 
127
127
  namespace CSS {
128
- export interface Properties extends csstype.PropertiesHyphen {}
128
+ export interface Properties
129
+ extends csstype.PropertiesHyphen,
130
+ csstype.Properties {}
129
131
  }
130
132
 
131
133
  namespace HTML {
@@ -382,36 +384,36 @@ declare global {
382
384
  * Fires after printing the document.
383
385
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-afterprint
384
386
  */
385
- onAfterPrint?: AttrEventHandler<Event, HTMLBodyElement>;
386
- "on-afterprint"?: this["onAfterPrint"];
387
+ onAfterprint?: AttrEventHandler<Event, HTMLBodyElement>;
388
+ "on-afterprint"?: this["onAfterprint"];
387
389
 
388
390
  /**
389
391
  * Fires before printing the document.
390
392
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforeprint
391
393
  */
392
- onBeforePrint?: AttrEventHandler<Event, HTMLBodyElement>;
393
- "on-beforeprint"?: this["onBeforePrint"];
394
+ onBeforeprint?: AttrEventHandler<Event, HTMLBodyElement>;
395
+ "on-beforeprint"?: this["onBeforeprint"];
394
396
 
395
397
  /**
396
398
  * Fired when the page is about to be unloaded, in case the page would like to show a warning prompt.
397
399
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforeunload
398
400
  */
399
- onBeforeUnload?: AttrEventHandler<BeforeUnloadEvent, HTMLBodyElement>;
400
- "on-beforeunload"?: this["onBeforeUnload"];
401
+ onBeforeunload?: AttrEventHandler<BeforeUnloadEvent, HTMLBodyElement>;
402
+ "on-beforeunload"?: this["onBeforeunload"];
401
403
 
402
404
  /**
403
405
  * Fired when the fragment part of the document's URL changes.
404
406
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-hashchange
405
407
  */
406
- onHashChange?: AttrEventHandler<HashChangeEvent, HTMLBodyElement>;
407
- "on-hashchange"?: this["onHashChange"];
408
+ onHashchange?: AttrEventHandler<HashChangeEvent, HTMLBodyElement>;
409
+ "on-hashchange"?: this["onHashchange"];
408
410
 
409
411
  /**
410
412
  * Fired when the user's preferred languages change.
411
413
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-languagechange
412
414
  */
413
- onLanguageChange?: AttrEventHandler<Event, HTMLBodyElement>;
414
- "on-languagechange"?: this["onLanguageChange"];
415
+ onLanguagechange?: AttrEventHandler<Event, HTMLBodyElement>;
416
+ "on-languagechange"?: this["onLanguagechange"];
415
417
 
416
418
  /**
417
419
  * Fired when the window receives a message.
@@ -424,8 +426,8 @@ declare global {
424
426
  * Fired when the window receives an error message.
425
427
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-messageerror
426
428
  */
427
- onMessageError?: AttrEventHandler<MessageEvent, HTMLBodyElement>;
428
- "on-messageerror"?: this["onMessageError"];
429
+ onMessageerror?: AttrEventHandler<MessageEvent, HTMLBodyElement>;
430
+ "on-messageerror"?: this["onMessageerror"];
429
431
 
430
432
  /**
431
433
  * Fired when the network connection is lost.
@@ -445,29 +447,29 @@ declare global {
445
447
  * Fired when the page's session history entry stops being the active entry.
446
448
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-pagehide
447
449
  */
448
- onPageHide?: AttrEventHandler<PageTransitionEvent, HTMLBodyElement>;
449
- "on-pagehide"?: this["onPageHide"];
450
+ onPagehide?: AttrEventHandler<PageTransitionEvent, HTMLBodyElement>;
451
+ "on-pagehide"?: this["onPagehide"];
450
452
 
451
453
  /**
452
454
  * Fired when the page's session history entry becomes the active entry.
453
455
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-pageshow
454
456
  */
455
- onPageShow?: AttrEventHandler<PageTransitionEvent, HTMLBodyElement>;
456
- "on-pageshow"?: this["onPageShow"];
457
+ onPageshow?: AttrEventHandler<PageTransitionEvent, HTMLBodyElement>;
458
+ "on-pageshow"?: this["onPageshow"];
457
459
 
458
460
  /**
459
461
  * Fired when the window's session history is popped.
460
462
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-popstate
461
463
  */
462
- onPopState?: AttrEventHandler<PopStateEvent, HTMLBodyElement>;
463
- "on-popstate"?: this["onPopState"];
464
+ onPopstate?: AttrEventHandler<PopStateEvent, HTMLBodyElement>;
465
+ "on-popstate"?: this["onPopstate"];
464
466
 
465
467
  /**
466
468
  * Fires when a previously-unhandled promise rejection becomes handled.
467
469
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-rejectionhandled
468
470
  */
469
- onRejectionHandled?: AttrEventHandler<Event, HTMLBodyElement>;
470
- "on-rejectionhandled"?: this["onRejectionHandled"];
471
+ onRejectionhandled?: AttrEventHandler<Event, HTMLBodyElement>;
472
+ "on-rejectionhandled"?: this["onRejectionhandled"];
471
473
 
472
474
  /**
473
475
  * Fired when the corresponding localStorage or sessionStorage storage areas change.
@@ -832,8 +834,8 @@ declare global {
832
834
  * Fired at a form element when it is constructing the entry list
833
835
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-formdata
834
836
  */
835
- onFormData?: AttrEventHandler<FormDataEvent, HTMLFormElement>;
836
- "on-formdata"?: this["onFormData"];
837
+ onFormdata?: AttrEventHandler<FormDataEvent, HTMLFormElement>;
838
+ "on-formdata"?: this["onFormdata"];
837
839
 
838
840
  /**
839
841
  * Fired when a form is submitted, either by user interaction or through a script.
@@ -2575,61 +2577,61 @@ declare global {
2575
2577
  * Fired when an Animation unexpectedly aborts.
2576
2578
  * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationcancel
2577
2579
  */
2578
- onAnimationCancel?: AttrEventHandler<AnimationEvent, T>;
2579
- "on-animationcancel"?: this["onAnimationCancel"];
2580
+ onAnimationcancel?: AttrEventHandler<AnimationEvent, T>;
2581
+ "on-animationcancel"?: this["onAnimationcancel"];
2580
2582
 
2581
2583
  /**
2582
2584
  * Fired when an animation has completed.
2583
2585
  * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationend
2584
2586
  */
2585
- onAnimationEnd?: AttrEventHandler<AnimationEvent, T>;
2586
- "on-animationend"?: this["onAnimationEnd"];
2587
+ onAnimationend?: AttrEventHandler<AnimationEvent, T>;
2588
+ "on-animationend"?: this["onAnimationend"];
2587
2589
 
2588
2590
  /**
2589
2591
  * Fired at the end of each iteration of an animation, except when an animationend event would fire at the same time.
2590
2592
  * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationiteration
2591
2593
  */
2592
- onAnimationIteration?: AttrEventHandler<AnimationEvent, T>;
2593
- "on-animationiteration"?: this["onAnimationIteration"];
2594
+ onAnimationiteration?: AttrEventHandler<AnimationEvent, T>;
2595
+ "on-animationiteration"?: this["onAnimationiteration"];
2594
2596
 
2595
2597
  /**
2596
2598
  * Fired when an animation has started.
2597
2599
  * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationstart
2598
2600
  */
2599
- onAnimationStart?: AttrEventHandler<AnimationEvent, T>;
2600
- "on-animationstart"?: this["onAnimationStart"];
2601
+ onAnimationstart?: AttrEventHandler<AnimationEvent, T>;
2602
+ "on-animationstart"?: this["onAnimationstart"];
2601
2603
 
2602
2604
  /**
2603
2605
  * Fired when a non-primary pointing device button (any mouse button other than the primary—usually leftmost—button)
2604
2606
  * has been pressed and released both within the same element.
2605
2607
  * @see https://w3c.github.io/uievents/#event-type-auxclick
2606
2608
  */
2607
- onAuxClick?: AttrEventHandler<PointerEvent, T>;
2608
- "on-auxclick"?: this["onAuxClick"];
2609
+ onAuxclick?: AttrEventHandler<PointerEvent, T>;
2610
+ "on-auxclick"?: this["onAuxclick"];
2609
2611
  onauxclick?: AttrString;
2610
2612
 
2611
2613
  /**
2612
2614
  * Fires when the value of an <input>, or <textarea> element is about to be modified.
2613
2615
  * @see https://w3c.github.io/uievents/#event-type-beforeinput
2614
2616
  */
2615
- onBeforeInput?: AttrEventHandler<InputEvent, T>;
2616
- "on-beforeinput"?: this["onBeforeInput"];
2617
+ onBeforeinput?: AttrEventHandler<InputEvent, T>;
2618
+ "on-beforeinput"?: this["onBeforeinput"];
2617
2619
  onbeforeinput?: AttrString;
2618
2620
 
2619
2621
  /**
2620
2622
  * Fired on elements with the hidden=until-found attribute before they are revealed.
2621
2623
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforematch
2622
2624
  */
2623
- onBeforeMatch?: AttrEventHandler<Event, T>;
2624
- "on-beforematch"?: this["onBeforeMatch"];
2625
+ onBeforematch?: AttrEventHandler<Event, T>;
2626
+ "on-beforematch"?: this["onBeforematch"];
2625
2627
  onbeforematch?: AttrString;
2626
2628
 
2627
2629
  /**
2628
2630
  * Fired on elements with the popover attribute when they are transitioning between showing and hidden
2629
2631
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforetoggle
2630
2632
  */
2631
- onBeforeToggle?: AttrEventHandler<Event, T>;
2632
- "on-beforetoggle"?: this["onBeforeToggle"];
2633
+ onBeforetoggle?: AttrEventHandler<Event, T>;
2634
+ "on-beforetoggle"?: this["onBeforetoggle"];
2633
2635
  onbeforetoggle?: AttrString;
2634
2636
 
2635
2637
  /**
@@ -2654,16 +2656,16 @@ declare global {
2654
2656
  * playback rate up to its end without having to stop for further buffering of content.
2655
2657
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplay
2656
2658
  */
2657
- onCanPlay?: AttrEventHandler<Event, T>;
2658
- "on-canplay"?: this["onCanPlay"];
2659
+ onCanplay?: AttrEventHandler<Event, T>;
2660
+ "on-canplay"?: this["onCanplay"];
2659
2661
  oncanplay?: AttrString;
2660
2662
 
2661
2663
  /**
2662
2664
  * Fires when the user agent can play through the media data without having to stop for further buffering of content.
2663
2665
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplaythrough
2664
2666
  */
2665
- onCanPlayThrough?: AttrEventHandler<Event, T>;
2666
- "on-canplaythrough"?: this["onCanPlayThrough"];
2667
+ onCanplaythrough?: AttrEventHandler<Event, T>;
2668
+ "on-canplaythrough"?: this["onCanplaythrough"];
2667
2669
  oncanplaythrough?: AttrString;
2668
2670
 
2669
2671
  /**
@@ -2695,30 +2697,30 @@ declare global {
2695
2697
  * Fired when a text composition system such as an input method editor completes or cancels the current composition session.
2696
2698
  * @see https://w3c.github.io/uievents/#event-type-compositionend
2697
2699
  */
2698
- onCompositionEnd?: AttrEventHandler<CompositionEvent, T>;
2699
- "on-compositionend"?: this["onCompositionEnd"];
2700
+ onCompositionend?: AttrEventHandler<CompositionEvent, T>;
2701
+ "on-compositionend"?: this["onCompositionend"];
2700
2702
 
2701
2703
  /**
2702
2704
  * Fired when a text composition system such as an input method editor starts a new composition session.
2703
2705
  * @see https://w3c.github.io/uievents/#event-type-compositionstart
2704
2706
  */
2705
- onCompositionStart?: AttrEventHandler<CompositionEvent, T>;
2706
- "on-compositionstart"?: this["onCompositionStart"];
2707
+ onCompositionstart?: AttrEventHandler<CompositionEvent, T>;
2708
+ "on-compositionstart"?: this["onCompositionstart"];
2707
2709
 
2708
2710
  /**
2709
2711
  * Fired when a new character is received in the context of a text composition session controlled by a text
2710
2712
  * composition system such as an input method editor.
2711
2713
  * @see https://w3c.github.io/uievents/#event-type-compositionupdate
2712
2714
  */
2713
- onCompositionUpdate?: AttrEventHandler<CompositionEvent, T>;
2714
- "on-compositionupdate"?: this["onCompositionUpdate"];
2715
+ onCompositionupdate?: AttrEventHandler<CompositionEvent, T>;
2716
+ "on-compositionupdate"?: this["onCompositionupdate"];
2715
2717
 
2716
2718
  /**
2717
2719
  * Fired when the corresponding CanvasRenderingContext2D or OffscreenCanvasRenderingContext2D is lost
2718
2720
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-contextlost
2719
2721
  */
2720
- onContextLost?: AttrEventHandler<Event, T>;
2721
- "on-contextlost"?: this["onContextLost"];
2722
+ onContextlost?: AttrEventHandler<Event, T>;
2723
+ "on-contextlost"?: this["onContextlost"];
2722
2724
  oncontextlost?: AttrString;
2723
2725
 
2724
2726
  /**
@@ -2726,16 +2728,16 @@ declare global {
2726
2728
  * This event is typically triggered by clicking the right mouse button, or by pressing the context menu key.
2727
2729
  * @see https://w3c.github.io/uievents/#event-type-contextmenu
2728
2730
  */
2729
- onContextMenu?: AttrEventHandler<PointerEvent, T>;
2730
- "on-contextmenu"?: this["onContextMenu"];
2731
+ onContextmenu?: AttrEventHandler<PointerEvent, T>;
2732
+ "on-contextmenu"?: this["onContextmenu"];
2731
2733
  oncontextmenu?: AttrString;
2732
2734
 
2733
2735
  /**
2734
2736
  * Fired when the corresponding CanvasRenderingContext2D or OffscreenCanvasRenderingContext2D is restored after being lost
2735
2737
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-contextrestored
2736
2738
  */
2737
- onContextRestored?: AttrEventHandler<Event, T>;
2738
- "on-contextrestored"?: this["onContextRestored"];
2739
+ onContextrestored?: AttrEventHandler<Event, T>;
2740
+ "on-contextrestored"?: this["onContextrestored"];
2739
2741
  oncontextrestored?: AttrString;
2740
2742
 
2741
2743
  /**
@@ -2750,8 +2752,8 @@ declare global {
2750
2752
  * Fired when one or more cues in the track have become active or stopped being active.
2751
2753
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-cuechange
2752
2754
  */
2753
- onCueChange?: AttrEventHandler<Event, T>;
2754
- "on-cuechange"?: this["onCueChange"];
2755
+ onCuechange?: AttrEventHandler<Event, T>;
2756
+ "on-cuechange"?: this["onCuechange"];
2755
2757
  oncuechange?: AttrString;
2756
2758
 
2757
2759
  /**
@@ -2766,8 +2768,8 @@ declare global {
2766
2768
  * Fired when the user double-clicks on an element.
2767
2769
  * @see https://w3c.github.io/uievents/#event-type-dblclick
2768
2770
  */
2769
- onDblClick?: AttrEventHandler<MouseEvent, T>;
2770
- "on-dblclick"?: this["onDblClick"];
2771
+ onDblclick?: AttrEventHandler<MouseEvent, T>;
2772
+ "on-dblclick"?: this["onDblclick"];
2771
2773
  ondblclick?: AttrString;
2772
2774
 
2773
2775
  /**
@@ -2782,40 +2784,40 @@ declare global {
2782
2784
  * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
2783
2785
  * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragend
2784
2786
  */
2785
- onDragEnd?: AttrEventHandler<DragEvent, T>;
2786
- "on-dragend"?: this["onDragEnd"];
2787
+ onDragend?: AttrEventHandler<DragEvent, T>;
2788
+ "on-dragend"?: this["onDragend"];
2787
2789
  ondragend?: AttrString;
2788
2790
 
2789
2791
  /**
2790
2792
  * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
2791
2793
  * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragenter
2792
2794
  */
2793
- onDragEnter?: AttrEventHandler<DragEvent, T>;
2794
- "on-dragenter"?: this["onDragEnter"];
2795
+ onDragenter?: AttrEventHandler<DragEvent, T>;
2796
+ "on-dragenter"?: this["onDragenter"];
2795
2797
  ondragenter?: AttrString;
2796
2798
 
2797
2799
  /**
2798
2800
  * Fired when a dragged element or text selection leaves a valid drop target.
2799
2801
  * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragleave
2800
2802
  */
2801
- onDragLeave?: AttrEventHandler<DragEvent, T>;
2802
- "on-dragleave"?: this["onDragLeave"];
2803
+ onDragleave?: AttrEventHandler<DragEvent, T>;
2804
+ "on-dragleave"?: this["onDragleave"];
2803
2805
  ondragleave?: AttrString;
2804
2806
 
2805
2807
  /**
2806
2808
  * Fired an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).
2807
2809
  * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragover
2808
2810
  */
2809
- onDragOver?: AttrEventHandler<DragEvent, T>;
2810
- "on-dragover"?: this["onDragOver"];
2811
+ onDragover?: AttrEventHandler<DragEvent, T>;
2812
+ "on-dragover"?: this["onDragover"];
2811
2813
  ondragover?: AttrString;
2812
2814
 
2813
2815
  /**
2814
2816
  * Fired when an element or text selection has started being dragged.
2815
2817
  * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragstart
2816
2818
  */
2817
- onDragStart?: AttrEventHandler<DragEvent, T>;
2818
- "on-dragstart"?: this["onDragStart"];
2819
+ onDragstart?: AttrEventHandler<DragEvent, T>;
2820
+ "on-dragstart"?: this["onDragstart"];
2819
2821
  ondragstart?: AttrString;
2820
2822
 
2821
2823
  /**
@@ -2830,8 +2832,8 @@ declare global {
2830
2832
  * Fired when the duration attribute of a media element has just been updated.
2831
2833
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-durationchange
2832
2834
  */
2833
- onDurationChange?: AttrEventHandler<Event, T>;
2834
- "on-durationchange"?: this["onDurationChange"];
2835
+ onDurationchange?: AttrEventHandler<Event, T>;
2836
+ "on-durationchange"?: this["onDurationchange"];
2835
2837
  ondurationchange?: AttrString;
2836
2838
 
2837
2839
  /**
@@ -2878,38 +2880,38 @@ declare global {
2878
2880
  * @see HTMLAttributes.onFocus
2879
2881
  * @see https://w3c.github.io/uievents/#event-type-focusin
2880
2882
  */
2881
- onFocusIn?: AttrEventHandler<FocusEvent, T>;
2882
- "on-focusin"?: this["onFocusIn"];
2883
+ onFocusin?: AttrEventHandler<FocusEvent, T>;
2884
+ "on-focusin"?: this["onFocusin"];
2883
2885
 
2884
2886
  /**
2885
2887
  * Fires when an element has lost focus, after the blur event. The two events differ in that focusout bubbles, while blur does not.
2886
2888
  * @see HTMLAttributes.onBlur
2887
2889
  * @see https://w3c.github.io/uievents/#event-type-focusout
2888
2890
  */
2889
- onFocusOut?: AttrEventHandler<FocusEvent, T>;
2890
- "on-focusout"?: this["onFocusOut"];
2891
+ onFocusout?: AttrEventHandler<FocusEvent, T>;
2892
+ "on-focusout"?: this["onFocusout"];
2891
2893
 
2892
2894
  /**
2893
2895
  * Fired at a form element when it is constructing the entry list
2894
2896
  * @see https://html.spec.whatwg.org/multipage/indices.html#event-formdata
2895
2897
  */
2896
- onFormData?: AttrEventHandler<FormDataEvent, T>;
2897
- "on-formdata"?: this["onFormData"];
2898
+ onFormdata?: AttrEventHandler<FormDataEvent, T>;
2899
+ "on-formdata"?: this["onFormdata"];
2898
2900
  onformdata?: AttrString;
2899
2901
 
2900
2902
  /**
2901
2903
  * Fired immediately after an Element switches into or out of fullscreen mode.
2902
2904
  * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenchange
2903
2905
  */
2904
- onFullscreenChange?: AttrEventHandler<Event, T>;
2905
- "on-fullscreenchange"?: this["onFullscreenChange"];
2906
+ onFullscreenchange?: AttrEventHandler<Event, T>;
2907
+ "on-fullscreenchange"?: this["onFullscreenchange"];
2906
2908
 
2907
2909
  /**
2908
2910
  * Fired when the browser cannot switch to fullscreen mode.
2909
2911
  * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenerror
2910
2912
  */
2911
- onFullscreenError?: AttrEventHandler<Event, T>;
2912
- "on-fullscreenerror"?: this["onFullscreenError"];
2913
+ onFullscreenerror?: AttrEventHandler<Event, T>;
2914
+ "on-fullscreenerror"?: this["onFullscreenerror"];
2913
2915
 
2914
2916
  /**
2915
2917
  * Fired when an element captures a pointer using setPointerCapture().
@@ -2917,8 +2919,8 @@ declare global {
2917
2919
  * @see Element.setPointerCapture
2918
2920
  * @see https://w3c.github.io/pointerevents/#the-gotpointercapture-event
2919
2921
  */
2920
- onGotPointerCapture?: AttrEventHandler<PointerEvent, T>;
2921
- "on-gotpointercapture"?: this["onGotPointerCapture"];
2922
+ onGotpointercapture?: AttrEventHandler<PointerEvent, T>;
2923
+ "on-gotpointercapture"?: this["onGotpointercapture"];
2922
2924
 
2923
2925
  /**
2924
2926
  * Fired when the form element's value changes, as a result of user input.
@@ -2940,24 +2942,24 @@ declare global {
2940
2942
  * Fired when a key is first pressed down.
2941
2943
  * @see https://w3c.github.io/uievents/#event-type-keydown
2942
2944
  */
2943
- onKeyDown?: AttrEventHandler<KeyboardEvent, T>;
2944
- "on-keydown"?: this["onKeyDown"];
2945
+ onKeydown?: AttrEventHandler<KeyboardEvent, T>;
2946
+ "on-keydown"?: this["onKeydown"];
2945
2947
  onkeydown?: AttrString;
2946
2948
 
2947
2949
  /**
2948
2950
  * Fired when a key is pressed down and then released, while the element has focus.
2949
2951
  * @see https://w3c.github.io/uievents/#event-type-keypress
2950
2952
  */
2951
- onKeyPress?: AttrEventHandler<KeyboardEvent, T>;
2952
- "on-keypress"?: this["onKeyPress"];
2953
+ onKeypress?: AttrEventHandler<KeyboardEvent, T>;
2954
+ "on-keypress"?: this["onKeypress"];
2953
2955
  onkeypress?: AttrString;
2954
2956
 
2955
2957
  /**
2956
2958
  * Fired when a key is released after being pressed down.
2957
2959
  * @see https://w3c.github.io/uievents/#event-type-keyup
2958
2960
  */
2959
- onKeyUp?: AttrEventHandler<KeyboardEvent, T>;
2960
- "on-keyup"?: this["onKeyUp"];
2961
+ onKeyup?: AttrEventHandler<KeyboardEvent, T>;
2962
+ "on-keyup"?: this["onKeyup"];
2961
2963
  onkeyup?: AttrString;
2962
2964
 
2963
2965
  /**
@@ -2972,87 +2974,87 @@ declare global {
2972
2974
  * Fired when the user agent can render the media data at the current playback position for the first time.
2973
2975
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadeddata
2974
2976
  */
2975
- onLoadedData?: AttrEventHandler<Event, T>;
2976
- "on-loadeddata"?: this["onLoadedData"];
2977
+ onLoadeddata?: AttrEventHandler<Event, T>;
2978
+ "on-loadeddata"?: this["onLoadeddata"];
2977
2979
  onloadeddata?: AttrString;
2978
2980
 
2979
2981
  /**
2980
2982
  * Fired when the user agent has just determined the duration and dimensions of the media resource.
2981
2983
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadedmetadata
2982
2984
  */
2983
- onLoadedMetadata?: AttrEventHandler<Event, T>;
2984
- "on-loadedmetadata"?: this["onLoadedMetadata"];
2985
+ onLoadedmetadata?: AttrEventHandler<Event, T>;
2986
+ "on-loadedmetadata"?: this["onLoadedmetadata"];
2985
2987
  onloadedmetadata?: AttrString;
2986
2988
 
2987
2989
  /**
2988
2990
  * Fired when the user agent begins looking for media data, before the media has begun to load.
2989
2991
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadstart
2990
2992
  */
2991
- onLoadStart?: AttrEventHandler<Event, T>;
2992
- "on-loadstart"?: this["onLoadStart"];
2993
+ onLoadstart?: AttrEventHandler<Event, T>;
2994
+ "on-loadstart"?: this["onLoadstart"];
2993
2995
  onloadstart?: AttrString;
2994
2996
 
2995
2997
  /**
2996
2998
  * Fired when a captured pointer is released.
2997
2999
  * @see https://w3c.github.io/pointerevents/#dfn-lostpointercapture
2998
3000
  */
2999
- onLostPointerCapture?: AttrEventHandler<PointerEvent, T>;
3000
- "on-lostpointercapture"?: this["onLostPointerCapture"];
3001
+ onLostpointercapture?: AttrEventHandler<PointerEvent, T>;
3002
+ "on-lostpointercapture"?: this["onLostpointercapture"];
3001
3003
 
3002
3004
  /**
3003
3005
  * Fired when a pointing device button is pressed down over an element.
3004
3006
  * @see https://w3c.github.io/uievents/#event-type-mousedown
3005
3007
  */
3006
- onMouseDown?: AttrEventHandler<MouseEvent, T>;
3007
- "on-mousedown"?: this["onMouseDown"];
3008
+ onMousedown?: AttrEventHandler<MouseEvent, T>;
3009
+ "on-mousedown"?: this["onMousedown"];
3008
3010
  onmousedown?: AttrString;
3009
3011
 
3010
3012
  /**
3011
3013
  * Fired when a pointing device is moved onto the element.
3012
3014
  * @see https://w3c.github.io/uievents/#event-type-mouseenter
3013
3015
  */
3014
- onMouseEnter?: AttrEventHandler<MouseEvent, T>;
3015
- "on-mouseenter"?: this["onMouseEnter"];
3016
+ onMouseenter?: AttrEventHandler<MouseEvent, T>;
3017
+ "on-mouseenter"?: this["onMouseenter"];
3016
3018
  onmouseenter?: AttrString;
3017
3019
 
3018
3020
  /**
3019
3021
  * Fired when a pointing device is moved off the element.
3020
3022
  * @see https://w3c.github.io/uievents/#event-type-mouseleave
3021
3023
  */
3022
- onMouseLeave?: AttrEventHandler<MouseEvent, T>;
3023
- "on-mouseleave"?: this["onMouseLeave"];
3024
+ onMouseleave?: AttrEventHandler<MouseEvent, T>;
3025
+ "on-mouseleave"?: this["onMouseleave"];
3024
3026
  onmouseleave?: AttrString;
3025
3027
 
3026
3028
  /**
3027
3029
  * Fired when a pointing device is moved over an element.
3028
3030
  * @see https://w3c.github.io/uievents/#event-type-mousemove
3029
3031
  */
3030
- onMouseMove?: AttrEventHandler<MouseEvent, T>;
3031
- "on-mousemove"?: this["onMouseMove"];
3032
+ onMousemove?: AttrEventHandler<MouseEvent, T>;
3033
+ "on-mousemove"?: this["onMousemove"];
3032
3034
  onmousemove?: AttrString;
3033
3035
 
3034
3036
  /**
3035
3037
  * Fired when a pointing device is moved off the element or off one of its children.
3036
3038
  * @see https://w3c.github.io/uievents/#event-type-mouseout
3037
3039
  */
3038
- onMouseOut?: AttrEventHandler<MouseEvent, T>;
3039
- "on-mouseout"?: this["onMouseOut"];
3040
+ onMouseout?: AttrEventHandler<MouseEvent, T>;
3041
+ "on-mouseout"?: this["onMouseout"];
3040
3042
  onmouseout?: AttrString;
3041
3043
 
3042
3044
  /**
3043
3045
  * Fired when a pointing device is moved onto the element or onto one of its children.
3044
3046
  * @see https://w3c.github.io/uievents/#event-type-mouseover
3045
3047
  */
3046
- onMouseOver?: AttrEventHandler<MouseEvent, T>;
3047
- "on-mouseover"?: this["onMouseOver"];
3048
+ onMouseover?: AttrEventHandler<MouseEvent, T>;
3049
+ "on-mouseover"?: this["onMouseover"];
3048
3050
  onmouseover?: AttrString;
3049
3051
 
3050
3052
  /**
3051
3053
  * Fired when a pointing device button is released over an element.
3052
3054
  * @see https://w3c.github.io/uievents/#event-type-mouseup
3053
3055
  */
3054
- onMouseUp?: AttrEventHandler<MouseEvent, T>;
3055
- "on-mouseup"?: this["onMouseUp"];
3056
+ onMouseup?: AttrEventHandler<MouseEvent, T>;
3057
+ "on-mouseup"?: this["onMouseup"];
3056
3058
  onmouseup?: AttrString;
3057
3059
 
3058
3060
  /**
@@ -3091,57 +3093,57 @@ declare global {
3091
3093
  * Fired when the pointing device's hardware triggers a cancellation of the pointer event, such as due to a system event.
3092
3094
  * @see https://w3c.github.io/pointerevents/#the-pointercancel-event
3093
3095
  */
3094
- onPointerCancel?: AttrEventHandler<PointerEvent, T>;
3095
- "on-pointercancel"?: this["onPointerCancel"];
3096
+ onPointercancel?: AttrEventHandler<PointerEvent, T>;
3097
+ "on-pointercancel"?: this["onPointercancel"];
3096
3098
 
3097
3099
  /**
3098
3100
  * Fired when a pointing device's button is pressed down on an element.
3099
3101
  * @see https://w3c.github.io/pointerevents/#the-pointerdown-event
3100
3102
  */
3101
- onPointerDown?: AttrEventHandler<PointerEvent, T>;
3102
- "on-pointerdown"?: this["onPointerDown"];
3103
+ onPointerdown?: AttrEventHandler<PointerEvent, T>;
3104
+ "on-pointerdown"?: this["onPointerdown"];
3103
3105
 
3104
3106
  /**
3105
3107
  * Fired when a pointing device is moved onto the element.
3106
3108
  * @see https://w3c.github.io/pointerevents/#the-pointerenter-event
3107
3109
  */
3108
- onPointerEnter?: AttrEventHandler<PointerEvent, T>;
3109
- "on-pointerenter"?: this["onPointerEnter"];
3110
+ onPointerenter?: AttrEventHandler<PointerEvent, T>;
3111
+ "on-pointerenter"?: this["onPointerenter"];
3110
3112
 
3111
3113
  /**
3112
3114
  * Fired when a pointing device is moved off the element.
3113
3115
  * @see https://w3c.github.io/pointerevents/#the-pointerleave-event
3114
3116
  */
3115
- onPointerLeave?: AttrEventHandler<PointerEvent, T>;
3116
- "on-pointerleave"?: this["onPointerLeave"];
3117
+ onPointerleave?: AttrEventHandler<PointerEvent, T>;
3118
+ "on-pointerleave"?: this["onPointerleave"];
3117
3119
 
3118
3120
  /**
3119
3121
  * Fired when a pointing device is moved over an element.
3120
3122
  * @see https://w3c.github.io/pointerevents/#the-pointermove-event
3121
3123
  */
3122
- onPointerMove?: AttrEventHandler<PointerEvent, T>;
3123
- "on-pointermove"?: this["onPointerMove"];
3124
+ onPointermove?: AttrEventHandler<PointerEvent, T>;
3125
+ "on-pointermove"?: this["onPointermove"];
3124
3126
 
3125
3127
  /**
3126
3128
  * Fired when a pointing device is moved off the element or off one of its children.
3127
3129
  * @see https://w3c.github.io/pointerevents/#the-pointerout-event
3128
3130
  */
3129
- onPointerOut?: AttrEventHandler<PointerEvent, T>;
3130
- "on-pointerout"?: this["onPointerOut"];
3131
+ onPointerout?: AttrEventHandler<PointerEvent, T>;
3132
+ "on-pointerout"?: this["onPointerout"];
3131
3133
 
3132
3134
  /**
3133
3135
  * Fired when a pointing device is moved onto the element or onto one of its children.
3134
3136
  * @see https://w3c.github.io/pointerevents/#the-pointerover-event
3135
3137
  */
3136
- onPointerOver?: AttrEventHandler<PointerEvent, T>;
3137
- "on-pointerover"?: this["onPointerOver"];
3138
+ onPointerover?: AttrEventHandler<PointerEvent, T>;
3139
+ "on-pointerover"?: this["onPointerover"];
3138
3140
 
3139
3141
  /**
3140
3142
  * Fired when a pointing device's button is released over an element.
3141
3143
  * @see https://w3c.github.io/pointerevents/#the-pointerup-event
3142
3144
  */
3143
- onPointerUp?: AttrEventHandler<PointerEvent, T>;
3144
- "on-pointerup"?: this["onPointerUp"];
3145
+ onPointerup?: AttrEventHandler<PointerEvent, T>;
3146
+ "on-pointerup"?: this["onPointerup"];
3145
3147
 
3146
3148
  /**
3147
3149
  * Fired when the user agent is downloading media data or resources, to indicate progress.
@@ -3155,8 +3157,8 @@ declare global {
3155
3157
  * Fired when the playback rate of a media element has changed.
3156
3158
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ratechange
3157
3159
  */
3158
- onRateChange?: AttrEventHandler<Event, T>;
3159
- "on-ratechange"?: this["onRateChange"];
3160
+ onRatechange?: AttrEventHandler<Event, T>;
3161
+ "on-ratechange"?: this["onRatechange"];
3160
3162
  onratechange?: AttrString;
3161
3163
 
3162
3164
  /**
@@ -3187,8 +3189,8 @@ declare global {
3187
3189
  * Fired when element scrolling has completed. Scrolling is considered completed when the scroll position has no more pending updates and the user has completed their gesture.
3188
3190
  * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scrollend
3189
3191
  */
3190
- onScrollEnd?: AttrEventHandler<Event, T>;
3191
- "on-scrollend"?: this["onScrollEnd"];
3192
+ onScrollend?: AttrEventHandler<Event, T>;
3193
+ "on-scrollend"?: this["onScrollend"];
3192
3194
  onscrollend?: AttrString;
3193
3195
 
3194
3196
  /**
@@ -3200,7 +3202,7 @@ declare global {
3200
3202
  T
3201
3203
  >;
3202
3204
  "on-securitypolicyviolation"?: this["onSecurityPolicyViolation"];
3203
- onsecuritypolicyviolation?: AttrString;
3205
+ onsecuritypolicyviolation?: Attrstring;
3204
3206
 
3205
3207
  /**
3206
3208
  * Fired when a seek operation on a media element completes.
@@ -3230,8 +3232,8 @@ declare global {
3230
3232
  * Fired when a <slot> element's distributed nodes change.
3231
3233
  * @see https://dom.spec.whatwg.org/#eventdef-htmlslotelement-slotchange
3232
3234
  */
3233
- onSlotChange?: AttrEventHandler<Event, T>;
3234
- "on-slotchange"?: this["onSlotChange"];
3235
+ onSlotchange?: AttrEventHandler<Event, T>;
3236
+ "on-slotchange"?: this["onSlotchange"];
3235
3237
  onslotchange?: AttrString;
3236
3238
 
3237
3239
  /**
@@ -3262,8 +3264,8 @@ declare global {
3262
3264
  * Fired when the current playback position of a media element changes as part of normal playback or due to a seek operation.
3263
3265
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-timeupdate
3264
3266
  */
3265
- onTimeUpdate?: AttrEventHandler<Event, T>;
3266
- "on-timeupdate"?: this["onTimeUpdate"];
3267
+ onTimeupdate?: AttrEventHandler<Event, T>;
3268
+ "on-timeupdate"?: this["onTimeupdate"];
3267
3269
  ontimeupdate?: AttrString;
3268
3270
 
3269
3271
  /**
@@ -3278,64 +3280,64 @@ declare global {
3278
3280
  * Fired when a touch event is interrupted, such as by a modal window or an incoming phone call.
3279
3281
  * @see https://w3c.github.io/touch-events/#event-touchcancel
3280
3282
  */
3281
- onTouchCancel?: AttrEventHandler<TouchEvent, T>;
3282
- "on-touchcancel"?: this["onTouchCancel"];
3283
+ onTouchcancel?: AttrEventHandler<TouchEvent, T>;
3284
+ "on-touchcancel"?: this["onTouchcancel"];
3283
3285
 
3284
3286
  /**
3285
3287
  * Fired when a finger is lifted from a touch surface.
3286
3288
  * @see https://w3c.github.io/touch-events/#event-touchend
3287
3289
  */
3288
- onTouchEnd?: AttrEventHandler<TouchEvent, T>;
3289
- "on-touchend"?: this["onTouchEnd"];
3290
+ onTouchend?: AttrEventHandler<TouchEvent, T>;
3291
+ "on-touchend"?: this["onTouchend"];
3290
3292
 
3291
3293
  /**
3292
3294
  * Fired when a finger is moved along a touch surface.
3293
3295
  * @see https://w3c.github.io/touch-events/#event-touchmove
3294
3296
  */
3295
- onTouchMove?: AttrEventHandler<TouchEvent, T>;
3296
- "on-touchmove"?: this["onTouchMove"];
3297
+ onTouchmove?: AttrEventHandler<TouchEvent, T>;
3298
+ "on-touchmove"?: this["onTouchmove"];
3297
3299
 
3298
3300
  /**
3299
3301
  * Fired when a finger is placed on a touch surface.
3300
3302
  * @see https://w3c.github.io/touch-events/#event-touchstart
3301
3303
  */
3302
- onTouchStart?: AttrEventHandler<TouchEvent, T>;
3303
- "on-touchstart"?: this["onTouchStart"];
3304
+ onTouchstart?: AttrEventHandler<TouchEvent, T>;
3305
+ "on-touchstart"?: this["onTouchstart"];
3304
3306
 
3305
3307
  /**
3306
3308
  * Fired when a CSS transition is canceled.
3307
3309
  * @see https://drafts.csswg.org/css-transitions/#transitioncancel
3308
3310
  */
3309
- onTransitionCancel?: AttrEventHandler<TransitionEvent, T>;
3310
- "on-transitioncancel"?: this["onTransitionCancel"];
3311
+ onTransitioncancel?: AttrEventHandler<TransitionEvent, T>;
3312
+ "on-transitioncancel"?: this["onTransitioncancel"];
3311
3313
 
3312
3314
  /**
3313
3315
  * Fired when a CSS transition has completed.
3314
3316
  * @see https://drafts.csswg.org/css-transitions/#transitionend
3315
3317
  */
3316
- onTransitionEnd?: AttrEventHandler<TransitionEvent, T>;
3317
- "on-transitionend"?: this["onTransitionEnd"];
3318
+ onTransitionend?: AttrEventHandler<TransitionEvent, T>;
3319
+ "on-transitionend"?: this["onTransitionend"];
3318
3320
 
3319
3321
  /**
3320
3322
  * Fired when a CSS transition is first created, i.e. before any transition-delay has begun.
3321
3323
  * @see https://drafts.csswg.org/css-transitions/#transitionrun
3322
3324
  */
3323
- onTransitionRun?: AttrEventHandler<TransitionEvent, T>;
3324
- "on-transitionrun"?: this["onTransitionRun"];
3325
+ onTransitionrun?: AttrEventHandler<TransitionEvent, T>;
3326
+ "on-transitionrun"?: this["onTransitionrun"];
3325
3327
 
3326
3328
  /**
3327
3329
  * Fired when a CSS transition has actually started, i.e., after any transition-delay has ended.
3328
3330
  * @see https://drafts.csswg.org/css-transitions/#transitionstart
3329
3331
  */
3330
- onTransitionStart?: AttrEventHandler<TransitionEvent, T>;
3331
- "on-transitionstart"?: this["onTransitionStart"];
3332
+ onTransitionstart?: AttrEventHandler<TransitionEvent, T>;
3333
+ "on-transitionstart"?: this["onTransitionstart"];
3332
3334
 
3333
3335
  /**
3334
3336
  * Fired when the volume level or muted state of a media element changes.
3335
3337
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-volumechange
3336
3338
  */
3337
- onVolumeChange?: AttrEventHandler<Event, T>;
3338
- "on-volumechange"?: this["onVolumeChange"];
3339
+ onVolumechange?: AttrEventHandler<Event, T>;
3340
+ "on-volumechange"?: this["onVolumechange"];
3339
3341
  onvolumechange?: AttrString;
3340
3342
 
3341
3343
  /**