W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 05 Aug 2011 05:41:20 +0000
To: public-webapps@w3.org
Message-ID: <bug-13681-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13681

           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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT