[Bug 13681] New: Make FormData.append return the FormData object


           Summary: Make FormData.append return the FormData object
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XHR 2.0
        AssignedTo: annevk@opera.com
        ReportedBy: jonas@sicking.cc
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org

If we change the FormData.append function to return the FormData object on
which the function was called, it would allow syntax like

myformdata.append("foo", file).append("bar", "text").append("baz", blob);

as well as

xhr.send((new FormData).append("afile", myfile));

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Friday, 5 August 2011 05:41:21 UTC