marko 6.0.48 → 6.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tags-html.d.ts CHANGED
@@ -219,7 +219,6 @@ declare global {
219
219
  symbol: NativeTag<Marko.SVG.Symbol, SVGSymbolElement>;
220
220
  text: NativeTag<Marko.SVG.Text, SVGTextElement>;
221
221
  textPath: NativeTag<Marko.SVG.TextPath, SVGTextPathElement>;
222
- title: NativeTag<Marko.SVG.Title, SVGTitleElement>;
223
222
  tspan: NativeTag<Marko.SVG.TSpan, SVGTSpanElement>;
224
223
  use: NativeTag<Marko.SVG.Use, SVGUseElement>;
225
224
  view: NativeTag<Marko.SVG.View, SVGViewElement>;
@@ -2504,7 +2503,7 @@ declare global {
2504
2503
  * @see https://www.w3.org/TR/SVG2/linking.html#AElement
2505
2504
  */
2506
2505
  interface A
2507
- extends SVGCoreAttributes<SVGAElement>,
2506
+ extends SVGAttributes<SVGAElement>,
2508
2507
  SVGConditionalProcessingAttributes {
2509
2508
  /**
2510
2509
  * @see https://www.w3.org/TR/SVG2/linking.html#AElementHrefAttribute
@@ -2555,7 +2554,7 @@ declare global {
2555
2554
  * @see https://svgwg.org/specs/animations/#AnimateElement
2556
2555
  */
2557
2556
  interface Animate
2558
- extends SVGCoreAttributes<SVGAnimateElement>,
2557
+ extends Omit<SVGAttributes<SVGAnimateElement>, "fill">,
2559
2558
  SVGAnimationAdditionAttributes,
2560
2559
  SVGAnimationTargetElementAttributes,
2561
2560
  SVGAnimationAttributeTargetAttributes,
@@ -2566,7 +2565,7 @@ declare global {
2566
2565
  * @see https://svgwg.org/specs/animations/#AnimateMotionElement
2567
2566
  */
2568
2567
  interface AnimateMotion
2569
- extends SVGCoreAttributes<SVGAnimateMotionElement>,
2568
+ extends Omit<SVGAttributes<SVGAnimateMotionElement>, "fill">,
2570
2569
  SVGAnimationAdditionAttributes,
2571
2570
  SVGAnimationTargetElementAttributes,
2572
2571
  SVGAnimationTimingAttributes,
@@ -2597,7 +2596,7 @@ declare global {
2597
2596
  * @see https://svgwg.org/specs/animations/#AnimateTransformElement
2598
2597
  */
2599
2598
  interface AnimateTransform
2600
- extends SVGCoreAttributes<SVGAnimateTransformElement>,
2599
+ extends Omit<SVGAttributes<SVGAnimateTransformElement>, "fill">,
2601
2600
  SVGAnimationAdditionAttributes,
2602
2601
  SVGAnimationTargetElementAttributes,
2603
2602
  SVGAnimationAttributeTargetAttributes,
@@ -2619,7 +2618,7 @@ declare global {
2619
2618
  * @see https://www.w3.org/TR/SVG2/shapes.html#CircleElement
2620
2619
  */
2621
2620
  interface Circle
2622
- extends SVGCoreAttributes<SVGCircleElement>,
2621
+ extends SVGAttributes<SVGCircleElement>,
2623
2622
  SVGConditionalProcessingAttributes {
2624
2623
  /**
2625
2624
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -2646,7 +2645,7 @@ declare global {
2646
2645
  * @see https://www.w3.org/TR/css-masking-1/#elementdef-clippath
2647
2646
  */
2648
2647
  interface ClipPath
2649
- extends SVGCoreAttributes<SVGClipPathElement>,
2648
+ extends SVGAttributes<SVGClipPathElement>,
2650
2649
  SVGConditionalProcessingAttributes {
2651
2650
  /**
2652
2651
  * @see https://www.w3.org/TR/2011/REC-SVG11-20110816/struct.html#ExternalResourcesRequiredAttribute
@@ -2662,18 +2661,18 @@ declare global {
2662
2661
  /**
2663
2662
  * @see https://www.w3.org/TR/SVG2/struct.html#DefsElement
2664
2663
  */
2665
- interface Defs extends SVGCoreAttributes<SVGDefsElement> {}
2664
+ interface Defs extends SVGAttributes<SVGDefsElement> {}
2666
2665
 
2667
2666
  /**
2668
2667
  * @see https://www.w3.org/TR/SVG2/struct.html#DescElement
2669
2668
  */
2670
- interface Desc extends SVGCoreAttributes<SVGDescElement> {}
2669
+ interface Desc extends SVGAttributes<SVGDescElement> {}
2671
2670
 
2672
2671
  /**
2673
2672
  * @see https://svgwg.org/specs/animations/#DiscardElement
2674
2673
  */
2675
2674
  interface Discard
2676
- extends SVGCoreAttributes<SVGElement>,
2675
+ extends SVGAttributes<SVGElement>,
2677
2676
  SVGConditionalProcessingAttributes {
2678
2677
  /**
2679
2678
  * @see https://svgwg.org/specs/animations/#DiscardElementBeginAttribute
@@ -2690,7 +2689,7 @@ declare global {
2690
2689
  * @see https://www.w3.org/TR/SVG2/shapes.html#EllipseElement
2691
2690
  */
2692
2691
  interface Ellipse
2693
- extends SVGCoreAttributes<SVGEllipseElement>,
2692
+ extends SVGAttributes<SVGEllipseElement>,
2694
2693
  SVGConditionalProcessingAttributes {
2695
2694
  /**
2696
2695
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -2722,7 +2721,7 @@ declare global {
2722
2721
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-feblend
2723
2722
  */
2724
2723
  interface FEBlend
2725
- extends SVGCoreAttributes<SVGFEBlendElement>,
2724
+ extends SVGAttributes<SVGFEBlendElement>,
2726
2725
  SVGFilterPrimitiveAttributes {
2727
2726
  /**
2728
2727
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2737,14 +2736,31 @@ declare global {
2737
2736
  /**
2738
2737
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-feblend-mode
2739
2738
  */
2740
- mode?: AttrBlendMode;
2739
+ mode?:
2740
+ | AttrMissing
2741
+ | "normal"
2742
+ | "darken"
2743
+ | "multiply"
2744
+ | "color-burn"
2745
+ | "lighten"
2746
+ | "screen"
2747
+ | "color-dodge"
2748
+ | "overlay"
2749
+ | "soft-light"
2750
+ | "hard-light"
2751
+ | "difference"
2752
+ | "exclusion"
2753
+ | "hue"
2754
+ | "saturation"
2755
+ | "color"
2756
+ | "luminosity";
2741
2757
  }
2742
2758
 
2743
2759
  /**
2744
2760
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fecolormatrix
2745
2761
  */
2746
2762
  interface FEColorMatrix
2747
- extends SVGCoreAttributes<SVGFEColorMatrixElement>,
2763
+ extends SVGAttributes<SVGFEColorMatrixElement>,
2748
2764
  SVGFilterPrimitiveAttributes {
2749
2765
  /**
2750
2766
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2772,7 +2788,7 @@ declare global {
2772
2788
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fecomponenttransfer
2773
2789
  */
2774
2790
  interface FEComponentTransfer
2775
- extends SVGCoreAttributes<SVGFEComponentTransferElement>,
2791
+ extends SVGAttributes<SVGFEComponentTransferElement>,
2776
2792
  SVGFilterPrimitiveAttributes {
2777
2793
  /**
2778
2794
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2784,7 +2800,7 @@ declare global {
2784
2800
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fecomposite
2785
2801
  */
2786
2802
  interface FEComposite
2787
- extends SVGCoreAttributes<SVGFECompositeElement>,
2803
+ extends SVGAttributes<SVGFECompositeElement>,
2788
2804
  SVGFilterPrimitiveAttributes {
2789
2805
  /**
2790
2806
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2834,7 +2850,7 @@ declare global {
2834
2850
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-feconvolvematrix
2835
2851
  */
2836
2852
  interface FEConvolveMatrix
2837
- extends SVGCoreAttributes<SVGFEConvolveMatrixElement>,
2853
+ extends SVGAttributes<SVGFEConvolveMatrixElement>,
2838
2854
  SVGFilterPrimitiveAttributes {
2839
2855
  /**
2840
2856
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2892,7 +2908,7 @@ declare global {
2892
2908
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fediffuselighting
2893
2909
  */
2894
2910
  interface FEDiffuseLighting
2895
- extends SVGCoreAttributes<SVGFEDiffuseLightingElement>,
2911
+ extends SVGAttributes<SVGFEDiffuseLightingElement>,
2896
2912
  SVGFilterPrimitiveAttributes {
2897
2913
  /**
2898
2914
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2919,7 +2935,7 @@ declare global {
2919
2935
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fedisplacementmap
2920
2936
  */
2921
2937
  interface FEDisplacementMap
2922
- extends SVGCoreAttributes<SVGFEDisplacementMapElement>,
2938
+ extends SVGAttributes<SVGFEDisplacementMapElement>,
2923
2939
  SVGFilterPrimitiveAttributes {
2924
2940
  /**
2925
2941
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2951,7 +2967,7 @@ declare global {
2951
2967
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fedistantlight
2952
2968
  */
2953
2969
  interface FEDistantLight
2954
- extends SVGCoreAttributes<SVGFEDistantLightElement>,
2970
+ extends SVGAttributes<SVGFEDistantLightElement>,
2955
2971
  SVGFilterPrimitiveAttributes {
2956
2972
  /**
2957
2973
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -2973,7 +2989,7 @@ declare global {
2973
2989
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fedropshadow
2974
2990
  */
2975
2991
  interface FEDropShadow
2976
- extends SVGCoreAttributes<SVGFEDropShadowElement>,
2992
+ extends SVGAttributes<SVGFEDropShadowElement>,
2977
2993
  SVGFilterPrimitiveAttributes {
2978
2994
  /**
2979
2995
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -3000,42 +3016,42 @@ declare global {
3000
3016
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-feflood
3001
3017
  */
3002
3018
  interface FEFlood
3003
- extends SVGCoreAttributes<SVGFEFloodElement>,
3019
+ extends SVGAttributes<SVGFEFloodElement>,
3004
3020
  SVGFilterPrimitiveAttributes {}
3005
3021
 
3006
3022
  /**
3007
3023
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fefunca
3008
3024
  */
3009
3025
  interface FEFuncA
3010
- extends SVGCoreAttributes<SVGFEFuncAElement>,
3026
+ extends SVGAttributes<SVGFEFuncAElement>,
3011
3027
  SVGTransferFunctionElementAttributes {}
3012
3028
 
3013
3029
  /**
3014
3030
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fefuncb
3015
3031
  */
3016
3032
  interface FEFuncB
3017
- extends SVGCoreAttributes<SVGFEFuncBElement>,
3033
+ extends SVGAttributes<SVGFEFuncBElement>,
3018
3034
  SVGTransferFunctionElementAttributes {}
3019
3035
 
3020
3036
  /**
3021
3037
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fefuncg
3022
3038
  */
3023
3039
  interface FEFuncG
3024
- extends SVGCoreAttributes<SVGFEFuncGElement>,
3040
+ extends SVGAttributes<SVGFEFuncGElement>,
3025
3041
  SVGTransferFunctionElementAttributes {}
3026
3042
 
3027
3043
  /**
3028
3044
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fefuncr
3029
3045
  */
3030
3046
  interface FEFuncR
3031
- extends SVGCoreAttributes<SVGFEFuncRElement>,
3047
+ extends SVGAttributes<SVGFEFuncRElement>,
3032
3048
  SVGTransferFunctionElementAttributes {}
3033
3049
 
3034
3050
  /**
3035
3051
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fegaussianblur
3036
3052
  */
3037
3053
  interface FEGaussianBlur
3038
- extends SVGCoreAttributes<SVGFEGaussianBlurElement>,
3054
+ extends SVGAttributes<SVGFEGaussianBlurElement>,
3039
3055
  SVGFilterPrimitiveAttributes {
3040
3056
  /**
3041
3057
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -3057,7 +3073,7 @@ declare global {
3057
3073
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-feimage
3058
3074
  */
3059
3075
  interface FEImage
3060
- extends SVGCoreAttributes<SVGFEImageElement>,
3076
+ extends SVGAttributes<SVGFEImageElement>,
3061
3077
  SVGFilterPrimitiveAttributes {
3062
3078
  /**
3063
3079
  * @see https://www.w3.org/TR/2011/REC-SVG11-20110816/struct.html#ExternalResourcesRequiredAttribute
@@ -3079,13 +3095,13 @@ declare global {
3079
3095
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-femerge
3080
3096
  */
3081
3097
  interface FEMerge
3082
- extends SVGCoreAttributes<SVGFEMergeElement>,
3098
+ extends SVGAttributes<SVGFEMergeElement>,
3083
3099
  SVGFilterPrimitiveAttributes {}
3084
3100
 
3085
3101
  /**
3086
3102
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-femergenode
3087
3103
  */
3088
- interface FEMergeNode extends SVGCoreAttributes<SVGFEMergeNodeElement> {
3104
+ interface FEMergeNode extends SVGAttributes<SVGFEMergeNodeElement> {
3089
3105
  /**
3090
3106
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
3091
3107
  */
@@ -3095,7 +3111,7 @@ declare global {
3095
3111
  /**
3096
3112
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-femorphology
3097
3113
  */
3098
- interface FEMorphology extends SVGCoreAttributes<SVGFEMorphologyElement> {
3114
+ interface FEMorphology extends SVGAttributes<SVGFEMorphologyElement> {
3099
3115
  /**
3100
3116
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
3101
3117
  */
@@ -3106,7 +3122,7 @@ declare global {
3106
3122
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-feoffset
3107
3123
  */
3108
3124
  interface FEOffset
3109
- extends SVGCoreAttributes<SVGFEOffsetElement>,
3125
+ extends SVGAttributes<SVGFEOffsetElement>,
3110
3126
  SVGFilterPrimitiveAttributes {
3111
3127
  /**
3112
3128
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -3127,7 +3143,7 @@ declare global {
3127
3143
  /**
3128
3144
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fepointlight
3129
3145
  */
3130
- interface FEPointLight extends SVGCoreAttributes<SVGFEPointLightElement> {
3146
+ interface FEPointLight extends SVGAttributes<SVGFEPointLightElement> {
3131
3147
  /**
3132
3148
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fepointlight-x
3133
3149
  */
@@ -3148,7 +3164,7 @@ declare global {
3148
3164
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fespecularlighting
3149
3165
  */
3150
3166
  interface FESpecularLighting
3151
- extends SVGCoreAttributes<SVGFESpecularLightingElement>,
3167
+ extends SVGAttributes<SVGFESpecularLightingElement>,
3152
3168
  SVGFilterPrimitiveAttributes {
3153
3169
  /**
3154
3170
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -3179,7 +3195,7 @@ declare global {
3179
3195
  /**
3180
3196
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fespotlight
3181
3197
  */
3182
- interface FESpotLight extends SVGCoreAttributes<SVGFESpotLightElement> {
3198
+ interface FESpotLight extends SVGAttributes<SVGFESpotLightElement> {
3183
3199
  /**
3184
3200
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fespotlight-x
3185
3201
  */
@@ -3225,7 +3241,7 @@ declare global {
3225
3241
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-fetile
3226
3242
  */
3227
3243
  interface FETile
3228
- extends SVGCoreAttributes<SVGFETileElement>,
3244
+ extends SVGAttributes<SVGFETileElement>,
3229
3245
  SVGFilterPrimitiveAttributes {
3230
3246
  /**
3231
3247
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in
@@ -3237,7 +3253,7 @@ declare global {
3237
3253
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-feturbulence
3238
3254
  */
3239
3255
  interface FETurbulence
3240
- extends SVGCoreAttributes<SVGFETurbulenceElement>,
3256
+ extends SVGAttributes<SVGFETurbulenceElement>,
3241
3257
  SVGFilterPrimitiveAttributes {
3242
3258
  /**
3243
3259
  * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-feturbulence-basefrequency
@@ -3268,7 +3284,7 @@ declare global {
3268
3284
  /**
3269
3285
  * @see https://www.w3.org/TR/filter-effects-1/#elementdef-filter
3270
3286
  */
3271
- interface Filter extends SVGCoreAttributes<SVGFilterElement> {
3287
+ interface Filter extends SVGAttributes<SVGFilterElement> {
3272
3288
  /**
3273
3289
  * @see https://www.w3.org/TR/2011/REC-SVG11-20110816/struct.html#ExternalResourcesRequiredAttribute
3274
3290
  */
@@ -3309,7 +3325,7 @@ declare global {
3309
3325
  * @see https://www.w3.org/TR/SVG2/embedded.html#ForeignObjectElement
3310
3326
  */
3311
3327
  interface ForeignObject
3312
- extends SVGCoreAttributes<SVGForeignObjectElement>,
3328
+ extends SVGAttributes<SVGForeignObjectElement>,
3313
3329
  SVGConditionalProcessingAttributes {
3314
3330
  /**
3315
3331
  * @see https://www.w3.org/TR/SVG2/geometry.html#XProperty
@@ -3336,14 +3352,14 @@ declare global {
3336
3352
  * @see https://www.w3.org/TR/SVG2/struct.html#GElement
3337
3353
  */
3338
3354
  interface G
3339
- extends SVGCoreAttributes<SVGGElement>,
3355
+ extends SVGAttributes<SVGGElement>,
3340
3356
  SVGConditionalProcessingAttributes {}
3341
3357
 
3342
3358
  /**
3343
3359
  * @see https://www.w3.org/TR/SVG2/embedded.html#ImageElement
3344
3360
  */
3345
3361
  interface Image
3346
- extends SVGCoreAttributes<SVGImageElement>,
3362
+ extends SVGAttributes<SVGImageElement>,
3347
3363
  SVGConditionalProcessingAttributes {
3348
3364
  /**
3349
3365
  * @see https://www.w3.org/TR/SVG2/coords.html#PreserveAspectRatioAttribute
@@ -3385,7 +3401,7 @@ declare global {
3385
3401
  * @see https://www.w3.org/TR/SVG2/shapes.html#LineElement
3386
3402
  */
3387
3403
  interface Line
3388
- extends SVGCoreAttributes<SVGLineElement>,
3404
+ extends SVGAttributes<SVGLineElement>,
3389
3405
  SVGConditionalProcessingAttributes {
3390
3406
  /**
3391
3407
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -3416,8 +3432,7 @@ declare global {
3416
3432
  /**
3417
3433
  * @see https://www.w3.org/TR/SVG2/pservers.html#LinearGradientElement
3418
3434
  */
3419
- interface LinearGradient
3420
- extends SVGCoreAttributes<SVGLinearGradientElement> {
3435
+ interface LinearGradient extends SVGAttributes<SVGLinearGradientElement> {
3421
3436
  /**
3422
3437
  * @see https://www.w3.org/TR/SVG2/pservers.html#LinearGradientElementX1Attribute
3423
3438
  */
@@ -3462,7 +3477,7 @@ declare global {
3462
3477
  /**
3463
3478
  * @see https://www.w3.org/TR/SVG2/painting.html#MarkerElement
3464
3479
  */
3465
- interface Marker extends SVGCoreAttributes<SVGMarkerElement> {
3480
+ interface Marker extends SVGAttributes<SVGMarkerElement> {
3466
3481
  /**
3467
3482
  * @see https://www.w3.org/TR/SVG2/coords.html#ViewBoxAttribute
3468
3483
  */
@@ -3513,7 +3528,7 @@ declare global {
3513
3528
  * @see https://www.w3.org/TR/css-masking-1/#elementdef-mask
3514
3529
  */
3515
3530
  interface Mask
3516
- extends SVGCoreAttributes<SVGMaskElement>,
3531
+ extends SVGAttributes<SVGMaskElement>,
3517
3532
  SVGConditionalProcessingAttributes {
3518
3533
  /**
3519
3534
  * @see https://www.w3.org/TR/css-masking-1/#element-attrdef-mask-x
@@ -3549,13 +3564,13 @@ declare global {
3549
3564
  /**
3550
3565
  * @see https://www.w3.org/TR/SVG2/struct.html#MetadataElement
3551
3566
  */
3552
- interface Metadata extends SVGCoreAttributes<SVGMetadataElement> {}
3567
+ interface Metadata extends SVGAttributes<SVGMetadataElement> {}
3553
3568
 
3554
3569
  /**
3555
3570
  * @see https://svgwg.org/specs/animations/#MPathElement
3556
3571
  */
3557
3572
  interface MPath
3558
- extends SVGCoreAttributes<SVGMPathElement>,
3573
+ extends SVGAttributes<SVGMPathElement>,
3559
3574
  SVGConditionalProcessingAttributes {
3560
3575
  /**
3561
3576
  * @see https://svgwg.org/specs/animations/#MPathElementHrefAttribute
@@ -3567,7 +3582,7 @@ declare global {
3567
3582
  * @see https://www.w3.org/TR/SVG2/paths.html#PathElement
3568
3583
  */
3569
3584
  interface Path
3570
- extends SVGCoreAttributes<SVGPathElement>,
3585
+ extends SVGAttributes<SVGPathElement>,
3571
3586
  SVGConditionalProcessingAttributes {
3572
3587
  /**
3573
3588
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -3583,7 +3598,7 @@ declare global {
3583
3598
  /**
3584
3599
  * @see https://www.w3.org/TR/SVG2/pservers.html#PatternElement
3585
3600
  */
3586
- interface Pattern extends SVGCoreAttributes<SVGPatternElement> {
3601
+ interface Pattern extends SVGAttributes<SVGPatternElement> {
3587
3602
  /**
3588
3603
  * @see https://www.w3.org/TR/SVG2/coords.html#ViewBoxAttribute
3589
3604
  */
@@ -3642,7 +3657,7 @@ declare global {
3642
3657
  * @see https://www.w3.org/TR/SVG2/shapes.html#PolygonElement
3643
3658
  */
3644
3659
  interface Polygon
3645
- extends SVGCoreAttributes<SVGPolygonElement>,
3660
+ extends SVGAttributes<SVGPolygonElement>,
3646
3661
  SVGConditionalProcessingAttributes {
3647
3662
  /**
3648
3663
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -3659,7 +3674,7 @@ declare global {
3659
3674
  * @see https://www.w3.org/TR/SVG2/shapes.html#PolylineElement
3660
3675
  */
3661
3676
  interface Polyline
3662
- extends SVGCoreAttributes<SVGPolylineElement>,
3677
+ extends SVGAttributes<SVGPolylineElement>,
3663
3678
  SVGConditionalProcessingAttributes {
3664
3679
  /**
3665
3680
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -3675,8 +3690,7 @@ declare global {
3675
3690
  /**
3676
3691
  * @see https://www.w3.org/TR/SVG2/pservers.html#RadialGradientElement
3677
3692
  */
3678
- interface RadialGradient
3679
- extends SVGCoreAttributes<SVGRadialGradientElement> {
3693
+ interface RadialGradient extends SVGAttributes<SVGRadialGradientElement> {
3680
3694
  /**
3681
3695
  * @see https://www.w3.org/TR/SVG2/pservers.html#RadialGradientElementCXAttribute
3682
3696
  */
@@ -3732,7 +3746,7 @@ declare global {
3732
3746
  * @see https://www.w3.org/TR/SVG2/shapes.html#RectElement
3733
3747
  */
3734
3748
  interface Rect
3735
- extends SVGCoreAttributes<SVGRectElement>,
3749
+ extends SVGAttributes<SVGRectElement>,
3736
3750
  SVGConditionalProcessingAttributes {
3737
3751
  /**
3738
3752
  * @see https://www.w3.org/TR/SVG2/paths.html#PathLengthAttribute
@@ -3774,7 +3788,7 @@ declare global {
3774
3788
  * @see https://svgwg.org/specs/animations/#SetElement
3775
3789
  */
3776
3790
  interface Set
3777
- extends SVGCoreAttributes<SVGSetElement>,
3791
+ extends Omit<SVGAttributes<SVGSetElement>, "fill">,
3778
3792
  SVGAnimationTargetElementAttributes,
3779
3793
  SVGAnimationAttributeTargetAttributes,
3780
3794
  SVGAnimationTimingAttributes,
@@ -3788,7 +3802,7 @@ declare global {
3788
3802
  /**
3789
3803
  * @see https://www.w3.org/TR/SVG2/pservers.html#StopElement
3790
3804
  */
3791
- interface Stop extends SVGCoreAttributes<SVGStopElement> {
3805
+ interface Stop extends SVGAttributes<SVGStopElement> {
3792
3806
  /**
3793
3807
  * @see https://www.w3.org/TR/SVG2/pservers.html#StopElementOffsetAttribute
3794
3808
  */
@@ -3799,7 +3813,7 @@ declare global {
3799
3813
  * @see https://www.w3.org/TR/SVG2/struct.html#SVGElement
3800
3814
  */
3801
3815
  interface SVG
3802
- extends SVGCoreAttributes<SVGSVGElement>,
3816
+ extends SVGAttributes<SVGSVGElement>,
3803
3817
  SVGConditionalProcessingAttributes {
3804
3818
  /**
3805
3819
  * A list of four numbers `<min-x>`, `<min-y>`, `<width>` and `<height>`, separated by whitespace and/or a comma
@@ -3842,13 +3856,13 @@ declare global {
3842
3856
  * @see https://www.w3.org/TR/SVG2/struct.html#SwitchElement
3843
3857
  */
3844
3858
  interface Switch
3845
- extends SVGCoreAttributes<SVGSwitchElement>,
3859
+ extends SVGAttributes<SVGSwitchElement>,
3846
3860
  SVGConditionalProcessingAttributes {}
3847
3861
 
3848
3862
  /**
3849
3863
  * @see https://www.w3.org/TR/SVG2/struct.html#SymbolElement
3850
3864
  */
3851
- interface Symbol extends SVGCoreAttributes<SVGSymbolElement> {
3865
+ interface Symbol extends SVGAttributes<SVGSymbolElement> {
3852
3866
  /**
3853
3867
  * @see https://www.w3.org/TR/SVG2/coords.html#PreserveAspectRatioAttribute
3854
3868
  */
@@ -3906,7 +3920,7 @@ declare global {
3906
3920
  * @see https://www.w3.org/TR/SVG2/text.html#TextElement
3907
3921
  */
3908
3922
  interface Text
3909
- extends SVGCoreAttributes<SVGTextElement>,
3923
+ extends SVGAttributes<SVGTextElement>,
3910
3924
  SVGConditionalProcessingAttributes {
3911
3925
  /**
3912
3926
  * @see https://www.w3.org/TR/SVG2/text.html#TextElementLengthAdjustAttribute
@@ -3948,7 +3962,7 @@ declare global {
3948
3962
  * @see https://www.w3.org/TR/SVG2/text.html#TextPathElement
3949
3963
  */
3950
3964
  interface TextPath
3951
- extends SVGCoreAttributes<SVGTextPathElement>,
3965
+ extends SVGAttributes<SVGTextPathElement>,
3952
3966
  SVGConditionalProcessingAttributes {
3953
3967
  /**
3954
3968
  * @see https://www.w3.org/TR/SVG2/text.html#TextElementLengthAdjustAttribute
@@ -3994,13 +4008,13 @@ declare global {
3994
4008
  /**
3995
4009
  * @see https://www.w3.org/TR/SVG2/struct.html#TitleElement
3996
4010
  */
3997
- interface Title extends SVGCoreAttributes<SVGTitleElement> {}
4011
+ interface Title extends SVGAttributes<SVGTitleElement> {}
3998
4012
 
3999
4013
  /**
4000
4014
  * @see https://www.w3.org/TR/SVG2/text.html#TextElement
4001
4015
  */
4002
4016
  interface TSpan
4003
- extends SVGCoreAttributes<SVGTSpanElement>,
4017
+ extends SVGAttributes<SVGTSpanElement>,
4004
4018
  SVGConditionalProcessingAttributes {
4005
4019
  /**
4006
4020
  * @see https://www.w3.org/TR/SVG2/text.html#TextElementLengthAdjustAttribute
@@ -4042,7 +4056,7 @@ declare global {
4042
4056
  * @see https://www.w3.org/TR/SVG2/struct.html#UseElement
4043
4057
  */
4044
4058
  interface Use
4045
- extends SVGCoreAttributes<SVGUseElement>,
4059
+ extends SVGAttributes<SVGUseElement>,
4046
4060
  SVGConditionalProcessingAttributes {
4047
4061
  /**
4048
4062
  * @see https://www.w3.org/TR/SVG2/struct.html#UseElementHrefAttribute
@@ -4073,7 +4087,7 @@ declare global {
4073
4087
  /**
4074
4088
  * @see https://www.w3.org/TR/SVG2/linking.html#ViewElement
4075
4089
  */
4076
- interface View extends SVGCoreAttributes<SVGViewElement> {
4090
+ interface View extends SVGAttributes<SVGViewElement> {
4077
4091
  /**
4078
4092
  * @see https://www.w3.org/TR/SVG2/coords.html#ViewBoxAttribute
4079
4093
  */
@@ -4091,41 +4105,8 @@ declare global {
4091
4105
  }
4092
4106
  }
4093
4107
 
4094
- interface Directives {
4095
- /**
4096
- * Used to uniquely identify a tag within a template in order
4097
- * to get an element reference to it later.
4098
- *
4099
- * @see Marko.Component.getEl
4100
- * @see Marko.Component.getComponent
4101
- */
4102
- key?: AttrString;
4103
-
4104
- /**
4105
- * Tells Marko to avoid updating the element or its contents (excluding custom tags which may rerender independently).
4106
- */
4107
- "no-update"?: AttrBoolean;
4108
-
4109
- /**
4110
- * Tells Marko to avoid updating an element's contents (excluding custom tags which may rerender independently). Used instead of no-update when runtime functionality is needed.
4111
- */
4112
- "no-update-if"?: AttrBoolean;
4113
-
4114
- /**
4115
- * Tells Marko to avoid updating an element's body.
4116
- */
4117
- "no-update-body"?: AttrBoolean;
4118
-
4119
- /**
4120
- * Tells Marko to avoid updating an element's body. Used instead of no-update-body when runtime functionality is needed.
4121
- * @see https://markojs.com/docs/syntax/#conditional-rendering
4122
- */
4123
- "no-update-body-if"?: AttrBoolean;
4124
- }
4125
-
4126
4108
  interface HTMLAttributes<T extends Element = Element>
4127
- extends AriaAttributes,
4128
- EventAttributes<T> {
4109
+ extends CommonAttributes<T> {
4129
4110
  /**
4130
4111
  * Specifies a keyboard shortcut to activate or focus on an element.
4131
4112
  * @see https://html.spec.whatwg.org/multipage/interaction.html#the-accesskey-attribute
@@ -4347,7 +4328,7 @@ declare global {
4347
4328
  * @see Marko.Body
4348
4329
  */
4349
4330
  content?:
4350
- | AttrMissing
4331
+ | AttrString
4351
4332
  | Marko.Body<[], void>
4352
4333
  | Marko.Template<Record<any, never>, void>;
4353
4334
 
@@ -4356,13 +4337,11 @@ declare global {
4356
4337
  * information to be exchanged between the HTML and its DOM representation by scripts.
4357
4338
  * @see https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes
4358
4339
  */
4359
- [data: `data-${string}`]: AttrMissing | string | number | boolean;
4340
+ [data: `data-${string}`]: AttrStringOrNumber | boolean;
4360
4341
  }
4361
4342
 
4362
- interface SVGCoreAttributes<T extends Element = Element>
4363
- extends AriaAttributes,
4364
- EventAttributes,
4365
- SVGPresentationAttributes {
4343
+ interface SVGAttributes<T extends Element = Element>
4344
+ extends CommonAttributes<T> {
4366
4345
  /**
4367
4346
  * @see https://www.w3.org/TR/SVG2/struct.html#IDAttribute
4368
4347
  */
@@ -4398,20 +4377,11 @@ declare global {
4398
4377
  * Provide body content for the tag as a Marko.Body.
4399
4378
  * @see Marko.Body
4400
4379
  */
4401
- content?: Marko.Body<[], void>;
4402
-
4403
- /**
4404
- * @see https://www.w3.org/TR/SVG2/struct.html#DataAttributes
4405
- */
4406
- [data: `data-${string}`]: AttrMissing | string | number | boolean;
4407
- }
4380
+ content?:
4381
+ | AttrString
4382
+ | Marko.Body<[], void>
4383
+ | Marko.Template<Record<any, never>, void>;
4408
4384
 
4409
- /**
4410
- * The SVG spec isn't _exactly_ the same as the CSS spec so
4411
- * some of these properties might have extra or incorrect values.
4412
- * If you need something that's missing, please submit a PR
4413
- */
4414
- interface SVGPresentationAttributes {
4415
4385
  "alignment-baseline"?: AttrMissing | csstype.Property.AlignmentBaseline;
4416
4386
  "baseline-shift"?: AttrMissing | csstype.Property.BaselineShift | number;
4417
4387
  clip?: AttrMissing | csstype.Property.Clip | number;
@@ -4434,7 +4404,7 @@ declare global {
4434
4404
  * @see https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty
4435
4405
  */
4436
4406
  "enable-background"?: AttrMissing | "accumulate" | "new" | (string & {});
4437
- fill?: AttrMissing | csstype.Property.Fill;
4407
+ fill?: AttrMissing | "freeze" | "remove" | csstype.Property.Fill;
4438
4408
  "fill-opacity"?: AttrMissing | csstype.Property.FillOpacity | number;
4439
4409
  "fill-rule"?: AttrMissing | csstype.Property.FillRule;
4440
4410
  filter?: AttrMissing | csstype.Property.Filter;
@@ -4500,1389 +4470,1382 @@ declare global {
4500
4470
  visibility?: AttrMissing | csstype.Property.Visibility;
4501
4471
  "word-spacing"?: AttrMissing | csstype.Property.WordSpacing | number;
4502
4472
  "writing-mode"?: AttrMissing | csstype.Property.WritingMode;
4503
- }
4504
-
4505
- interface SVGTransferFunctionElementAttributes {
4506
- /**
4507
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-type
4508
- */
4509
- type?:
4510
- | AttrMissing
4511
- | "identity"
4512
- | "table"
4513
- | "discrete"
4514
- | "linear"
4515
- | "gamma";
4516
-
4517
- /**
4518
- * List of numbers
4519
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-tablevalues
4520
- */
4521
- tableValues?: AttrStringOrNumber;
4522
-
4523
- /**
4524
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-slope
4525
- */
4526
- slope?: AttrStringOrNumber;
4527
-
4528
- /**
4529
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-intercept
4530
- */
4531
- intercept?: AttrStringOrNumber;
4532
-
4533
- /**
4534
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-amplitude
4535
- */
4536
- amplitude?: AttrStringOrNumber;
4537
-
4538
- /**
4539
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-exponent
4540
- */
4541
- exponent?: AttrStringOrNumber;
4542
-
4543
- /**
4544
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-offset
4545
- */
4546
- offset?: AttrStringOrNumber;
4547
- }
4548
-
4549
- interface SVGAnimationAdditionAttributes {
4550
- /**
4551
- * @see https://svgwg.org/specs/animations/#AdditiveAttribute
4552
- */
4553
- additive?: AttrMissing | "replace" | "sum";
4554
-
4555
- /**
4556
- * @see https://svgwg.org/specs/animations/#AccumulateAttribute
4557
- */
4558
- accumulate?: AttrMissing | "none" | "sum";
4559
- }
4560
-
4561
- interface SVGAnimationTargetElementAttributes {
4562
- /**
4563
- * @see https://svgwg.org/specs/animations/#HrefAttribute
4564
- */
4565
- href?: AttrString;
4566
- }
4567
-
4568
- interface SVGAnimationAttributeTargetAttributes {
4569
- /**
4570
- * @see https://svgwg.org/specs/animations/#AttributeNameAttribute
4571
- */
4572
- attributeName?: AttrString;
4573
- }
4574
-
4575
- interface SVGAnimationTimingAttributes {
4576
- /**
4577
- * A semicolon separated list of values
4578
- * @see https://svgwg.org/specs/animations/#BeginAttribute
4579
- */
4580
- begin?: AttrString;
4581
-
4582
- /**
4583
- * @see https://svgwg.org/specs/animations/#DurAttribute
4584
- */
4585
- dur?: AttrMissing | "media" | "indefinite" | number | (string & {});
4586
-
4587
- /**
4588
- * A semicolon separated list of values
4589
- * @see https://svgwg.org/specs/animations/#EndAttribute
4590
- */
4591
- end?: AttrString;
4592
-
4593
- /**
4594
- * @see https://svgwg.org/specs/animations/#MinAttribute
4595
- */
4596
- min?: AttrMissing | "media" | number | (string & {});
4597
-
4598
- /**
4599
- * @see https://svgwg.org/specs/animations/#MaxAttribute
4600
- */
4601
- max?: AttrMissing | "media" | number | (string & {});
4602
-
4603
- /**
4604
- * @see https://svgwg.org/specs/animations/#RestartAttribute
4605
- */
4606
- restart?: AttrMissing | "always" | "whenNotActive" | "never";
4607
-
4608
- /**
4609
- * @see https://svgwg.org/specs/animations/#RepeatCountAttribute
4610
- */
4611
- repeatCount?: AttrMissing | AttrNumber | "indefinite";
4612
-
4613
- /**
4614
- * @see https://svgwg.org/specs/animations/#RepeatDurAttribute
4615
- */
4616
- repeatDur?: AttrMissing | AttrNumber | "indefinite";
4617
-
4618
- /**
4619
- * @see https://svgwg.org/specs/animations/#FillAttribute
4620
- */
4621
- fill?: AttrMissing | "freeze" | "remove";
4622
- }
4623
-
4624
- interface SVGAnimationValueAttributes {
4625
- /**
4626
- * @see https://svgwg.org/specs/animations/#CalcModeAttribute
4627
- */
4628
- calcMode?: AttrMissing | "discrete" | "linear" | "paced" | "spline";
4629
-
4630
- /**
4631
- * A semicolon-separated list of values
4632
- * @see https://svgwg.org/specs/animations/#ValuesAttribute
4633
- */
4634
- values?: AttrString;
4635
-
4636
- /**
4637
- * A semicolon-separated list of numbers
4638
- * @see https://svgwg.org/specs/animations/#KeyTimesAttribute
4639
- */
4640
- keyTimes?: AttrStringOrNumber;
4641
-
4642
- /**
4643
- * A semicolon-separated list of Bézier control points
4644
- * @see https://svgwg.org/specs/animations/#KeySplinesAttribute
4645
- */
4646
- keySplines?: AttrString;
4647
-
4648
- /**
4649
- * @see https://svgwg.org/specs/animations/#FromAttribute
4650
- */
4651
- from?: AttrStringOrNumber;
4652
-
4653
- /**
4654
- * @see https://svgwg.org/specs/animations/#FromAttribute
4655
- */
4656
- to?: AttrStringOrNumber;
4657
-
4658
- /**
4659
- * @see https://svgwg.org/specs/animations/#FromAttribute
4660
- */
4661
- by?: AttrStringOrNumber;
4662
- }
4663
-
4664
- interface SVGConditionalProcessingAttributes {
4665
- /**
4666
- * Set of space-separated tokens
4667
- * @see https://www.w3.org/TR/SVG2/struct.html#RequiredExtensionsAttribute
4668
- */
4669
- requiredExtensions?: AttrString;
4670
-
4671
- /**
4672
- * Set of comma-separated tokens
4673
- * @see https://www.w3.org/TR/SVG2/struct.html#SystemLanguageAttribute
4674
- */
4675
- systemLanguage?: AttrString;
4676
- }
4677
-
4678
- interface SVGFilterPrimitiveAttributes {
4679
- /**
4680
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-x
4681
- */
4682
- x?: AttrStringOrNumber;
4683
4473
 
4684
4474
  /**
4685
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-y
4686
- */
4687
- y?: AttrStringOrNumber;
4688
-
4689
- /**
4690
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-height
4691
- */
4692
- height?: AttrStringOrNumber;
4693
-
4694
- /**
4695
- * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-result
4475
+ * @see https://www.w3.org/TR/SVG2/struct.html#DataAttributes
4696
4476
  */
4697
- result?: AttrString;
4477
+ [data: `data-${string}`]: AttrStringOrNumber | boolean;
4698
4478
  }
4479
+ }
4480
+ }
4699
4481
 
4700
- interface EventAttributes<T extends Element> {
4701
- /**
4702
- * Fired when resource was not fully loaded, but not as the result of an error.
4703
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-abort
4704
- */
4705
- onAbort?: AttrEventHandler<Event, T>;
4706
- "on-abort"?: this["onAbort"];
4707
- onabort?: AttrString;
4708
-
4709
- /**
4710
- * Fired when an Animation unexpectedly aborts.
4711
- * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationcancel
4712
- */
4713
- onAnimationCancel?: AttrEventHandler<AnimationEvent, T>;
4714
- "on-animationcancel"?: this["onAnimationCancel"];
4715
-
4716
- /**
4717
- * Fired when an animation has completed.
4718
- * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationend
4719
- */
4720
- onAnimationEnd?: AttrEventHandler<AnimationEvent, T>;
4721
- "on-animationend"?: this["onAnimationEnd"];
4722
-
4723
- /**
4724
- * Fired at the end of each iteration of an animation, except when an animationend event would fire at the same time.
4725
- * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationiteration
4726
- */
4727
- onAnimationIteration?: AttrEventHandler<AnimationEvent, T>;
4728
- "on-animationiteration"?: this["onAnimationIteration"];
4729
-
4730
- /**
4731
- * Fired when an animation has started.
4732
- * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationstart
4733
- */
4734
- onAnimationStart?: AttrEventHandler<AnimationEvent, T>;
4735
- "on-animationstart"?: this["onAnimationStart"];
4736
-
4737
- /**
4738
- * Fired when a non-primary pointing device button (any mouse button other than the primary—usually leftmost—button)
4739
- * has been pressed and released both within the same element.
4740
- * @see https://w3c.github.io/uievents/#event-type-auxclick
4741
- */
4742
- onAuxClick?: AttrEventHandler<PointerEvent, T>;
4743
- "on-auxclick"?: this["onAuxClick"];
4744
- onauxclick?: AttrString;
4745
-
4746
- /**
4747
- * Fires when the value of an <input>, or <textarea> element is about to be modified.
4748
- * @see https://w3c.github.io/uievents/#event-type-beforeinput
4749
- */
4750
- onBeforeInput?: AttrEventHandler<InputEvent, T>;
4751
- "on-beforeinput"?: this["onBeforeInput"];
4752
- onbeforeinput?: AttrString;
4753
-
4754
- /**
4755
- * Fired on elements with the hidden=until-found attribute before they are revealed.
4756
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforematch
4757
- */
4758
- onBeforeMatch?: AttrEventHandler<Event, T>;
4759
- "on-beforematch"?: this["onBeforeMatch"];
4760
- onbeforematch?: AttrString;
4761
-
4762
- /**
4763
- * Fired on elements with the popover attribute when they are transitioning between showing and hidden
4764
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforetoggle
4765
- */
4766
- onBeforeToggle?: AttrEventHandler<Event, T>;
4767
- "on-beforetoggle"?: this["onBeforeToggle"];
4768
- onbeforetoggle?: AttrString;
4769
-
4770
- /**
4771
- * Fires when a node loses focus.
4772
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-blur
4773
- */
4774
- onBlur?: AttrEventHandler<Event, T>;
4775
- "on-blur"?: this["onBlur"];
4776
- onblur?: AttrString;
4777
-
4778
- /**
4779
- * Fired at controls when the user commits a value change (see also the input event)
4780
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-cancel
4781
- */
4782
- onCancel?: AttrEventHandler<Event, T>;
4783
- "on-cancel"?: this["onCancel"];
4784
- oncancel?: AttrString;
4785
-
4786
- /**
4787
- * Fires when the user agent can resume playback of the media data,
4788
- * but estimates that if playback were to be started now, the media resource could not be rendered at the current
4789
- * playback rate up to its end without having to stop for further buffering of content.
4790
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplay
4791
- */
4792
- onCanPlay?: AttrEventHandler<Event, T>;
4793
- "on-canplay"?: this["onCanPlay"];
4794
- oncanplay?: AttrString;
4795
-
4796
- /**
4797
- * Fires when the user agent can play through the media data without having to stop for further buffering of content.
4798
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplaythrough
4799
- */
4800
- onCanPlayThrough?: AttrEventHandler<Event, T>;
4801
- "on-canplaythrough"?: this["onCanPlayThrough"];
4802
- oncanplaythrough?: AttrString;
4803
-
4804
- /**
4805
- * Fired when the form elements value is modified.
4806
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-change
4807
- */
4808
- onChange?: AttrEventHandler<Event, T>;
4809
- "on-change"?: this["onChange"];
4810
- onchange?: AttrString;
4811
-
4812
- /**
4813
- * Normally a mouse event; also synthetically fired at an element before its activation behavior is run,
4814
- * when an element is activated from a non-pointer input device (e.g. a keyboard).
4815
- * @see https://w3c.github.io/uievents/#event-type-click
4816
- */
4817
- onClick?: AttrEventHandler<PointerEvent, T>;
4818
- "on-click"?: this["onClick"];
4819
- onclick?: AttrString;
4820
-
4821
- /**
4822
- * Fired at dialog elements when they are closed
4823
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-close
4824
- */
4825
- onClose?: AttrEventHandler<Event, T>;
4826
- "on-close"?: this["onClose"];
4827
- onclose?: AttrString;
4828
-
4829
- /**
4830
- * Fired when a text composition system such as an input method editor completes or cancels the current composition session.
4831
- * @see https://w3c.github.io/uievents/#event-type-compositionend
4832
- */
4833
- onCompositionEnd?: AttrEventHandler<CompositionEvent, T>;
4834
- "on-compositionend"?: this["onCompositionEnd"];
4835
-
4836
- /**
4837
- * Fired when a text composition system such as an input method editor starts a new composition session.
4838
- * @see https://w3c.github.io/uievents/#event-type-compositionstart
4839
- */
4840
- onCompositionStart?: AttrEventHandler<CompositionEvent, T>;
4841
- "on-compositionstart"?: this["onCompositionStart"];
4842
-
4843
- /**
4844
- * Fired when a new character is received in the context of a text composition session controlled by a text
4845
- * composition system such as an input method editor.
4846
- * @see https://w3c.github.io/uievents/#event-type-compositionupdate
4847
- */
4848
- onCompositionUpdate?: AttrEventHandler<CompositionEvent, T>;
4849
- "on-compositionupdate"?: this["onCompositionUpdate"];
4850
-
4851
- /**
4852
- * Fired when the corresponding CanvasRenderingContext2D or OffscreenCanvasRenderingContext2D is lost
4853
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-contextlost
4854
- */
4855
- onContextLost?: AttrEventHandler<Event, T>;
4856
- "on-contextlost"?: this["onContextLost"];
4857
- oncontextlost?: AttrString;
4858
-
4859
- /**
4860
- * Fired when the user attempts to open a context menu.
4861
- * This event is typically triggered by clicking the right mouse button, or by pressing the context menu key.
4862
- * @see https://w3c.github.io/uievents/#event-type-contextmenu
4863
- */
4864
- onContextMenu?: AttrEventHandler<PointerEvent, T>;
4865
- "on-contextmenu"?: this["onContextMenu"];
4866
- oncontextmenu?: AttrString;
4867
-
4868
- /**
4869
- * Fired when the corresponding CanvasRenderingContext2D or OffscreenCanvasRenderingContext2D is restored after being lost
4870
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-contextrestored
4871
- */
4872
- onContextRestored?: AttrEventHandler<Event, T>;
4873
- "on-contextrestored"?: this["onContextRestored"];
4874
- oncontextrestored?: AttrString;
4875
-
4876
- /**
4877
- * Fired when the user copies the content of an element.
4878
- * @see https://w3c.github.io/clipboard-apis/#clipboard-event-copy
4879
- */
4880
- onCopy?: AttrEventHandler<ClipboardEvent, T>;
4881
- "on-copy"?: this["onCopy"];
4882
- oncopy?: AttrString;
4883
-
4884
- /**
4885
- * Fired when one or more cues in the track have become active or stopped being active.
4886
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-cuechange
4887
- */
4888
- onCueChange?: AttrEventHandler<Event, T>;
4889
- "on-cuechange"?: this["onCueChange"];
4890
- oncuechange?: AttrString;
4891
-
4892
- /**
4893
- * Fired when the user cuts the content of an element.
4894
- * @see https://w3c.github.io/clipboard-apis/#clipboard-event-cut
4895
- */
4896
- onCut?: AttrEventHandler<ClipboardEvent, T>;
4897
- "on-cut"?: this["onCut"];
4898
- oncut?: AttrString;
4899
-
4900
- /**
4901
- * Fired when the user double-clicks on an element.
4902
- * @see https://w3c.github.io/uievents/#event-type-dblclick
4903
- */
4904
- onDblClick?: AttrEventHandler<MouseEvent, T>;
4905
- "on-dblclick"?: this["onDblClick"];
4906
- ondblclick?: AttrString;
4907
-
4908
- /**
4909
- * Fired every few hundred milliseconds as an element or text selection is being dragged by the user.
4910
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-drag
4911
- */
4912
- onDrag?: AttrEventHandler<DragEvent, T>;
4913
- "on-drag"?: this["onDrag"];
4914
- ondrag?: AttrString;
4915
-
4916
- /**
4917
- * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
4918
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragend
4919
- */
4920
- onDragEnd?: AttrEventHandler<DragEvent, T>;
4921
- "on-dragend"?: this["onDragEnd"];
4922
- ondragend?: AttrString;
4923
-
4924
- /**
4925
- * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
4926
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragenter
4927
- */
4928
- onDragEnter?: AttrEventHandler<DragEvent, T>;
4929
- "on-dragenter"?: this["onDragEnter"];
4930
- ondragenter?: AttrString;
4931
-
4932
- /**
4933
- * Fired when a dragged element or text selection leaves a valid drop target.
4934
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragleave
4935
- */
4936
- onDragLeave?: AttrEventHandler<DragEvent, T>;
4937
- "on-dragleave"?: this["onDragLeave"];
4938
- ondragleave?: AttrString;
4939
-
4940
- /**
4941
- * Fired an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).
4942
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragover
4943
- */
4944
- onDragOver?: AttrEventHandler<DragEvent, T>;
4945
- "on-dragover"?: this["onDragOver"];
4946
- ondragover?: AttrString;
4947
-
4948
- /**
4949
- * Fired when an element or text selection has started being dragged.
4950
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragstart
4951
- */
4952
- onDragStart?: AttrEventHandler<DragEvent, T>;
4953
- "on-dragstart"?: this["onDragStart"];
4954
- ondragstart?: AttrString;
4482
+ interface SVGTransferFunctionElementAttributes {
4483
+ /**
4484
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-type
4485
+ */
4486
+ type?: AttrMissing | "identity" | "table" | "discrete" | "linear" | "gamma";
4487
+
4488
+ /**
4489
+ * List of numbers
4490
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-tablevalues
4491
+ */
4492
+ tableValues?: AttrStringOrNumber;
4493
+
4494
+ /**
4495
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-slope
4496
+ */
4497
+ slope?: AttrStringOrNumber;
4498
+
4499
+ /**
4500
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-intercept
4501
+ */
4502
+ intercept?: AttrStringOrNumber;
4503
+
4504
+ /**
4505
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-amplitude
4506
+ */
4507
+ amplitude?: AttrStringOrNumber;
4508
+
4509
+ /**
4510
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-exponent
4511
+ */
4512
+ exponent?: AttrStringOrNumber;
4513
+
4514
+ /**
4515
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-fecomponenttransfer-offset
4516
+ */
4517
+ offset?: AttrStringOrNumber;
4518
+ }
4955
4519
 
4956
- /**
4957
- * Fired when an element or text selection is dropped on a valid drop target.
4958
- * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-drop
4959
- */
4960
- onDrop?: AttrEventHandler<DragEvent, T>;
4961
- "on-drop"?: this["onDrop"];
4962
- ondrop?: AttrString;
4520
+ interface SVGAnimationAdditionAttributes {
4521
+ /**
4522
+ * @see https://svgwg.org/specs/animations/#AdditiveAttribute
4523
+ */
4524
+ additive?: AttrMissing | "replace" | "sum";
4963
4525
 
4964
- /**
4965
- * Fired when the duration attribute of a media element has just been updated.
4966
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-durationchange
4967
- */
4968
- onDurationChange?: AttrEventHandler<Event, T>;
4969
- "on-durationchange"?: this["onDurationChange"];
4970
- ondurationchange?: AttrString;
4526
+ /**
4527
+ * @see https://svgwg.org/specs/animations/#AccumulateAttribute
4528
+ */
4529
+ accumulate?: AttrMissing | "none" | "sum";
4530
+ }
4971
4531
 
4972
- /**
4973
- * Fired when a media element's playback stops because its source data has been fully consumed and not looped.
4974
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-emptied
4975
- */
4976
- onEmptied?: AttrEventHandler<Event, T>;
4977
- "on-emptied"?: this["onEmptied"];
4978
- onemptied?: AttrString;
4532
+ interface SVGAnimationTargetElementAttributes {
4533
+ /**
4534
+ * @see https://svgwg.org/specs/animations/#HrefAttribute
4535
+ */
4536
+ href?: AttrString;
4537
+ }
4979
4538
 
4980
- /**
4981
- * Fired when an encrypted media stream is encountered and the user agent recognizes the stream's encryption scheme.
4982
- * @see https://w3c.github.io/encrypted-media/#dom-evt-encrypted
4983
- */
4984
- onEncrypted?: AttrEventHandler<MediaEncryptedEvent, T>;
4985
- "on-encrypted"?: this["onEncrypted"];
4539
+ interface SVGAnimationAttributeTargetAttributes {
4540
+ /**
4541
+ * @see https://svgwg.org/specs/animations/#AttributeNameAttribute
4542
+ */
4543
+ attributeName?: AttrString;
4544
+ }
4986
4545
 
4987
- /**
4988
- * Fired when playback of a media element reaches its end, either because the media has reached its end or the loop attribute is not set.
4989
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ended
4990
- */
4991
- onEnded?: AttrEventHandler<Event, T>;
4992
- "on-ended"?: this["onEnded"];
4993
- onended?: AttrString;
4546
+ interface SVGAnimationTimingAttributes {
4547
+ /**
4548
+ * A semicolon separated list of values
4549
+ * @see https://svgwg.org/specs/animations/#BeginAttribute
4550
+ */
4551
+ begin?: AttrString;
4552
+
4553
+ /**
4554
+ * @see https://svgwg.org/specs/animations/#DurAttribute
4555
+ */
4556
+ dur?: AttrMissing | "media" | "indefinite" | number | (string & {});
4557
+
4558
+ /**
4559
+ * A semicolon separated list of values
4560
+ * @see https://svgwg.org/specs/animations/#EndAttribute
4561
+ */
4562
+ end?: AttrString;
4563
+
4564
+ /**
4565
+ * @see https://svgwg.org/specs/animations/#MinAttribute
4566
+ */
4567
+ min?: AttrMissing | "media" | number | (string & {});
4568
+
4569
+ /**
4570
+ * @see https://svgwg.org/specs/animations/#MaxAttribute
4571
+ */
4572
+ max?: AttrMissing | "media" | number | (string & {});
4573
+
4574
+ /**
4575
+ * @see https://svgwg.org/specs/animations/#RestartAttribute
4576
+ */
4577
+ restart?: AttrMissing | "always" | "whenNotActive" | "never";
4578
+
4579
+ /**
4580
+ * @see https://svgwg.org/specs/animations/#RepeatCountAttribute
4581
+ */
4582
+ repeatCount?: AttrStringOrNumber;
4583
+
4584
+ /**
4585
+ * @see https://svgwg.org/specs/animations/#RepeatDurAttribute
4586
+ */
4587
+ repeatDur?: AttrStringOrNumber;
4588
+
4589
+ /**
4590
+ * @see https://svgwg.org/specs/animations/#FillAttribute
4591
+ */
4592
+ fill?: AttrMissing | "freeze" | "remove";
4593
+ }
4994
4594
 
4995
- /**
4996
- * Fired when an error occurs while fetching an external resource, such as a script, image, or video.
4997
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-error
4998
- */
4999
- onError?: AttrEventHandler<ErrorEvent | Event, T>;
5000
- "on-error"?: this["onError"];
5001
- onerror?: AttrString;
4595
+ interface SVGAnimationValueAttributes {
4596
+ /**
4597
+ * @see https://svgwg.org/specs/animations/#CalcModeAttribute
4598
+ */
4599
+ calcMode?: AttrMissing | "discrete" | "linear" | "paced" | "spline";
4600
+
4601
+ /**
4602
+ * A semicolon-separated list of values
4603
+ * @see https://svgwg.org/specs/animations/#ValuesAttribute
4604
+ */
4605
+ values?: AttrString;
4606
+
4607
+ /**
4608
+ * A semicolon-separated list of numbers
4609
+ * @see https://svgwg.org/specs/animations/#KeyTimesAttribute
4610
+ */
4611
+ keyTimes?: AttrStringOrNumber;
4612
+
4613
+ /**
4614
+ * A semicolon-separated list of Bézier control points
4615
+ * @see https://svgwg.org/specs/animations/#KeySplinesAttribute
4616
+ */
4617
+ keySplines?: AttrString;
4618
+
4619
+ /**
4620
+ * @see https://svgwg.org/specs/animations/#FromAttribute
4621
+ */
4622
+ from?: AttrStringOrNumber;
4623
+
4624
+ /**
4625
+ * @see https://svgwg.org/specs/animations/#FromAttribute
4626
+ */
4627
+ to?: AttrStringOrNumber;
4628
+
4629
+ /**
4630
+ * @see https://svgwg.org/specs/animations/#FromAttribute
4631
+ */
4632
+ by?: AttrStringOrNumber;
4633
+ }
5002
4634
 
5003
- /**
5004
- * Fired when an element receives focus, either by user input or via script.
5005
- * @see https://html.spec.whatwg.org/multipage/interaction.html#event-focus
5006
- */
5007
- onFocus?: AttrEventHandler<FocusEvent, T>;
5008
- "on-focus"?: this["onFocus"];
5009
- onfocus?: AttrString;
4635
+ interface SVGConditionalProcessingAttributes {
4636
+ /**
4637
+ * Set of space-separated tokens
4638
+ * @see https://www.w3.org/TR/SVG2/struct.html#RequiredExtensionsAttribute
4639
+ */
4640
+ requiredExtensions?: AttrString;
4641
+
4642
+ /**
4643
+ * Set of comma-separated tokens
4644
+ * @see https://www.w3.org/TR/SVG2/struct.html#SystemLanguageAttribute
4645
+ */
4646
+ systemLanguage?: AttrString;
4647
+ }
5010
4648
 
5011
- /**
5012
- * Fires when an element has received focus, after the focus event. The two events differ in that focusin bubbles, while focus does not.
5013
- * @see HTMLAttributes.onFocus
5014
- * @see https://w3c.github.io/uievents/#event-type-focusin
5015
- */
5016
- onFocusIn?: AttrEventHandler<FocusEvent, T>;
5017
- "on-focusin"?: this["onFocusIn"];
4649
+ interface SVGFilterPrimitiveAttributes {
4650
+ /**
4651
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-x
4652
+ */
4653
+ x?: AttrStringOrNumber;
4654
+
4655
+ /**
4656
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-y
4657
+ */
4658
+ y?: AttrStringOrNumber;
4659
+
4660
+ /**
4661
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-height
4662
+ */
4663
+ height?: AttrStringOrNumber;
4664
+
4665
+ /**
4666
+ * @see https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-result
4667
+ */
4668
+ result?: AttrString;
4669
+ }
5018
4670
 
5019
- /**
5020
- * Fires when an element has lost focus, after the blur event. The two events differ in that focusout bubbles, while blur does not.
5021
- * @see HTMLAttributes.onBlur
5022
- * @see https://w3c.github.io/uievents/#event-type-focusout
5023
- */
5024
- onFocusOut?: AttrEventHandler<FocusEvent, T>;
5025
- "on-focusout"?: this["onFocusOut"];
5026
-
5027
- /**
5028
- * Fired at a form element when it is constructing the entry list
5029
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-formdata
5030
- */
5031
- onFormData?: AttrEventHandler<FormDataEvent, T>;
5032
- "on-formdata"?: this["onFormData"];
5033
- onformdata?: AttrString;
5034
-
5035
- /**
5036
- * Fired immediately after an Element switches into or out of fullscreen mode.
5037
- * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenchange
5038
- */
5039
- onFullscreenChange?: AttrEventHandler<Event, T>;
5040
- "on-fullscreenchange"?: this["onFullscreenChange"];
5041
-
5042
- /**
5043
- * Fired when the browser cannot switch to fullscreen mode.
5044
- * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenerror
5045
- */
5046
- onFullscreenError?: AttrEventHandler<Event, T>;
5047
- "on-fullscreenerror"?: this["onFullscreenError"];
5048
-
5049
- /**
5050
- * Fired when an element captures a pointer using setPointerCapture().
5051
- *
5052
- * @see Element.setPointerCapture
5053
- * @see https://w3c.github.io/pointerevents/#the-gotpointercapture-event
5054
- */
5055
- onGotPointerCapture?: AttrEventHandler<PointerEvent, T>;
5056
- "on-gotpointercapture"?: this["onGotPointerCapture"];
5057
-
5058
- /**
5059
- * Fired when the form element's value changes, as a result of user input.
5060
- * @see https://w3c.github.io/uievents/#event-type-input
5061
- */
5062
- onInput?: AttrEventHandler<InputEvent, T>;
5063
- "on-input"?: this["onInput"];
5064
- oninput?: AttrString;
5065
-
5066
- /**
5067
- * Fired when a form element is found to be invalid during submission or constraint validation.
5068
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-invalid
5069
- */
5070
- onInvalid?: AttrEventHandler<Event, T>;
5071
- "on-invalid"?: this["onInvalid"];
5072
- oninvalid?: AttrString;
5073
-
5074
- /**
5075
- * Fired when a key is first pressed down.
5076
- * @see https://w3c.github.io/uievents/#event-type-keydown
5077
- */
5078
- onKeyDown?: AttrEventHandler<KeyboardEvent, T>;
5079
- "on-keydown"?: this["onKeyDown"];
5080
- onkeydown?: AttrString;
5081
-
5082
- /**
5083
- * Fired when a key is pressed down and then released, while the element has focus.
5084
- * @see https://w3c.github.io/uievents/#event-type-keypress
5085
- */
5086
- onKeyPress?: AttrEventHandler<KeyboardEvent, T>;
5087
- "on-keypress"?: this["onKeyPress"];
5088
- onkeypress?: AttrString;
5089
-
5090
- /**
5091
- * Fired when a key is released after being pressed down.
5092
- * @see https://w3c.github.io/uievents/#event-type-keyup
5093
- */
5094
- onKeyUp?: AttrEventHandler<KeyboardEvent, T>;
5095
- "on-keyup"?: this["onKeyUp"];
5096
- onkeyup?: AttrString;
5097
-
5098
- /**
5099
- * Fired when an element or resource, such as an image, has completely loaded.
5100
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-load
5101
- */
5102
- onLoad?: AttrEventHandler<Event, T>;
5103
- "on-load"?: this["onLoad"];
5104
- onload?: AttrString;
5105
-
5106
- /**
5107
- * Fired when the user agent can render the media data at the current playback position for the first time.
5108
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadeddata
5109
- */
5110
- onLoadedData?: AttrEventHandler<Event, T>;
5111
- "on-loadeddata"?: this["onLoadedData"];
5112
- onloadeddata?: AttrString;
5113
-
5114
- /**
5115
- * Fired when the user agent has just determined the duration and dimensions of the media resource.
5116
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadedmetadata
5117
- */
5118
- onLoadedMetadata?: AttrEventHandler<Event, T>;
5119
- "on-loadedmetadata"?: this["onLoadedMetadata"];
5120
- onloadedmetadata?: AttrString;
5121
-
5122
- /**
5123
- * Fired when the user agent begins looking for media data, before the media has begun to load.
5124
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadstart
5125
- */
5126
- onLoadStart?: AttrEventHandler<Event, T>;
5127
- "on-loadstart"?: this["onLoadStart"];
5128
- onloadstart?: AttrString;
5129
-
5130
- /**
5131
- * Fired when a captured pointer is released.
5132
- * @see https://w3c.github.io/pointerevents/#dfn-lostpointercapture
5133
- */
5134
- onLostPointerCapture?: AttrEventHandler<PointerEvent, T>;
5135
- "on-lostpointercapture"?: this["onLostPointerCapture"];
5136
-
5137
- /**
5138
- * Fired when a pointing device button is pressed down over an element.
5139
- * @see https://w3c.github.io/uievents/#event-type-mousedown
5140
- */
5141
- onMouseDown?: AttrEventHandler<MouseEvent, T>;
5142
- "on-mousedown"?: this["onMouseDown"];
5143
- onmousedown?: AttrString;
5144
-
5145
- /**
5146
- * Fired when a pointing device is moved onto the element.
5147
- * @see https://w3c.github.io/uievents/#event-type-mouseenter
5148
- */
5149
- onMouseEnter?: AttrEventHandler<MouseEvent, T>;
5150
- "on-mouseenter"?: this["onMouseEnter"];
5151
- onmouseenter?: AttrString;
5152
-
5153
- /**
5154
- * Fired when a pointing device is moved off the element.
5155
- * @see https://w3c.github.io/uievents/#event-type-mouseleave
5156
- */
5157
- onMouseLeave?: AttrEventHandler<MouseEvent, T>;
5158
- "on-mouseleave"?: this["onMouseLeave"];
5159
- onmouseleave?: AttrString;
5160
-
5161
- /**
5162
- * Fired when a pointing device is moved over an element.
5163
- * @see https://w3c.github.io/uievents/#event-type-mousemove
5164
- */
5165
- onMouseMove?: AttrEventHandler<MouseEvent, T>;
5166
- "on-mousemove"?: this["onMouseMove"];
5167
- onmousemove?: AttrString;
5168
-
5169
- /**
5170
- * Fired when a pointing device is moved off the element or off one of its children.
5171
- * @see https://w3c.github.io/uievents/#event-type-mouseout
5172
- */
5173
- onMouseOut?: AttrEventHandler<MouseEvent, T>;
5174
- "on-mouseout"?: this["onMouseOut"];
5175
- onmouseout?: AttrString;
5176
-
5177
- /**
5178
- * Fired when a pointing device is moved onto the element or onto one of its children.
5179
- * @see https://w3c.github.io/uievents/#event-type-mouseover
5180
- */
5181
- onMouseOver?: AttrEventHandler<MouseEvent, T>;
5182
- "on-mouseover"?: this["onMouseOver"];
5183
- onmouseover?: AttrString;
5184
-
5185
- /**
5186
- * Fired when a pointing device button is released over an element.
5187
- * @see https://w3c.github.io/uievents/#event-type-mouseup
5188
- */
5189
- onMouseUp?: AttrEventHandler<MouseEvent, T>;
5190
- "on-mouseup"?: this["onMouseUp"];
5191
- onmouseup?: AttrString;
5192
-
5193
- /**
5194
- * Fired when the user has completed a "paste" action, usually through a context menu or keyboard shortcut.
5195
- * @see https://w3c.github.io/clipboard-apis/#clipboard-event-paste
5196
- */
5197
- onPaste?: AttrEventHandler<ClipboardEvent, T>;
5198
- "on-paste"?: this["onPaste"];
5199
- onpaste?: AttrString;
5200
-
5201
- /**
5202
- * Fired when playback of a media element is paused.
5203
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-pause
5204
- */
5205
- onPause?: AttrEventHandler<Event, T>;
5206
- "on-pause"?: this["onPause"];
5207
- onpause?: AttrString;
5208
-
5209
- /**
5210
- * Fired when playback of a media element is ready to start after having been paused.
5211
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-play
5212
- */
5213
- onPlay?: AttrEventHandler<Event, T>;
5214
- "on-play"?: this["onPlay"];
5215
- onplay?: AttrString;
5216
-
5217
- /**
5218
- * Fired when playback of a media element is ready to start, or when playback is resumed after a pause event.
5219
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-playing
5220
- */
5221
- onPlaying?: AttrEventHandler<Event, T>;
5222
- "on-playing"?: this["onPlaying"];
5223
- onplaying?: AttrString;
5224
-
5225
- /**
5226
- * Fired when the pointing device's hardware triggers a cancellation of the pointer event, such as due to a system event.
5227
- * @see https://w3c.github.io/pointerevents/#the-pointercancel-event
5228
- */
5229
- onPointerCancel?: AttrEventHandler<PointerEvent, T>;
5230
- "on-pointercancel"?: this["onPointerCancel"];
5231
-
5232
- /**
5233
- * Fired when a pointing device's button is pressed down on an element.
5234
- * @see https://w3c.github.io/pointerevents/#the-pointerdown-event
5235
- */
5236
- onPointerDown?: AttrEventHandler<PointerEvent, T>;
5237
- "on-pointerdown"?: this["onPointerDown"];
5238
-
5239
- /**
5240
- * Fired when a pointing device is moved onto the element.
5241
- * @see https://w3c.github.io/pointerevents/#the-pointerenter-event
5242
- */
5243
- onPointerEnter?: AttrEventHandler<PointerEvent, T>;
5244
- "on-pointerenter"?: this["onPointerEnter"];
5245
-
5246
- /**
5247
- * Fired when a pointing device is moved off the element.
5248
- * @see https://w3c.github.io/pointerevents/#the-pointerleave-event
5249
- */
5250
- onPointerLeave?: AttrEventHandler<PointerEvent, T>;
5251
- "on-pointerleave"?: this["onPointerLeave"];
5252
-
5253
- /**
5254
- * Fired when a pointing device is moved over an element.
5255
- * @see https://w3c.github.io/pointerevents/#the-pointermove-event
5256
- */
5257
- onPointerMove?: AttrEventHandler<PointerEvent, T>;
5258
- "on-pointermove"?: this["onPointerMove"];
5259
-
5260
- /**
5261
- * Fired when a pointing device is moved off the element or off one of its children.
5262
- * @see https://w3c.github.io/pointerevents/#the-pointerout-event
5263
- */
5264
- onPointerOut?: AttrEventHandler<PointerEvent, T>;
5265
- "on-pointerout"?: this["onPointerOut"];
5266
-
5267
- /**
5268
- * Fired when a pointing device is moved onto the element or onto one of its children.
5269
- * @see https://w3c.github.io/pointerevents/#the-pointerover-event
5270
- */
5271
- onPointerOver?: AttrEventHandler<PointerEvent, T>;
5272
- "on-pointerover"?: this["onPointerOver"];
5273
-
5274
- /**
5275
- * Fired when a pointing device's button is released over an element.
5276
- * @see https://w3c.github.io/pointerevents/#the-pointerup-event
5277
- */
5278
- onPointerUp?: AttrEventHandler<PointerEvent, T>;
5279
- "on-pointerup"?: this["onPointerUp"];
5280
-
5281
- /**
5282
- * Fired when the user agent is downloading media data or resources, to indicate progress.
5283
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-progress
5284
- */
5285
- onProgress?: AttrEventHandler<Event, T>;
5286
- "on-progress"?: this["onProgress"];
5287
- onprogress?: AttrString;
5288
-
5289
- /**
5290
- * Fired when the playback rate of a media element has changed.
5291
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ratechange
5292
- */
5293
- onRateChange?: AttrEventHandler<Event, T>;
5294
- "on-ratechange"?: this["onRateChange"];
5295
- onratechange?: AttrString;
5296
-
5297
- /**
5298
- * Fired when a form is reset, either by user interaction or through a script.
5299
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-reset
5300
- */
5301
- onReset?: AttrEventHandler<Event, T>;
5302
- "on-reset"?: this["onReset"];
5303
- onreset?: AttrString;
5304
-
5305
- /**
5306
- * Fired at the Window when the viewport is resized. Fired at VisualViewport when the visual viewport is resized or the layout viewport is scaled.
5307
- * @see https://drafts.csswg.org/cssom-view/#eventdef-window-resize
5308
- */
5309
- onResize?: AttrEventHandler<Event, T>;
5310
- "on-resize"?: this["onResize"];
5311
- onresize?: AttrString;
5312
-
5313
- /**
5314
- * Fired when an element's scrollbar is being scrolled.
5315
- * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scroll
5316
- */
5317
- onScroll?: AttrEventHandler<Event, T>;
5318
- "on-scroll"?: this["onScroll"];
5319
- onscroll?: AttrString;
5320
-
5321
- /**
5322
- * 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.
5323
- * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scrollend
5324
- */
5325
- onScrollEnd?: AttrEventHandler<Event, T>;
5326
- "on-scrollend"?: this["onScrollEnd"];
5327
- onscrollend?: AttrString;
5328
-
5329
- /**
5330
- * Fired when a security policy violation occurs, such as when an attempted resource load is blocked due to the security settings of the browser or when an inline script violates the Content Security Policy (CSP) of the page.
5331
- * @see https://w3c.github.io/webappsec-csp/#eventdef-globaleventhandlers-securitypolicyviolation
5332
- */
5333
- onSecurityPolicyViolation?: AttrEventHandler<
5334
- SecurityPolicyViolationEvent,
5335
- T
5336
- >;
5337
- "on-securitypolicyviolation"?: this["onSecurityPolicyViolation"];
5338
- onsecuritypolicyviolation?: AttrString;
5339
-
5340
- /**
5341
- * Fired when a seek operation on a media element completes.
5342
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-seeked
5343
- */
5344
- onSeeked?: AttrEventHandler<Event, T>;
5345
- "on-seeked"?: this["onSeeked"];
5346
- onseeked?: AttrString;
5347
-
5348
- /**
5349
- * Fired when a seek operation on a media element begins.
5350
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-seeking
5351
- */
5352
- onSeeking?: AttrEventHandler<Event, T>;
5353
- "on-seeking"?: this["onSeeking"];
5354
- onseeking?: AttrString;
5355
-
5356
- /**
5357
- * Fired when some text is selected within an input or textarea element.
5358
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-select
5359
- */
5360
- onSelect?: AttrEventHandler<Event, T>;
5361
- "on-select"?: this["onSelect"];
5362
- onselect?: AttrString;
5363
-
5364
- /**
5365
- * Fired when a <slot> element's distributed nodes change.
5366
- * @see https://dom.spec.whatwg.org/#eventdef-htmlslotelement-slotchange
5367
- */
5368
- onSlotChange?: AttrEventHandler<Event, T>;
5369
- "on-slotchange"?: this["onSlotChange"];
5370
- onslotchange?: AttrString;
5371
-
5372
- /**
5373
- * Fired when a media element's data downloading has been stalled due to an issue, such as a lack of data.
5374
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-stalled
5375
- */
5376
- onStalled?: AttrEventHandler<Event, T>;
5377
- "on-stalled"?: this["onStalled"];
5378
- onstalled?: AttrString;
5379
-
5380
- /**
5381
- * Fired at a form element when it is submitted
5382
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-submit
5383
- */
5384
- onSubmit?: AttrEventHandler<SubmitEvent, T>;
5385
- "on-submit"?: this["onSubmit"];
5386
- onsubmit?: AttrString;
5387
-
5388
- /**
5389
- * Fired when the user agent intentionally does not download media data.
5390
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-suspend
5391
- */
5392
- onSuspend?: AttrEventHandler<Event, T>;
5393
- "on-suspend"?: this["onSuspend"];
5394
- onsuspend?: AttrString;
5395
-
5396
- /**
5397
- * Fired when the current playback position of a media element changes as part of normal playback or due to a seek operation.
5398
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-timeupdate
5399
- */
5400
- onTimeUpdate?: AttrEventHandler<Event, T>;
5401
- "on-timeupdate"?: this["onTimeUpdate"];
5402
- ontimeupdate?: AttrString;
5403
-
5404
- /**
5405
- * Fired at details elements when they open or close; fired on elements with the popover attribute when they are transitioning between showing and hidden
5406
- * @see https://html.spec.whatwg.org/multipage/indices.html#event-toggle
5407
- */
5408
- onToggle?: AttrEventHandler<Event, T>;
5409
- "on-toggle"?: this["onToggle"];
5410
- ontoggle?: AttrString;
5411
-
5412
- /**
5413
- * Fired when a touch event is interrupted, such as by a modal window or an incoming phone call.
5414
- * @see https://w3c.github.io/touch-events/#event-touchcancel
5415
- */
5416
- onTouchCancel?: AttrEventHandler<TouchEvent, T>;
5417
- "on-touchcancel"?: this["onTouchCancel"];
5418
-
5419
- /**
5420
- * Fired when a finger is lifted from a touch surface.
5421
- * @see https://w3c.github.io/touch-events/#event-touchend
5422
- */
5423
- onTouchEnd?: AttrEventHandler<TouchEvent, T>;
5424
- "on-touchend"?: this["onTouchEnd"];
5425
-
5426
- /**
5427
- * Fired when a finger is moved along a touch surface.
5428
- * @see https://w3c.github.io/touch-events/#event-touchmove
5429
- */
5430
- onTouchMove?: AttrEventHandler<TouchEvent, T>;
5431
- "on-touchmove"?: this["onTouchMove"];
5432
-
5433
- /**
5434
- * Fired when a finger is placed on a touch surface.
5435
- * @see https://w3c.github.io/touch-events/#event-touchstart
5436
- */
5437
- onTouchStart?: AttrEventHandler<TouchEvent, T>;
5438
- "on-touchstart"?: this["onTouchStart"];
5439
-
5440
- /**
5441
- * Fired when a CSS transition is canceled.
5442
- * @see https://drafts.csswg.org/css-transitions/#transitioncancel
5443
- */
5444
- onTransitionCancel?: AttrEventHandler<TransitionEvent, T>;
5445
- "on-transitioncancel"?: this["onTransitionCancel"];
5446
-
5447
- /**
5448
- * Fired when a CSS transition has completed.
5449
- * @see https://drafts.csswg.org/css-transitions/#transitionend
5450
- */
5451
- onTransitionEnd?: AttrEventHandler<TransitionEvent, T>;
5452
- "on-transitionend"?: this["onTransitionEnd"];
5453
-
5454
- /**
5455
- * Fired when a CSS transition is first created, i.e. before any transition-delay has begun.
5456
- * @see https://drafts.csswg.org/css-transitions/#transitionrun
5457
- */
5458
- onTransitionRun?: AttrEventHandler<TransitionEvent, T>;
5459
- "on-transitionrun"?: this["onTransitionRun"];
5460
-
5461
- /**
5462
- * Fired when a CSS transition has actually started, i.e., after any transition-delay has ended.
5463
- * @see https://drafts.csswg.org/css-transitions/#transitionstart
5464
- */
5465
- onTransitionStart?: AttrEventHandler<TransitionEvent, T>;
5466
- "on-transitionstart"?: this["onTransitionStart"];
5467
-
5468
- /**
5469
- * Fired when the volume level or muted state of a media element changes.
5470
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-volumechange
5471
- */
5472
- onVolumeChange?: AttrEventHandler<Event, T>;
5473
- "on-volumechange"?: this["onVolumeChange"];
5474
- onvolumechange?: AttrString;
5475
-
5476
- /**
5477
- * Fired when a media element is waiting for data to continue playback, such as when buffering.
5478
- * @see https://html.spec.whatwg.org/multipage/media.html#event-media-waiting
5479
- */
5480
- onWaiting?: AttrEventHandler<Event, T>;
5481
- "on-waiting"?: this["onWaiting"];
5482
- onwaiting?: AttrString;
5483
-
5484
- /**
5485
- * Fired when a user rotates a mouse wheel or similar input device over an element.
5486
- * @see https://w3c.github.io/uievents/#event-type-wheel
5487
- */
5488
- onWheel?: AttrEventHandler<WheelEvent, T>;
5489
- "on-wheel"?: this["onWheel"];
5490
- onwheel?: AttrString;
5491
- }
5492
-
5493
- interface AriaAttributes {
5494
- /**
5495
- * Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
5496
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant
5497
- */
5498
- "aria-activedescendant"?: AttrString;
5499
- /**
5500
- * Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
5501
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-atomic
5502
- * @see aria-relevant
5503
- */
5504
- "aria-atomic"?: AttrBooleanString;
5505
- /**
5506
- * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
5507
- * presented if they are made.
5508
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete
5509
- */
5510
- "aria-autocomplete"?: AttrMissing | "both" | "inline" | "list" | "none";
5511
- /**
5512
- * Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
5513
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-busy
5514
- */
5515
- "aria-busy"?: AttrBooleanString;
5516
- /**
5517
- * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
5518
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-checked
5519
- */
5520
- "aria-checked"?: AttrTriState;
5521
- /**
5522
- * Defines the total number of columns in a table, grid, or treegrid.
5523
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colcount
5524
- */
5525
- "aria-colcount"?: AttrStringOrNumber;
5526
- /**
5527
- * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
5528
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colindex
5529
- */
5530
- "aria-colindex"?: AttrStringOrNumber;
5531
- /**
5532
- * Defines a human readable text alternative of aria-colindex.
5533
- * @see https://w3c.github.io/aria/#aria-colindextext
5534
- * @see aria-colindex
5535
- */
5536
- "aria-colindextext"?: AttrString;
5537
- /**
5538
- * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
5539
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colspan
5540
- */
5541
- "aria-colspan"?: AttrStringOrNumber;
5542
- /**
5543
- * Identifies the element (or elements) whose contents or presence are controlled by the current element.
5544
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-controls
5545
- * @see aria-owns
5546
- */
5547
- "aria-controls"?: AttrString;
5548
- /**
5549
- * Indicates the element that represents the current item within a container or set of related elements.
5550
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-current
5551
- */
5552
- "aria-current"?:
5553
- | AttrBooleanString
5554
- | "date"
5555
- | "location"
5556
- | "page"
5557
- | "step"
5558
- | "time"
5559
- | "true";
5560
- /**
5561
- * Identifies the element (or elements) that describes the object.
5562
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-describedby
5563
- * @see aria-labelledby
5564
- */
5565
- "aria-describedby"?: AttrString;
5566
- /**
5567
- * Defines a string value that describes or annotates the current element.
5568
- * @see https://w3c.github.io/aria/#aria-description
5569
- * @see aria-describedby
5570
- */
5571
- "aria-description"?: AttrString;
5572
- /**
5573
- * Identifies the element that provides a detailed, extended description for the object.
5574
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-details
5575
- * @see aria-describedby
5576
- */
5577
- "aria-details"?: AttrString;
5578
- /**
5579
- * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
5580
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-disabled
5581
- */
5582
- "aria-disabled"?: AttrBooleanString;
5583
- /**
5584
- * @deprecated Indicates what functions can be performed when a dragged object is released on the drop target.
5585
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect
5586
- * */
5587
- "aria-dropeffect"?:
5588
- | AttrMissing
5589
- | "copy"
5590
- | "execute"
5591
- | "link"
5592
- | "move"
5593
- | "none"
5594
- | "popup";
5595
- /**
5596
- * Identifies the element that provides an error message for the object.
5597
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage
5598
- * @see aria-invalid
5599
- * @see aria-describedby
5600
- */
5601
- "aria-errormessage"?: AttrString;
5602
- /**
5603
- * Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
5604
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-expanded
5605
- * @see aria-controls
5606
- */
5607
- "aria-expanded"?: AttrBooleanString;
5608
- /**
5609
- * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
5610
- * allows assistive technology to override the general default of reading in document source order.
5611
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-flowto
5612
- */
5613
- "aria-flowto"?: AttrString;
5614
- /**
5615
- * @deprecated Indicates an element's "grabbed" state in a drag-and-drop operation.
5616
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed
5617
- */
5618
- "aria-grabbed"?: AttrBooleanString;
5619
- /**
5620
- * Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
5621
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup
5622
- */
5623
- "aria-haspopup"?:
5624
- | AttrBooleanString
5625
- | "dialog"
5626
- | "grid"
5627
- | "listbox"
5628
- | "menu"
5629
- | "tree";
5630
- /**
5631
- * Indicates whether the element is exposed to an accessibility API.
5632
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-hidden
5633
- * @see aria-disabled
5634
- */
5635
- "aria-hidden"?: AttrBooleanString;
5636
- /**
5637
- * Indicates the entered value does not conform to the format expected by the application.
5638
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-invalid
5639
- * @see aria-errormessage
5640
- */
5641
- "aria-invalid"?: AttrBooleanString | "grammar" | "spelling";
5642
- /**
5643
- * Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
5644
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-keyshortcuts
5645
- */
5646
- "aria-keyshortcuts"?: AttrString;
5647
- /**
5648
- * Defines a string value that labels the current element.
5649
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-label
5650
- * @see aria-labelledby
5651
- */
5652
- "aria-label"?: AttrString;
5653
- /**
5654
- * Identifies the element (or elements) that labels the current element.
5655
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
5656
- * @see aria-decribedby
5657
- */
5658
- "aria-labelledby"?: AttrString;
5659
- /**
5660
- * Defines the hierarchical level of an element within a structure.
5661
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-level
5662
- */
5663
- "aria-level"?: AttrString;
5664
- /**
5665
- * Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies,
5666
- * and user can expect from the live region.
5667
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-live
5668
- */
5669
- "aria-live"?: AttrMissing | "assertive" | "off" | "polite";
5670
- /**
5671
- * Indicates whether an element is modal when displayed.
5672
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-modal
5673
- */
5674
- "aria-modal"?: AttrBooleanString;
5675
- /**
5676
- * Indicates whether a text box accepts multiple lines of input or only a single line.
5677
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-multiline
5678
- */
5679
- "aria-multiline"?: AttrBooleanString;
5680
- /**
5681
- * Indicates that the user may select more than one item from the current selectable descendants.
5682
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable
5683
- */
5684
- "aria-multiselectable"?: AttrBooleanString;
5685
- /**
5686
- * Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
5687
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-orientation
5688
- */
5689
- "aria-orientation"?: AttrMissing | "horizontal" | "vertical";
5690
- /**
5691
- * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
5692
- * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
5693
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-owns
5694
- */
5695
- "aria-owns"?: AttrString;
5696
- /**
5697
- * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
5698
- * A hint could be a sample value or a brief description of the expected format.
5699
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder
5700
- */
5701
- "aria-placeholder"?: AttrString;
5702
- /**
5703
- * Defines an element's number or position in the current set of listitems or treeitems.
5704
- * Not required if all elements in the set are present in the DOM.
5705
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-posinset
5706
- */
5707
- "aria-posinset"?: AttrStringOrNumber;
5708
- /**
5709
- * Indicates the current "pressed" state of toggle buttons.
5710
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-pressed
5711
- */
5712
- "aria-pressed"?: AttrTriState;
5713
- /**
5714
- * Indicates that the element is not editable, but is otherwise operable.
5715
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-readonly
5716
- */
5717
- "aria-readonly"?: AttrBooleanString;
5718
- /**
5719
- * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
5720
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-relevant
5721
- */
5722
- "aria-relevant"?:
5723
- | AttrMissing
5724
- | "additions removals"
5725
- | "additions text"
5726
- | "additions"
5727
- | "all"
5728
- | "removals additions"
5729
- | "removals text"
5730
- | "removals"
5731
- | "text additions"
5732
- | "text removals"
5733
- | "text";
5734
- /**
5735
- * Indicates that user input is required on the element before a form may be submitted.
5736
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-required
5737
- */
5738
- "aria-required"?: AttrBooleanString;
5739
- /**
5740
- * Defines a human-readable, author-localized description for the role of an element.
5741
- */
5742
- "aria-roledescription"?: AttrString;
5743
- /**
5744
- * Defines the total number of rows in a table, grid, or treegrid.
5745
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount
5746
- */
5747
- "aria-rowcount"?: AttrStringOrNumber;
5748
- /**
5749
- * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
5750
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex
5751
- */
5752
- "aria-rowindex"?: AttrStringOrNumber;
5753
- /**
5754
- * Defines a human readable text alternative of aria-rowindex.
5755
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowindextext
5756
- * @see aria-rowindex
5757
- */
5758
- "aria-rowindextext"?: AttrString;
5759
- /**
5760
- * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
5761
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan
5762
- */
5763
- "aria-rowspan"?: AttrStringOrNumber;
5764
- /**
5765
- * Indicates the current "selected" state of various widgets.
5766
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-selected
5767
- */
5768
- "aria-selected"?: AttrBooleanString;
5769
- /**
5770
- * Defines the number of items in the current set of listitems or treeitems.
5771
- * Not required if all elements in the set are present in the DOM.
5772
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-setsize
5773
- */
5774
- "aria-setsize"?: AttrStringOrNumber;
5775
- /**
5776
- * Indicates if items in a table or grid are sorted in ascending or descending order.
5777
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-sort
5778
- */
5779
- "aria-sort"?: "ascending" | "descending" | "none" | "other";
5780
- /**
5781
- * Defines the maximum allowed value for a range widget.
5782
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax
5783
- * @see aria-valuenow
5784
- */
5785
- "aria-valuemax"?: AttrStringOrNumber;
5786
- /**
5787
- * Defines the minimum allowed value for a range widget.
5788
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin
5789
- * @see aria-valuenow
5790
- */
5791
- "aria-valuemin"?: AttrStringOrNumber;
5792
- /**
5793
- * Defines the current value for a range widget.
5794
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow
5795
- * @see aria-valuetext
5796
- * @see aria-valuemin
5797
- * @see aria-valuemax
5798
- */
5799
- "aria-valuenow"?: AttrStringOrNumber;
5800
- /**
5801
- * Defines the human readable text alternative of aria-valuenow for a range widget.
5802
- * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext
5803
- * @see aria-valuenow
5804
- */
5805
- "aria-valuetext"?: AttrString;
5806
- /**
5807
- * Defines the ARIA role of an element.
5808
- * @see https://www.w3.org/TR/wai-aria-1.1/#role_definitions
5809
- */
5810
- role?:
5811
- | AttrMissing
5812
- | "alert"
5813
- | "alertdialog"
5814
- | "application"
5815
- | "article"
5816
- | "banner"
5817
- | "button"
5818
- | "cell"
5819
- | "checkbox"
5820
- | "columnheader"
5821
- | "combobox"
5822
- | "complementary"
5823
- | "contentinfo"
5824
- | "definition"
5825
- | "dialog"
5826
- | "directory"
5827
- | "document"
5828
- | "feed"
5829
- | "figure"
5830
- | "form"
5831
- | "grid"
5832
- | "gridcell"
5833
- | "group"
5834
- | "heading"
5835
- | "img"
5836
- | "link"
5837
- | "list"
5838
- | "listbox"
5839
- | "listitem"
5840
- | "log"
5841
- | "main"
5842
- | "marquee"
5843
- | "math"
5844
- | "menu"
5845
- | "menubar"
5846
- | "menuitem"
5847
- | "menuitemcheckbox"
5848
- | "menuitemradio"
5849
- | "meter"
5850
- | "navigation"
5851
- | "none"
5852
- | "note"
5853
- | "option"
5854
- | "presentation"
5855
- | "progressbar"
5856
- | "radio"
5857
- | "radiogroup"
5858
- | "region"
5859
- | "row"
5860
- | "rowgroup"
5861
- | "rowheader"
5862
- | "scrollbar"
5863
- | "search"
5864
- | "searchbox"
5865
- | "separator"
5866
- | "slider"
5867
- | "spinbutton"
5868
- | "status"
5869
- | "switch"
5870
- | "tab"
5871
- | "table"
5872
- | "tablist"
5873
- | "tabpanel"
5874
- | "term"
5875
- | "textbox"
5876
- | "timer"
5877
- | "toolbar"
5878
- | "tooltip"
5879
- | "tree"
5880
- | "treegrid"
5881
- | "treeitem";
5882
- }
5883
- }
4671
+ interface CommonAttributes<T extends Element> {
4672
+ /**
4673
+ * Fired when resource was not fully loaded, but not as the result of an error.
4674
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-abort
4675
+ */
4676
+ onAbort?: AttrEventHandler<Event, T>;
4677
+ "on-abort"?: this["onAbort"];
4678
+ onabort?: AttrString;
4679
+
4680
+ /**
4681
+ * Fired when an Animation unexpectedly aborts.
4682
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationcancel
4683
+ */
4684
+ onAnimationCancel?: AttrEventHandler<AnimationEvent, T>;
4685
+ "on-animationcancel"?: this["onAnimationCancel"];
4686
+
4687
+ /**
4688
+ * Fired when an animation has completed.
4689
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationend
4690
+ */
4691
+ onAnimationEnd?: AttrEventHandler<AnimationEvent, T>;
4692
+ "on-animationend"?: this["onAnimationEnd"];
4693
+
4694
+ /**
4695
+ * Fired at the end of each iteration of an animation, except when an animationend event would fire at the same time.
4696
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationiteration
4697
+ */
4698
+ onAnimationIteration?: AttrEventHandler<AnimationEvent, T>;
4699
+ "on-animationiteration"?: this["onAnimationIteration"];
4700
+
4701
+ /**
4702
+ * Fired when an animation has started.
4703
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationstart
4704
+ */
4705
+ onAnimationStart?: AttrEventHandler<AnimationEvent, T>;
4706
+ "on-animationstart"?: this["onAnimationStart"];
4707
+
4708
+ /**
4709
+ * Fired when a non-primary pointing device button (any mouse button other than the primary—usually leftmost—button)
4710
+ * has been pressed and released both within the same element.
4711
+ * @see https://w3c.github.io/uievents/#event-type-auxclick
4712
+ */
4713
+ onAuxClick?: AttrEventHandler<PointerEvent, T>;
4714
+ "on-auxclick"?: this["onAuxClick"];
4715
+ onauxclick?: AttrString;
4716
+
4717
+ /**
4718
+ * Fires when the value of an <input>, or <textarea> element is about to be modified.
4719
+ * @see https://w3c.github.io/uievents/#event-type-beforeinput
4720
+ */
4721
+ onBeforeInput?: AttrEventHandler<InputEvent, T>;
4722
+ "on-beforeinput"?: this["onBeforeInput"];
4723
+ onbeforeinput?: AttrString;
4724
+
4725
+ /**
4726
+ * Fired on elements with the hidden=until-found attribute before they are revealed.
4727
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforematch
4728
+ */
4729
+ onBeforeMatch?: AttrEventHandler<Event, T>;
4730
+ "on-beforematch"?: this["onBeforeMatch"];
4731
+ onbeforematch?: AttrString;
4732
+
4733
+ /**
4734
+ * Fired on elements with the popover attribute when they are transitioning between showing and hidden
4735
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforetoggle
4736
+ */
4737
+ onBeforeToggle?: AttrEventHandler<Event, T>;
4738
+ "on-beforetoggle"?: this["onBeforeToggle"];
4739
+ onbeforetoggle?: AttrString;
4740
+
4741
+ /**
4742
+ * Fires when a node loses focus.
4743
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-blur
4744
+ */
4745
+ onBlur?: AttrEventHandler<Event, T>;
4746
+ "on-blur"?: this["onBlur"];
4747
+ onblur?: AttrString;
4748
+
4749
+ /**
4750
+ * Fired at controls when the user commits a value change (see also the input event)
4751
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-cancel
4752
+ */
4753
+ onCancel?: AttrEventHandler<Event, T>;
4754
+ "on-cancel"?: this["onCancel"];
4755
+ oncancel?: AttrString;
4756
+
4757
+ /**
4758
+ * Fires when the user agent can resume playback of the media data,
4759
+ * but estimates that if playback were to be started now, the media resource could not be rendered at the current
4760
+ * playback rate up to its end without having to stop for further buffering of content.
4761
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplay
4762
+ */
4763
+ onCanPlay?: AttrEventHandler<Event, T>;
4764
+ "on-canplay"?: this["onCanPlay"];
4765
+ oncanplay?: AttrString;
4766
+
4767
+ /**
4768
+ * Fires when the user agent can play through the media data without having to stop for further buffering of content.
4769
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplaythrough
4770
+ */
4771
+ onCanPlayThrough?: AttrEventHandler<Event, T>;
4772
+ "on-canplaythrough"?: this["onCanPlayThrough"];
4773
+ oncanplaythrough?: AttrString;
4774
+
4775
+ /**
4776
+ * Fired when the form elements value is modified.
4777
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-change
4778
+ */
4779
+ onChange?: AttrEventHandler<Event, T>;
4780
+ "on-change"?: this["onChange"];
4781
+ onchange?: AttrString;
4782
+
4783
+ /**
4784
+ * Normally a mouse event; also synthetically fired at an element before its activation behavior is run,
4785
+ * when an element is activated from a non-pointer input device (e.g. a keyboard).
4786
+ * @see https://w3c.github.io/uievents/#event-type-click
4787
+ */
4788
+ onClick?: AttrEventHandler<PointerEvent, T>;
4789
+ "on-click"?: this["onClick"];
4790
+ onclick?: AttrString;
4791
+
4792
+ /**
4793
+ * Fired at dialog elements when they are closed
4794
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-close
4795
+ */
4796
+ onClose?: AttrEventHandler<Event, T>;
4797
+ "on-close"?: this["onClose"];
4798
+ onclose?: AttrString;
4799
+
4800
+ /**
4801
+ * Fired when a text composition system such as an input method editor completes or cancels the current composition session.
4802
+ * @see https://w3c.github.io/uievents/#event-type-compositionend
4803
+ */
4804
+ onCompositionEnd?: AttrEventHandler<CompositionEvent, T>;
4805
+ "on-compositionend"?: this["onCompositionEnd"];
4806
+
4807
+ /**
4808
+ * Fired when a text composition system such as an input method editor starts a new composition session.
4809
+ * @see https://w3c.github.io/uievents/#event-type-compositionstart
4810
+ */
4811
+ onCompositionStart?: AttrEventHandler<CompositionEvent, T>;
4812
+ "on-compositionstart"?: this["onCompositionStart"];
4813
+
4814
+ /**
4815
+ * Fired when a new character is received in the context of a text composition session controlled by a text
4816
+ * composition system such as an input method editor.
4817
+ * @see https://w3c.github.io/uievents/#event-type-compositionupdate
4818
+ */
4819
+ onCompositionUpdate?: AttrEventHandler<CompositionEvent, T>;
4820
+ "on-compositionupdate"?: this["onCompositionUpdate"];
4821
+
4822
+ /**
4823
+ * Fired when the corresponding CanvasRenderingContext2D or OffscreenCanvasRenderingContext2D is lost
4824
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-contextlost
4825
+ */
4826
+ onContextLost?: AttrEventHandler<Event, T>;
4827
+ "on-contextlost"?: this["onContextLost"];
4828
+ oncontextlost?: AttrString;
4829
+
4830
+ /**
4831
+ * Fired when the user attempts to open a context menu.
4832
+ * This event is typically triggered by clicking the right mouse button, or by pressing the context menu key.
4833
+ * @see https://w3c.github.io/uievents/#event-type-contextmenu
4834
+ */
4835
+ onContextMenu?: AttrEventHandler<PointerEvent, T>;
4836
+ "on-contextmenu"?: this["onContextMenu"];
4837
+ oncontextmenu?: AttrString;
4838
+
4839
+ /**
4840
+ * Fired when the corresponding CanvasRenderingContext2D or OffscreenCanvasRenderingContext2D is restored after being lost
4841
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-contextrestored
4842
+ */
4843
+ onContextRestored?: AttrEventHandler<Event, T>;
4844
+ "on-contextrestored"?: this["onContextRestored"];
4845
+ oncontextrestored?: AttrString;
4846
+
4847
+ /**
4848
+ * Fired when the user copies the content of an element.
4849
+ * @see https://w3c.github.io/clipboard-apis/#clipboard-event-copy
4850
+ */
4851
+ onCopy?: AttrEventHandler<ClipboardEvent, T>;
4852
+ "on-copy"?: this["onCopy"];
4853
+ oncopy?: AttrString;
4854
+
4855
+ /**
4856
+ * Fired when one or more cues in the track have become active or stopped being active.
4857
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-cuechange
4858
+ */
4859
+ onCueChange?: AttrEventHandler<Event, T>;
4860
+ "on-cuechange"?: this["onCueChange"];
4861
+ oncuechange?: AttrString;
4862
+
4863
+ /**
4864
+ * Fired when the user cuts the content of an element.
4865
+ * @see https://w3c.github.io/clipboard-apis/#clipboard-event-cut
4866
+ */
4867
+ onCut?: AttrEventHandler<ClipboardEvent, T>;
4868
+ "on-cut"?: this["onCut"];
4869
+ oncut?: AttrString;
4870
+
4871
+ /**
4872
+ * Fired when the user double-clicks on an element.
4873
+ * @see https://w3c.github.io/uievents/#event-type-dblclick
4874
+ */
4875
+ onDblClick?: AttrEventHandler<MouseEvent, T>;
4876
+ "on-dblclick"?: this["onDblClick"];
4877
+ ondblclick?: AttrString;
4878
+
4879
+ /**
4880
+ * Fired every few hundred milliseconds as an element or text selection is being dragged by the user.
4881
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-drag
4882
+ */
4883
+ onDrag?: AttrEventHandler<DragEvent, T>;
4884
+ "on-drag"?: this["onDrag"];
4885
+ ondrag?: AttrString;
4886
+
4887
+ /**
4888
+ * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
4889
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragend
4890
+ */
4891
+ onDragEnd?: AttrEventHandler<DragEvent, T>;
4892
+ "on-dragend"?: this["onDragEnd"];
4893
+ ondragend?: AttrString;
4894
+
4895
+ /**
4896
+ * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
4897
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragenter
4898
+ */
4899
+ onDragEnter?: AttrEventHandler<DragEvent, T>;
4900
+ "on-dragenter"?: this["onDragEnter"];
4901
+ ondragenter?: AttrString;
4902
+
4903
+ /**
4904
+ * Fired when a dragged element or text selection leaves a valid drop target.
4905
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragleave
4906
+ */
4907
+ onDragLeave?: AttrEventHandler<DragEvent, T>;
4908
+ "on-dragleave"?: this["onDragLeave"];
4909
+ ondragleave?: AttrString;
4910
+
4911
+ /**
4912
+ * Fired an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).
4913
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragover
4914
+ */
4915
+ onDragOver?: AttrEventHandler<DragEvent, T>;
4916
+ "on-dragover"?: this["onDragOver"];
4917
+ ondragover?: AttrString;
4918
+
4919
+ /**
4920
+ * Fired when an element or text selection has started being dragged.
4921
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragstart
4922
+ */
4923
+ onDragStart?: AttrEventHandler<DragEvent, T>;
4924
+ "on-dragstart"?: this["onDragStart"];
4925
+ ondragstart?: AttrString;
4926
+
4927
+ /**
4928
+ * Fired when an element or text selection is dropped on a valid drop target.
4929
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-drop
4930
+ */
4931
+ onDrop?: AttrEventHandler<DragEvent, T>;
4932
+ "on-drop"?: this["onDrop"];
4933
+ ondrop?: AttrString;
4934
+
4935
+ /**
4936
+ * Fired when the duration attribute of a media element has just been updated.
4937
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-durationchange
4938
+ */
4939
+ onDurationChange?: AttrEventHandler<Event, T>;
4940
+ "on-durationchange"?: this["onDurationChange"];
4941
+ ondurationchange?: AttrString;
4942
+
4943
+ /**
4944
+ * Fired when a media element's playback stops because its source data has been fully consumed and not looped.
4945
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-emptied
4946
+ */
4947
+ onEmptied?: AttrEventHandler<Event, T>;
4948
+ "on-emptied"?: this["onEmptied"];
4949
+ onemptied?: AttrString;
4950
+
4951
+ /**
4952
+ * Fired when an encrypted media stream is encountered and the user agent recognizes the stream's encryption scheme.
4953
+ * @see https://w3c.github.io/encrypted-media/#dom-evt-encrypted
4954
+ */
4955
+ onEncrypted?: AttrEventHandler<MediaEncryptedEvent, T>;
4956
+ "on-encrypted"?: this["onEncrypted"];
4957
+
4958
+ /**
4959
+ * Fired when playback of a media element reaches its end, either because the media has reached its end or the loop attribute is not set.
4960
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ended
4961
+ */
4962
+ onEnded?: AttrEventHandler<Event, T>;
4963
+ "on-ended"?: this["onEnded"];
4964
+ onended?: AttrString;
4965
+
4966
+ /**
4967
+ * Fired when an error occurs while fetching an external resource, such as a script, image, or video.
4968
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-error
4969
+ */
4970
+ onError?: AttrEventHandler<ErrorEvent | Event, T>;
4971
+ "on-error"?: this["onError"];
4972
+ onerror?: AttrString;
4973
+
4974
+ /**
4975
+ * Fired when an element receives focus, either by user input or via script.
4976
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#event-focus
4977
+ */
4978
+ onFocus?: AttrEventHandler<FocusEvent, T>;
4979
+ "on-focus"?: this["onFocus"];
4980
+ onfocus?: AttrString;
4981
+
4982
+ /**
4983
+ * Fires when an element has received focus, after the focus event. The two events differ in that focusin bubbles, while focus does not.
4984
+ * @see HTMLAttributes.onFocus
4985
+ * @see https://w3c.github.io/uievents/#event-type-focusin
4986
+ */
4987
+ onFocusIn?: AttrEventHandler<FocusEvent, T>;
4988
+ "on-focusin"?: this["onFocusIn"];
4989
+
4990
+ /**
4991
+ * Fires when an element has lost focus, after the blur event. The two events differ in that focusout bubbles, while blur does not.
4992
+ * @see HTMLAttributes.onBlur
4993
+ * @see https://w3c.github.io/uievents/#event-type-focusout
4994
+ */
4995
+ onFocusOut?: AttrEventHandler<FocusEvent, T>;
4996
+ "on-focusout"?: this["onFocusOut"];
4997
+
4998
+ /**
4999
+ * Fired at a form element when it is constructing the entry list
5000
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-formdata
5001
+ */
5002
+ onFormData?: AttrEventHandler<FormDataEvent, T>;
5003
+ "on-formdata"?: this["onFormData"];
5004
+ onformdata?: AttrString;
5005
+
5006
+ /**
5007
+ * Fired immediately after an Element switches into or out of fullscreen mode.
5008
+ * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenchange
5009
+ */
5010
+ onFullscreenChange?: AttrEventHandler<Event, T>;
5011
+ "on-fullscreenchange"?: this["onFullscreenChange"];
5012
+
5013
+ /**
5014
+ * Fired when the browser cannot switch to fullscreen mode.
5015
+ * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenerror
5016
+ */
5017
+ onFullscreenError?: AttrEventHandler<Event, T>;
5018
+ "on-fullscreenerror"?: this["onFullscreenError"];
5019
+
5020
+ /**
5021
+ * Fired when an element captures a pointer using setPointerCapture().
5022
+ *
5023
+ * @see Element.setPointerCapture
5024
+ * @see https://w3c.github.io/pointerevents/#the-gotpointercapture-event
5025
+ */
5026
+ onGotPointerCapture?: AttrEventHandler<PointerEvent, T>;
5027
+ "on-gotpointercapture"?: this["onGotPointerCapture"];
5028
+
5029
+ /**
5030
+ * Fired when the form element's value changes, as a result of user input.
5031
+ * @see https://w3c.github.io/uievents/#event-type-input
5032
+ */
5033
+ onInput?: AttrEventHandler<InputEvent, T>;
5034
+ "on-input"?: this["onInput"];
5035
+ oninput?: AttrString;
5036
+
5037
+ /**
5038
+ * Fired when a form element is found to be invalid during submission or constraint validation.
5039
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-invalid
5040
+ */
5041
+ onInvalid?: AttrEventHandler<Event, T>;
5042
+ "on-invalid"?: this["onInvalid"];
5043
+ oninvalid?: AttrString;
5044
+
5045
+ /**
5046
+ * Fired when a key is first pressed down.
5047
+ * @see https://w3c.github.io/uievents/#event-type-keydown
5048
+ */
5049
+ onKeyDown?: AttrEventHandler<KeyboardEvent, T>;
5050
+ "on-keydown"?: this["onKeyDown"];
5051
+ onkeydown?: AttrString;
5052
+
5053
+ /**
5054
+ * Fired when a key is pressed down and then released, while the element has focus.
5055
+ * @see https://w3c.github.io/uievents/#event-type-keypress
5056
+ */
5057
+ onKeyPress?: AttrEventHandler<KeyboardEvent, T>;
5058
+ "on-keypress"?: this["onKeyPress"];
5059
+ onkeypress?: AttrString;
5060
+
5061
+ /**
5062
+ * Fired when a key is released after being pressed down.
5063
+ * @see https://w3c.github.io/uievents/#event-type-keyup
5064
+ */
5065
+ onKeyUp?: AttrEventHandler<KeyboardEvent, T>;
5066
+ "on-keyup"?: this["onKeyUp"];
5067
+ onkeyup?: AttrString;
5068
+
5069
+ /**
5070
+ * Fired when an element or resource, such as an image, has completely loaded.
5071
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-load
5072
+ */
5073
+ onLoad?: AttrEventHandler<Event, T>;
5074
+ "on-load"?: this["onLoad"];
5075
+ onload?: AttrString;
5076
+
5077
+ /**
5078
+ * Fired when the user agent can render the media data at the current playback position for the first time.
5079
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadeddata
5080
+ */
5081
+ onLoadedData?: AttrEventHandler<Event, T>;
5082
+ "on-loadeddata"?: this["onLoadedData"];
5083
+ onloadeddata?: AttrString;
5084
+
5085
+ /**
5086
+ * Fired when the user agent has just determined the duration and dimensions of the media resource.
5087
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadedmetadata
5088
+ */
5089
+ onLoadedMetadata?: AttrEventHandler<Event, T>;
5090
+ "on-loadedmetadata"?: this["onLoadedMetadata"];
5091
+ onloadedmetadata?: AttrString;
5092
+
5093
+ /**
5094
+ * Fired when the user agent begins looking for media data, before the media has begun to load.
5095
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadstart
5096
+ */
5097
+ onLoadStart?: AttrEventHandler<Event, T>;
5098
+ "on-loadstart"?: this["onLoadStart"];
5099
+ onloadstart?: AttrString;
5100
+
5101
+ /**
5102
+ * Fired when a captured pointer is released.
5103
+ * @see https://w3c.github.io/pointerevents/#dfn-lostpointercapture
5104
+ */
5105
+ onLostPointerCapture?: AttrEventHandler<PointerEvent, T>;
5106
+ "on-lostpointercapture"?: this["onLostPointerCapture"];
5107
+
5108
+ /**
5109
+ * Fired when a pointing device button is pressed down over an element.
5110
+ * @see https://w3c.github.io/uievents/#event-type-mousedown
5111
+ */
5112
+ onMouseDown?: AttrEventHandler<MouseEvent, T>;
5113
+ "on-mousedown"?: this["onMouseDown"];
5114
+ onmousedown?: AttrString;
5115
+
5116
+ /**
5117
+ * Fired when a pointing device is moved onto the element.
5118
+ * @see https://w3c.github.io/uievents/#event-type-mouseenter
5119
+ */
5120
+ onMouseEnter?: AttrEventHandler<MouseEvent, T>;
5121
+ "on-mouseenter"?: this["onMouseEnter"];
5122
+ onmouseenter?: AttrString;
5123
+
5124
+ /**
5125
+ * Fired when a pointing device is moved off the element.
5126
+ * @see https://w3c.github.io/uievents/#event-type-mouseleave
5127
+ */
5128
+ onMouseLeave?: AttrEventHandler<MouseEvent, T>;
5129
+ "on-mouseleave"?: this["onMouseLeave"];
5130
+ onmouseleave?: AttrString;
5131
+
5132
+ /**
5133
+ * Fired when a pointing device is moved over an element.
5134
+ * @see https://w3c.github.io/uievents/#event-type-mousemove
5135
+ */
5136
+ onMouseMove?: AttrEventHandler<MouseEvent, T>;
5137
+ "on-mousemove"?: this["onMouseMove"];
5138
+ onmousemove?: AttrString;
5139
+
5140
+ /**
5141
+ * Fired when a pointing device is moved off the element or off one of its children.
5142
+ * @see https://w3c.github.io/uievents/#event-type-mouseout
5143
+ */
5144
+ onMouseOut?: AttrEventHandler<MouseEvent, T>;
5145
+ "on-mouseout"?: this["onMouseOut"];
5146
+ onmouseout?: AttrString;
5147
+
5148
+ /**
5149
+ * Fired when a pointing device is moved onto the element or onto one of its children.
5150
+ * @see https://w3c.github.io/uievents/#event-type-mouseover
5151
+ */
5152
+ onMouseOver?: AttrEventHandler<MouseEvent, T>;
5153
+ "on-mouseover"?: this["onMouseOver"];
5154
+ onmouseover?: AttrString;
5155
+
5156
+ /**
5157
+ * Fired when a pointing device button is released over an element.
5158
+ * @see https://w3c.github.io/uievents/#event-type-mouseup
5159
+ */
5160
+ onMouseUp?: AttrEventHandler<MouseEvent, T>;
5161
+ "on-mouseup"?: this["onMouseUp"];
5162
+ onmouseup?: AttrString;
5163
+
5164
+ /**
5165
+ * Fired when the user has completed a "paste" action, usually through a context menu or keyboard shortcut.
5166
+ * @see https://w3c.github.io/clipboard-apis/#clipboard-event-paste
5167
+ */
5168
+ onPaste?: AttrEventHandler<ClipboardEvent, T>;
5169
+ "on-paste"?: this["onPaste"];
5170
+ onpaste?: AttrString;
5171
+
5172
+ /**
5173
+ * Fired when playback of a media element is paused.
5174
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-pause
5175
+ */
5176
+ onPause?: AttrEventHandler<Event, T>;
5177
+ "on-pause"?: this["onPause"];
5178
+ onpause?: AttrString;
5179
+
5180
+ /**
5181
+ * Fired when playback of a media element is ready to start after having been paused.
5182
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-play
5183
+ */
5184
+ onPlay?: AttrEventHandler<Event, T>;
5185
+ "on-play"?: this["onPlay"];
5186
+ onplay?: AttrString;
5187
+
5188
+ /**
5189
+ * Fired when playback of a media element is ready to start, or when playback is resumed after a pause event.
5190
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-playing
5191
+ */
5192
+ onPlaying?: AttrEventHandler<Event, T>;
5193
+ "on-playing"?: this["onPlaying"];
5194
+ onplaying?: AttrString;
5195
+
5196
+ /**
5197
+ * Fired when the pointing device's hardware triggers a cancellation of the pointer event, such as due to a system event.
5198
+ * @see https://w3c.github.io/pointerevents/#the-pointercancel-event
5199
+ */
5200
+ onPointerCancel?: AttrEventHandler<PointerEvent, T>;
5201
+ "on-pointercancel"?: this["onPointerCancel"];
5202
+
5203
+ /**
5204
+ * Fired when a pointing device's button is pressed down on an element.
5205
+ * @see https://w3c.github.io/pointerevents/#the-pointerdown-event
5206
+ */
5207
+ onPointerDown?: AttrEventHandler<PointerEvent, T>;
5208
+ "on-pointerdown"?: this["onPointerDown"];
5209
+
5210
+ /**
5211
+ * Fired when a pointing device is moved onto the element.
5212
+ * @see https://w3c.github.io/pointerevents/#the-pointerenter-event
5213
+ */
5214
+ onPointerEnter?: AttrEventHandler<PointerEvent, T>;
5215
+ "on-pointerenter"?: this["onPointerEnter"];
5216
+
5217
+ /**
5218
+ * Fired when a pointing device is moved off the element.
5219
+ * @see https://w3c.github.io/pointerevents/#the-pointerleave-event
5220
+ */
5221
+ onPointerLeave?: AttrEventHandler<PointerEvent, T>;
5222
+ "on-pointerleave"?: this["onPointerLeave"];
5223
+
5224
+ /**
5225
+ * Fired when a pointing device is moved over an element.
5226
+ * @see https://w3c.github.io/pointerevents/#the-pointermove-event
5227
+ */
5228
+ onPointerMove?: AttrEventHandler<PointerEvent, T>;
5229
+ "on-pointermove"?: this["onPointerMove"];
5230
+
5231
+ /**
5232
+ * Fired when a pointing device is moved off the element or off one of its children.
5233
+ * @see https://w3c.github.io/pointerevents/#the-pointerout-event
5234
+ */
5235
+ onPointerOut?: AttrEventHandler<PointerEvent, T>;
5236
+ "on-pointerout"?: this["onPointerOut"];
5237
+
5238
+ /**
5239
+ * Fired when a pointing device is moved onto the element or onto one of its children.
5240
+ * @see https://w3c.github.io/pointerevents/#the-pointerover-event
5241
+ */
5242
+ onPointerOver?: AttrEventHandler<PointerEvent, T>;
5243
+ "on-pointerover"?: this["onPointerOver"];
5244
+
5245
+ /**
5246
+ * Fired when a pointing device's button is released over an element.
5247
+ * @see https://w3c.github.io/pointerevents/#the-pointerup-event
5248
+ */
5249
+ onPointerUp?: AttrEventHandler<PointerEvent, T>;
5250
+ "on-pointerup"?: this["onPointerUp"];
5251
+
5252
+ /**
5253
+ * Fired when the user agent is downloading media data or resources, to indicate progress.
5254
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-progress
5255
+ */
5256
+ onProgress?: AttrEventHandler<Event, T>;
5257
+ "on-progress"?: this["onProgress"];
5258
+ onprogress?: AttrString;
5259
+
5260
+ /**
5261
+ * Fired when the playback rate of a media element has changed.
5262
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ratechange
5263
+ */
5264
+ onRateChange?: AttrEventHandler<Event, T>;
5265
+ "on-ratechange"?: this["onRateChange"];
5266
+ onratechange?: AttrString;
5267
+
5268
+ /**
5269
+ * Fired when a form is reset, either by user interaction or through a script.
5270
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-reset
5271
+ */
5272
+ onReset?: AttrEventHandler<Event, T>;
5273
+ "on-reset"?: this["onReset"];
5274
+ onreset?: AttrString;
5275
+
5276
+ /**
5277
+ * Fired at the Window when the viewport is resized. Fired at VisualViewport when the visual viewport is resized or the layout viewport is scaled.
5278
+ * @see https://drafts.csswg.org/cssom-view/#eventdef-window-resize
5279
+ */
5280
+ onResize?: AttrEventHandler<Event, T>;
5281
+ "on-resize"?: this["onResize"];
5282
+ onresize?: AttrString;
5283
+
5284
+ /**
5285
+ * Fired when an element's scrollbar is being scrolled.
5286
+ * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scroll
5287
+ */
5288
+ onScroll?: AttrEventHandler<Event, T>;
5289
+ "on-scroll"?: this["onScroll"];
5290
+ onscroll?: AttrString;
5291
+
5292
+ /**
5293
+ * 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.
5294
+ * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scrollend
5295
+ */
5296
+ onScrollEnd?: AttrEventHandler<Event, T>;
5297
+ "on-scrollend"?: this["onScrollEnd"];
5298
+ onscrollend?: AttrString;
5299
+
5300
+ /**
5301
+ * Fired when a security policy violation occurs, such as when an attempted resource load is blocked due to the security settings of the browser or when an inline script violates the Content Security Policy (CSP) of the page.
5302
+ * @see https://w3c.github.io/webappsec-csp/#eventdef-globaleventhandlers-securitypolicyviolation
5303
+ */
5304
+ onSecurityPolicyViolation?: AttrEventHandler<SecurityPolicyViolationEvent, T>;
5305
+ "on-securitypolicyviolation"?: this["onSecurityPolicyViolation"];
5306
+ onsecuritypolicyviolation?: AttrString;
5307
+
5308
+ /**
5309
+ * Fired when a seek operation on a media element completes.
5310
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-seeked
5311
+ */
5312
+ onSeeked?: AttrEventHandler<Event, T>;
5313
+ "on-seeked"?: this["onSeeked"];
5314
+ onseeked?: AttrString;
5315
+
5316
+ /**
5317
+ * Fired when a seek operation on a media element begins.
5318
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-seeking
5319
+ */
5320
+ onSeeking?: AttrEventHandler<Event, T>;
5321
+ "on-seeking"?: this["onSeeking"];
5322
+ onseeking?: AttrString;
5323
+
5324
+ /**
5325
+ * Fired when some text is selected within an input or textarea element.
5326
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-select
5327
+ */
5328
+ onSelect?: AttrEventHandler<Event, T>;
5329
+ "on-select"?: this["onSelect"];
5330
+ onselect?: AttrString;
5331
+
5332
+ /**
5333
+ * Fired when a <slot> element's distributed nodes change.
5334
+ * @see https://dom.spec.whatwg.org/#eventdef-htmlslotelement-slotchange
5335
+ */
5336
+ onSlotChange?: AttrEventHandler<Event, T>;
5337
+ "on-slotchange"?: this["onSlotChange"];
5338
+ onslotchange?: AttrString;
5339
+
5340
+ /**
5341
+ * Fired when a media element's data downloading has been stalled due to an issue, such as a lack of data.
5342
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-stalled
5343
+ */
5344
+ onStalled?: AttrEventHandler<Event, T>;
5345
+ "on-stalled"?: this["onStalled"];
5346
+ onstalled?: AttrString;
5347
+
5348
+ /**
5349
+ * Fired at a form element when it is submitted
5350
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-submit
5351
+ */
5352
+ onSubmit?: AttrEventHandler<SubmitEvent, T>;
5353
+ "on-submit"?: this["onSubmit"];
5354
+ onsubmit?: AttrString;
5355
+
5356
+ /**
5357
+ * Fired when the user agent intentionally does not download media data.
5358
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-suspend
5359
+ */
5360
+ onSuspend?: AttrEventHandler<Event, T>;
5361
+ "on-suspend"?: this["onSuspend"];
5362
+ onsuspend?: AttrString;
5363
+
5364
+ /**
5365
+ * Fired when the current playback position of a media element changes as part of normal playback or due to a seek operation.
5366
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-timeupdate
5367
+ */
5368
+ onTimeUpdate?: AttrEventHandler<Event, T>;
5369
+ "on-timeupdate"?: this["onTimeUpdate"];
5370
+ ontimeupdate?: AttrString;
5371
+
5372
+ /**
5373
+ * Fired at details elements when they open or close; fired on elements with the popover attribute when they are transitioning between showing and hidden
5374
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-toggle
5375
+ */
5376
+ onToggle?: AttrEventHandler<Event, T>;
5377
+ "on-toggle"?: this["onToggle"];
5378
+ ontoggle?: AttrString;
5379
+
5380
+ /**
5381
+ * Fired when a touch event is interrupted, such as by a modal window or an incoming phone call.
5382
+ * @see https://w3c.github.io/touch-events/#event-touchcancel
5383
+ */
5384
+ onTouchCancel?: AttrEventHandler<TouchEvent, T>;
5385
+ "on-touchcancel"?: this["onTouchCancel"];
5386
+
5387
+ /**
5388
+ * Fired when a finger is lifted from a touch surface.
5389
+ * @see https://w3c.github.io/touch-events/#event-touchend
5390
+ */
5391
+ onTouchEnd?: AttrEventHandler<TouchEvent, T>;
5392
+ "on-touchend"?: this["onTouchEnd"];
5393
+
5394
+ /**
5395
+ * Fired when a finger is moved along a touch surface.
5396
+ * @see https://w3c.github.io/touch-events/#event-touchmove
5397
+ */
5398
+ onTouchMove?: AttrEventHandler<TouchEvent, T>;
5399
+ "on-touchmove"?: this["onTouchMove"];
5400
+
5401
+ /**
5402
+ * Fired when a finger is placed on a touch surface.
5403
+ * @see https://w3c.github.io/touch-events/#event-touchstart
5404
+ */
5405
+ onTouchStart?: AttrEventHandler<TouchEvent, T>;
5406
+ "on-touchstart"?: this["onTouchStart"];
5407
+
5408
+ /**
5409
+ * Fired when a CSS transition is canceled.
5410
+ * @see https://drafts.csswg.org/css-transitions/#transitioncancel
5411
+ */
5412
+ onTransitionCancel?: AttrEventHandler<TransitionEvent, T>;
5413
+ "on-transitioncancel"?: this["onTransitionCancel"];
5414
+
5415
+ /**
5416
+ * Fired when a CSS transition has completed.
5417
+ * @see https://drafts.csswg.org/css-transitions/#transitionend
5418
+ */
5419
+ onTransitionEnd?: AttrEventHandler<TransitionEvent, T>;
5420
+ "on-transitionend"?: this["onTransitionEnd"];
5421
+
5422
+ /**
5423
+ * Fired when a CSS transition is first created, i.e. before any transition-delay has begun.
5424
+ * @see https://drafts.csswg.org/css-transitions/#transitionrun
5425
+ */
5426
+ onTransitionRun?: AttrEventHandler<TransitionEvent, T>;
5427
+ "on-transitionrun"?: this["onTransitionRun"];
5428
+
5429
+ /**
5430
+ * Fired when a CSS transition has actually started, i.e., after any transition-delay has ended.
5431
+ * @see https://drafts.csswg.org/css-transitions/#transitionstart
5432
+ */
5433
+ onTransitionStart?: AttrEventHandler<TransitionEvent, T>;
5434
+ "on-transitionstart"?: this["onTransitionStart"];
5435
+
5436
+ /**
5437
+ * Fired when the volume level or muted state of a media element changes.
5438
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-volumechange
5439
+ */
5440
+ onVolumeChange?: AttrEventHandler<Event, T>;
5441
+ "on-volumechange"?: this["onVolumeChange"];
5442
+ onvolumechange?: AttrString;
5443
+
5444
+ /**
5445
+ * Fired when a media element is waiting for data to continue playback, such as when buffering.
5446
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-waiting
5447
+ */
5448
+ onWaiting?: AttrEventHandler<Event, T>;
5449
+ "on-waiting"?: this["onWaiting"];
5450
+ onwaiting?: AttrString;
5451
+
5452
+ /**
5453
+ * Fired when a user rotates a mouse wheel or similar input device over an element.
5454
+ * @see https://w3c.github.io/uievents/#event-type-wheel
5455
+ */
5456
+ onWheel?: AttrEventHandler<WheelEvent, T>;
5457
+ "on-wheel"?: this["onWheel"];
5458
+ onwheel?: AttrString;
5459
+
5460
+ /**
5461
+ * Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
5462
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant
5463
+ */
5464
+ "aria-activedescendant"?: AttrString;
5465
+ /**
5466
+ * Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
5467
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-atomic
5468
+ * @see aria-relevant
5469
+ */
5470
+ "aria-atomic"?: AttrBooleanString;
5471
+ /**
5472
+ * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
5473
+ * presented if they are made.
5474
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete
5475
+ */
5476
+ "aria-autocomplete"?: AttrMissing | "both" | "inline" | "list" | "none";
5477
+ /**
5478
+ * Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
5479
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-busy
5480
+ */
5481
+ "aria-busy"?: AttrBooleanString;
5482
+ /**
5483
+ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
5484
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-checked
5485
+ */
5486
+ "aria-checked"?: AttrTriState;
5487
+ /**
5488
+ * Defines the total number of columns in a table, grid, or treegrid.
5489
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colcount
5490
+ */
5491
+ "aria-colcount"?: AttrStringOrNumber;
5492
+ /**
5493
+ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
5494
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colindex
5495
+ */
5496
+ "aria-colindex"?: AttrStringOrNumber;
5497
+ /**
5498
+ * Defines a human readable text alternative of aria-colindex.
5499
+ * @see https://w3c.github.io/aria/#aria-colindextext
5500
+ * @see aria-colindex
5501
+ */
5502
+ "aria-colindextext"?: AttrString;
5503
+ /**
5504
+ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
5505
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colspan
5506
+ */
5507
+ "aria-colspan"?: AttrStringOrNumber;
5508
+ /**
5509
+ * Identifies the element (or elements) whose contents or presence are controlled by the current element.
5510
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-controls
5511
+ * @see aria-owns
5512
+ */
5513
+ "aria-controls"?: AttrString;
5514
+ /**
5515
+ * Indicates the element that represents the current item within a container or set of related elements.
5516
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-current
5517
+ */
5518
+ "aria-current"?:
5519
+ | AttrBooleanString
5520
+ | "date"
5521
+ | "location"
5522
+ | "page"
5523
+ | "step"
5524
+ | "time"
5525
+ | "true";
5526
+ /**
5527
+ * Identifies the element (or elements) that describes the object.
5528
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-describedby
5529
+ * @see aria-labelledby
5530
+ */
5531
+ "aria-describedby"?: AttrString;
5532
+ /**
5533
+ * Defines a string value that describes or annotates the current element.
5534
+ * @see https://w3c.github.io/aria/#aria-description
5535
+ * @see aria-describedby
5536
+ */
5537
+ "aria-description"?: AttrString;
5538
+ /**
5539
+ * Identifies the element that provides a detailed, extended description for the object.
5540
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-details
5541
+ * @see aria-describedby
5542
+ */
5543
+ "aria-details"?: AttrString;
5544
+ /**
5545
+ * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
5546
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-disabled
5547
+ */
5548
+ "aria-disabled"?: AttrBooleanString;
5549
+ /**
5550
+ * @deprecated Indicates what functions can be performed when a dragged object is released on the drop target.
5551
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect
5552
+ * */
5553
+ "aria-dropeffect"?:
5554
+ | AttrMissing
5555
+ | "copy"
5556
+ | "execute"
5557
+ | "link"
5558
+ | "move"
5559
+ | "none"
5560
+ | "popup";
5561
+ /**
5562
+ * Identifies the element that provides an error message for the object.
5563
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage
5564
+ * @see aria-invalid
5565
+ * @see aria-describedby
5566
+ */
5567
+ "aria-errormessage"?: AttrString;
5568
+ /**
5569
+ * Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
5570
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-expanded
5571
+ * @see aria-controls
5572
+ */
5573
+ "aria-expanded"?: AttrBooleanString;
5574
+ /**
5575
+ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
5576
+ * allows assistive technology to override the general default of reading in document source order.
5577
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-flowto
5578
+ */
5579
+ "aria-flowto"?: AttrString;
5580
+ /**
5581
+ * @deprecated Indicates an element's "grabbed" state in a drag-and-drop operation.
5582
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed
5583
+ */
5584
+ "aria-grabbed"?: AttrBooleanString;
5585
+ /**
5586
+ * Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
5587
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup
5588
+ */
5589
+ "aria-haspopup"?:
5590
+ | AttrBooleanString
5591
+ | "dialog"
5592
+ | "grid"
5593
+ | "listbox"
5594
+ | "menu"
5595
+ | "tree";
5596
+ /**
5597
+ * Indicates whether the element is exposed to an accessibility API.
5598
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-hidden
5599
+ * @see aria-disabled
5600
+ */
5601
+ "aria-hidden"?: AttrBooleanString;
5602
+ /**
5603
+ * Indicates the entered value does not conform to the format expected by the application.
5604
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-invalid
5605
+ * @see aria-errormessage
5606
+ */
5607
+ "aria-invalid"?: AttrBooleanString | "grammar" | "spelling";
5608
+ /**
5609
+ * Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
5610
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-keyshortcuts
5611
+ */
5612
+ "aria-keyshortcuts"?: AttrString;
5613
+ /**
5614
+ * Defines a string value that labels the current element.
5615
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-label
5616
+ * @see aria-labelledby
5617
+ */
5618
+ "aria-label"?: AttrString;
5619
+ /**
5620
+ * Identifies the element (or elements) that labels the current element.
5621
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
5622
+ * @see aria-decribedby
5623
+ */
5624
+ "aria-labelledby"?: AttrString;
5625
+ /**
5626
+ * Defines the hierarchical level of an element within a structure.
5627
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-level
5628
+ */
5629
+ "aria-level"?: AttrString;
5630
+ /**
5631
+ * Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies,
5632
+ * and user can expect from the live region.
5633
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-live
5634
+ */
5635
+ "aria-live"?: AttrMissing | "assertive" | "off" | "polite";
5636
+ /**
5637
+ * Indicates whether an element is modal when displayed.
5638
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-modal
5639
+ */
5640
+ "aria-modal"?: AttrBooleanString;
5641
+ /**
5642
+ * Indicates whether a text box accepts multiple lines of input or only a single line.
5643
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-multiline
5644
+ */
5645
+ "aria-multiline"?: AttrBooleanString;
5646
+ /**
5647
+ * Indicates that the user may select more than one item from the current selectable descendants.
5648
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable
5649
+ */
5650
+ "aria-multiselectable"?: AttrBooleanString;
5651
+ /**
5652
+ * Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
5653
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-orientation
5654
+ */
5655
+ "aria-orientation"?: AttrMissing | "horizontal" | "vertical";
5656
+ /**
5657
+ * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
5658
+ * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
5659
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-owns
5660
+ */
5661
+ "aria-owns"?: AttrString;
5662
+ /**
5663
+ * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
5664
+ * A hint could be a sample value or a brief description of the expected format.
5665
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder
5666
+ */
5667
+ "aria-placeholder"?: AttrString;
5668
+ /**
5669
+ * Defines an element's number or position in the current set of listitems or treeitems.
5670
+ * Not required if all elements in the set are present in the DOM.
5671
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-posinset
5672
+ */
5673
+ "aria-posinset"?: AttrStringOrNumber;
5674
+ /**
5675
+ * Indicates the current "pressed" state of toggle buttons.
5676
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-pressed
5677
+ */
5678
+ "aria-pressed"?: AttrTriState;
5679
+ /**
5680
+ * Indicates that the element is not editable, but is otherwise operable.
5681
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-readonly
5682
+ */
5683
+ "aria-readonly"?: AttrBooleanString;
5684
+ /**
5685
+ * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
5686
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-relevant
5687
+ */
5688
+ "aria-relevant"?:
5689
+ | AttrMissing
5690
+ | "additions removals"
5691
+ | "additions text"
5692
+ | "additions"
5693
+ | "all"
5694
+ | "removals additions"
5695
+ | "removals text"
5696
+ | "removals"
5697
+ | "text additions"
5698
+ | "text removals"
5699
+ | "text";
5700
+ /**
5701
+ * Indicates that user input is required on the element before a form may be submitted.
5702
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-required
5703
+ */
5704
+ "aria-required"?: AttrBooleanString;
5705
+ /**
5706
+ * Defines a human-readable, author-localized description for the role of an element.
5707
+ */
5708
+ "aria-roledescription"?: AttrString;
5709
+ /**
5710
+ * Defines the total number of rows in a table, grid, or treegrid.
5711
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount
5712
+ */
5713
+ "aria-rowcount"?: AttrStringOrNumber;
5714
+ /**
5715
+ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
5716
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex
5717
+ */
5718
+ "aria-rowindex"?: AttrStringOrNumber;
5719
+ /**
5720
+ * Defines a human readable text alternative of aria-rowindex.
5721
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowindextext
5722
+ * @see aria-rowindex
5723
+ */
5724
+ "aria-rowindextext"?: AttrString;
5725
+ /**
5726
+ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
5727
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan
5728
+ */
5729
+ "aria-rowspan"?: AttrStringOrNumber;
5730
+ /**
5731
+ * Indicates the current "selected" state of various widgets.
5732
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-selected
5733
+ */
5734
+ "aria-selected"?: AttrBooleanString;
5735
+ /**
5736
+ * Defines the number of items in the current set of listitems or treeitems.
5737
+ * Not required if all elements in the set are present in the DOM.
5738
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-setsize
5739
+ */
5740
+ "aria-setsize"?: AttrStringOrNumber;
5741
+ /**
5742
+ * Indicates if items in a table or grid are sorted in ascending or descending order.
5743
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-sort
5744
+ */
5745
+ "aria-sort"?: "ascending" | "descending" | "none" | "other";
5746
+ /**
5747
+ * Defines the maximum allowed value for a range widget.
5748
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax
5749
+ * @see aria-valuenow
5750
+ */
5751
+ "aria-valuemax"?: AttrStringOrNumber;
5752
+ /**
5753
+ * Defines the minimum allowed value for a range widget.
5754
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin
5755
+ * @see aria-valuenow
5756
+ */
5757
+ "aria-valuemin"?: AttrStringOrNumber;
5758
+ /**
5759
+ * Defines the current value for a range widget.
5760
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow
5761
+ * @see aria-valuetext
5762
+ * @see aria-valuemin
5763
+ * @see aria-valuemax
5764
+ */
5765
+ "aria-valuenow"?: AttrStringOrNumber;
5766
+ /**
5767
+ * Defines the human readable text alternative of aria-valuenow for a range widget.
5768
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext
5769
+ * @see aria-valuenow
5770
+ */
5771
+ "aria-valuetext"?: AttrString;
5772
+ /**
5773
+ * Defines the ARIA role of an element.
5774
+ * @see https://www.w3.org/TR/wai-aria-1.1/#role_definitions
5775
+ */
5776
+ role?:
5777
+ | AttrMissing
5778
+ | "alert"
5779
+ | "alertdialog"
5780
+ | "application"
5781
+ | "article"
5782
+ | "banner"
5783
+ | "button"
5784
+ | "cell"
5785
+ | "checkbox"
5786
+ | "columnheader"
5787
+ | "combobox"
5788
+ | "complementary"
5789
+ | "contentinfo"
5790
+ | "definition"
5791
+ | "dialog"
5792
+ | "directory"
5793
+ | "document"
5794
+ | "feed"
5795
+ | "figure"
5796
+ | "form"
5797
+ | "grid"
5798
+ | "gridcell"
5799
+ | "group"
5800
+ | "heading"
5801
+ | "img"
5802
+ | "link"
5803
+ | "list"
5804
+ | "listbox"
5805
+ | "listitem"
5806
+ | "log"
5807
+ | "main"
5808
+ | "marquee"
5809
+ | "math"
5810
+ | "menu"
5811
+ | "menubar"
5812
+ | "menuitem"
5813
+ | "menuitemcheckbox"
5814
+ | "menuitemradio"
5815
+ | "meter"
5816
+ | "navigation"
5817
+ | "none"
5818
+ | "note"
5819
+ | "option"
5820
+ | "presentation"
5821
+ | "progressbar"
5822
+ | "radio"
5823
+ | "radiogroup"
5824
+ | "region"
5825
+ | "row"
5826
+ | "rowgroup"
5827
+ | "rowheader"
5828
+ | "scrollbar"
5829
+ | "search"
5830
+ | "searchbox"
5831
+ | "separator"
5832
+ | "slider"
5833
+ | "spinbutton"
5834
+ | "status"
5835
+ | "switch"
5836
+ | "tab"
5837
+ | "table"
5838
+ | "tablist"
5839
+ | "tabpanel"
5840
+ | "term"
5841
+ | "textbox"
5842
+ | "timer"
5843
+ | "toolbar"
5844
+ | "tooltip"
5845
+ | "tree"
5846
+ | "treegrid"
5847
+ | "treeitem";
5884
5848
  }
5885
-
5886
5849
  type AttrMissing = undefined | null | false;
5887
5850
  type AttrClass =
5888
5851
  | AttrMissing