[whatwg/xhr] FormData & submitter[formaction] (Issue #381)

Hi,

Is it possible to improve the behavior spec about the `new FormData(form, submitter)`, to simply support something like this, please?

Using a *submitter* like:

```html
<button formaction="..." formenctype="multipart/form-data" formmethod="post" type="submit" name="name" value="value">text</button>
```

```js
new FormData(undefined, submitter) // actually, FormData (0)
```

Imho, if the button is a *standalone submitter*, there is no reason to be owned by a form to use it as a `FormData` submitter.

Any thoughts about that idea?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/381
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/xhr/issues/381@github.com>

Received on Friday, 15 September 2023 10:33:48 UTC