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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
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: [hidden email]
        ReportedBy: [hidden email]
         QAContact: [hidden email]
                CC: [hidden email], [hidden email]


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.

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13681

Anne <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--
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.

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13681

Jonas Sicking <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |

--- Comment #2 from Jonas Sicking <[hidden email]> 2011-08-17 16:53:09 UTC ---
That's a terrible reason not to do something! There are lots of things that the
DOM didn't used to do but which were a good idea and that we're slowly starting
to do now.

Do you have a technical reason why you don't think we should provide the nicer
syntax in comment 0?

--
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.

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=13681

Anne <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #5 from Anne <[hidden email]> ---
Once ECMAScript adopts this pattern, and looking at
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Map
it won't, we should consider it, no sooner imo.

--
You are receiving this mail because:
You are on the CC list for the bug.