From 7c44d2b66842270b708967d68bba899675b0c19c Mon Sep 17 00:00:00 2001
From: Keith Cirkel
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.
The type
attribute is in the Submit Button state; or
Constraint validation: If the type
- attribute is in the Reset Button state or the
- Button state, the element is barred from
- constraint validation.
The type
content attribute is present, and in the
+ Submit Button state.
Constraint validation: If the element is not a submit button, the element is barred from constraint + validation.
If specified, the If element is a submit button: If element has a form owner then submit element's form owner from
- element with userInvolvement set to
- event's user navigation involvement.commandfor
attribute value must be the HTMLButtonElement : HTMLElement {
+
Return.
If element has a form owner then If element has a form owner, then Reset element's form owner.
Return.
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:
If this is a submit button, then
+ return "submit
".
If this's type attribute is in the
+ Reset state, then return "reset
".
Return "button
".
The type
setter steps are to set the type
content attribute to the given value.
The willValidate
, validity
, and