marko 5.25.10 → 5.25.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tags-html.d.ts +24 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.25.10",
3
+ "version": "5.25.11",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
package/tags-html.d.ts CHANGED
@@ -752,7 +752,7 @@ declare global {
752
752
  }
753
753
  interface FigCaption extends HTMLAttributes<HTMLElement> {}
754
754
  interface Figure extends HTMLAttributes<HTMLElement> {}
755
- interface Form extends HTMLAttributes<HTMLElement> {
755
+ interface Form extends HTMLAttributes<HTMLFormElement> {
756
756
  /**
757
757
  * Specifies the character encodings that are to be used for the form submission.
758
758
  * @see https://html.spec.whatwg.org/multipage/forms.html#attr-form-accept-charset
@@ -824,14 +824,28 @@ declare global {
824
824
  target?: AttrTarget;
825
825
  /** @deprecated */
826
826
  accept?: AttrString;
827
+
828
+ /**
829
+ * Fired at a form element when it is constructing the entry list
830
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-formdata
831
+ */
832
+ onFormData?: AttrEventHandler<FormDataEvent, HTMLFormElement>;
833
+ "on-formdata"?: this["onFormData"];
834
+
835
+ /**
836
+ * Fired when a form is submitted, either by user interaction or through a script.
837
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-submit
838
+ */
839
+ onSubmit?: AttrEventHandler<SubmitEvent, HTMLFormElement>;
840
+ "on-submit"?: this["onSubmit"];
827
841
  }
828
- interface H1 extends HTMLAttributes<HTMLFormElement> {}
842
+ interface H1 extends HTMLAttributes<HTMLHeadingElement> {}
829
843
  interface H2 extends HTMLAttributes<HTMLHeadingElement> {}
830
844
  interface H3 extends HTMLAttributes<HTMLHeadingElement> {}
831
845
  interface H4 extends HTMLAttributes<HTMLHeadingElement> {}
832
846
  interface H5 extends HTMLAttributes<HTMLHeadingElement> {}
833
847
  interface H6 extends HTMLAttributes<HTMLHeadingElement> {}
834
- interface Footer extends HTMLAttributes<HTMLHeadingElement> {}
848
+ interface Footer extends HTMLAttributes<HTMLElement> {}
835
849
  interface Head extends HTMLAttributes<HTMLHeadElement> {
836
850
  /** @deprecated */
837
851
  profile?: AttrString;
@@ -3077,13 +3091,6 @@ declare global {
3077
3091
  onStalled?: AttrEventHandler<Event, T>;
3078
3092
  "on-stalled"?: this["onStalled"];
3079
3093
 
3080
- /**
3081
- * Fired when a form is submitted, either by user interaction or through a script.
3082
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-submit
3083
- */
3084
- onSubmit?: AttrEventHandler<SubmitEvent, T>;
3085
- "on-submit"?: this["onSubmit"];
3086
-
3087
3094
  /**
3088
3095
  * Fired when the user agent intentionally does not download media data.
3089
3096
  * @see https://html.spec.whatwg.org/multipage/media.html#event-media-suspend
@@ -3098,6 +3105,13 @@ declare global {
3098
3105
  onTimeUpdate?: AttrEventHandler<Event, T>;
3099
3106
  "on-timeupdate"?: this["onTimeUpdate"];
3100
3107
 
3108
+ /**
3109
+ * Fired at details elements when they open or close; fired on elements with the popover attribute when they are transitioning between showing and hidden
3110
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-toggle
3111
+ */
3112
+ onToggle?: AttrEventHandler<Event, T>;
3113
+ "on-toggle"?: this["onToggle"];
3114
+
3101
3115
  /**
3102
3116
  * Fired when a touch event is interrupted, such as by a modal window or an incoming phone call.
3103
3117
  * @see https://w3c.github.io/touch-events/#event-touchcancel