- From: Anne van Kesteren <annevk@opera.com>
- Date: Wed, 11 Apr 2012 09:01:17 +0200
- To: public-webapps@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
On Wed, 11 Apr 2012 02:03:30 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote: > On 4/10/12 7:15 PM, Jonas Sicking wrote: >> If I'm the only one who prefer the other behavior then we should stick >> to what the spec already says. I'll make sure Gecko maintains that >> behavior as we implement our new WebIDL bindings. > > One note, though. If we do want the current behavior, then I think that > it would make sense to change the IDL for send() to: > > void send(ArrayBuffer data); > void send(Blob data); > void send(Document data); > void send(optional DOMString? data = null); > void send(FormData data); > > and change the text that currently says "If the data argument has been > omitted or is null" to "If the data argument is null". > > That will make it much clearer to someone reading the IDL that passing > nothing has the same behavior as passing null. How about send(optional (ArrayBuffer or Blob or Document or DOMString or FormData)? data = null) ? -- Anne van Kesteren http://annevankesteren.nl/
Received on Wednesday, 11 April 2012 07:01:55 UTC