Re: [WICG/webcomponents] Form-associated custom elements: being a submit button (#814)

It would give the elements the semantics of a lowercase "submit button". So that means:

* You can invoke `requestSubmit()` with it as argument.
* It supports the [formaction](https://html.spec.whatwg.org/#attr-fs-formaction), [formenctype](https://html.spec.whatwg.org/#attr-fs-formenctype), [formmethod](https://html.spec.whatwg.org/#attr-fs-formmethod), [formnovalidate](https://html.spec.whatwg.org/#attr-fs-formnovalidate), and [formtarget](https://html.spec.whatwg.org/#attr-fs-formtarget) attributes.
* It partakes in implicit submission.
* It can be returned from `SubmitEvent`.
* `:default` can match it.
* It cannot be a popover target element.

And yeah, it should have activation behavior that matches that of other submit buttons.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/814#issuecomment-1448167731
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/814/1448167731@github.com>

Received on Tuesday, 28 February 2023 13:19:25 UTC