This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For FormData it would be great to have a <form>-agnostic multipart/form-data encoding algorithm. As input it should accept key/value pairs where each key is a DOMString and the associated value is one of DOMString/Blob/File. Encoding can be forced to UTF-8 for FormData though having to set it as parameter is no problem (might be good even so it is clear from the FormData specification).
Done. You just have to change two things in XHR: add "and with UTF-8 as the explicit character encoding" to the sentence that invokes the algorithm, and in the definition of FormData.appendData(), say that the type of the entry is "text" if the value argument is a DOMString, and "file" if it's a Blob (and if it's a Blob and not a File, say that its filename is the empty string). EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diff given below Rationale: Concurred with reporter's comments.
Checked in as WHATWG revision r5774. Check-in comment: Provide a hook for the XHR spec. http://html5.org/tools/web-apps-tracker?from=5773&to=5774
mass-move component to LC1