From 7c44d2b66842270b708967d68bba899675b0c19c Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Sun, 2 Feb 2025 12:34:32 +0000 Subject: [PATCH] sync changes from #10960 --- source | 59 +++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/source b/source index 75bf08ba3b8..aad65373cf6 100644 --- a/source +++ b/source @@ -53506,20 +53506,20 @@ interface HTMLButtonElement : HTMLElement { data-x="invalid value default">invalid value default are both the Submit Button state.

-

If the type attribute is in the Submit Button state, and the type, command, and - commandfor content attributes are not present, then - the element is specifically a submit button.

+

An element is said to be a submit button if any of + the following are true:

-

If the type content attribute is present and in the - Submit Button state, then the element is - specifically a submit button.

+ + +

Constraint validation: If the element is not a submit button, the element is barred from constraint + validation.

If specified, the commandfor attribute value must be the HTMLButtonElement : HTMLElement {

  • If element is a submit button:

    -
      +
    1. If element has a form owner then submit element's form owner from - element with userInvolvement set to - event's user navigation involvement.

    2. + data-x="concept-form-submit">Submit element's form + owner from element with userInvolvement set to event's user navigation involvement.

    3. Return.

    @@ -53606,7 +53607,7 @@ interface HTMLButtonElement : HTMLElement { data-x="attr-button-type-reset-state">Reset Button state:

      -
    1. If element has a form owner then

      If element has a form owner, then Reset element's form owner.

    2. Return.

    3. @@ -53740,9 +53741,8 @@ interface HTMLButtonElement : HTMLElement { data-x="attr-fs-formenctype">formenctype, formmethod, formnovalidate, and formtarget must not be specified if the element's type attribute is not in the Submit Button state.

      + data-x="attr-fs-formtarget">formtarget must not be specified if the element is not a submit button.

      The commandForElement IDL attribute must @@ -53802,9 +53802,22 @@ interface HTMLButtonElement : HTMLElement {

      The value IDL attribute must reflect the content attribute of the same name.

      -

      The type IDL - attribute must reflect the content attribute of the same name, limited to only - known values.

      +

      The type + getter steps are:

      + +
        +
      1. If this is a submit button, then + return "submit".

      2. + +
      3. If this's type attribute is in the + Reset state, then return "reset".

      4. + +
      5. Return "button".

      6. +
      + +

      The type setter steps are to set the type content attribute to the given value.

      The willValidate, validity, and