Re: [w3ctag/design-reviews] FYI - Add optional `submitter` parameter to the `FormData` constructor (Issue #812)

From an API design point of view, I find it odd that this was added as a positional argument and not a dictionary parameter. Seeing one of the examples in the wild, I'd have no idea what the second parameter is for, whereas `{submitter: myform.querySelector("#unnamed")}` is far more clear (and extensible).

See also: https://github.com/w3ctag/design-principles/issues/366 (consensus on the principle, but I still need to write it)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/812#issuecomment-1409500632
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/812/1409500632@github.com>

Received on Monday, 30 January 2023 23:13:06 UTC