[whatwg] Adding FormData support to <form>

On Thu, 18 Feb 2010, Anne van Kesteren wrote:
> On Thu, 18 Feb 2010 23:06:12 +0100, Jonas Sicking <jonas at sicking.cc> wrote:
> > On Wed, Feb 17, 2010 at 11:30 PM, Anne van Kesteren <annevk at opera.com>
> > wrote:
> > > On Thu, 18 Feb 2010 00:15:25 +0100, Jonas Sicking <jonas at sicking.cc>
> > > wrote:
> > > > 
> > > > So I suggest we add a method like
> > > > 
> > > > interface HTMLFormElement : HTMLElement {
> > > > ...
> > > > FormData getFormData();
> > > > ...
> > > > };
> > > 
> > > Should we name it toFormData() instead for consistency with <canvas>? Or
> > > is
> > > <canvas> inconsistent with something else?
> > 
> > There are much more functions that are named "getX" than "toX" in the
> > DOM. Such as getElementById, getElementsByTagName,
> > getBoundingClientRect.
> 
> Sure, but this seems more analogous to toDataURL() than to 
> getElementById(). YMMV.

toDataURL() was named that way for consistency with toString(), which 
seems a closer analogue here than getElementById() and friends.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 18 February 2010 16:52:59 UTC