Re: [WebIDL] overloading and fallback

On Wed, 17 Jun 2009 08:28:14 +0200, Cameron McCormack <cam@mcc.id.au> wrote:
> Anne van Kesteren:
>> In XMLHttpRequest in the send() method is overloaded to take a
>> Document and a DOMString. All non-Document objects are treated with
>> the semantics of DOMString. (Attempt to stringification etc.) Is there
>> a way to specify this without explicit language in the specification?
>
> I added [AllowAny] to support this:
>
>   http://dev.w3.org/2006/webapi/WebIDL/#AllowAny

So a.f(1.23); throws in the example because the method is overloaded? I.e. it would not throw if the method did not accept an A object as argument?

If so, I suppose that works great, thanks!


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Wednesday, 17 June 2009 10:48:41 UTC