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

@plinss and I looked at this during a breakout today.

Our thoughts were:
1. We think a positional argument for `submitter` is unintuitive. There is nothing that would indicate that this is a submitter argument when looking at calls to this constructor in the wild.
2. We do agree that a dictionary replacing the first argument would be confusing, though a dictionary for the second argument does not have this issue. 
3. As the SO post, npm module etc indicate, authors often want to convert arbitrary objects to form data. We want to urge the API owners to explore supporting this use case, either by extending the constructor or through a factory method.
  
We do not see any architectural issues with adding the argument however, and do not have any other concerns beyond this API design issue, so we will go ahead and close this.

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

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

Received on Tuesday, 7 February 2023 16:05:00 UTC