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

Re: [FileAPI] Blob constructor should probably take a sequence, not an IDL array object

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 10 Sep 2012 18:49:17 -0400
Message-ID: <504E6E6D.8060200@mit.edu>
To: Arun Ranganathan <arun@mozilla.com>
CC: Glenn Maynard <glenn@zewt.org>, public-webapps@w3.org
On 9/10/12 6:36 PM, Arun Ranganathan wrote:
> I've pinged heycam to see if this is a proper use of the sequence type.  I'm not sure it allows for such a variation in parameters.

Sequence allows any WebIDL type as a sequence element.

So for example, you can do this:

   sequence<(sequence<(DOMString or Element or ArrayBufferView)> or
             DOMString)>

Not that you should do such a thing.  ;)

-Boris
Received on Monday, 10 September 2012 22:49:48 GMT

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