W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

AsyncStatusCallback interface and GetURL, PostURL

From: Niklas Hagelroth <niklas.hagelroth@ikivo.com>
Date: Thu, 23 Oct 2008 14:24:22 +0200
Message-ID: <234EB4699C751A4A95DF4FD8D041BBFD01068F61@SESTHSRV10.zoomon.local>
To: "SVG Working Group WG" <public-svg-wg@w3.org>
Hi WG,

 

The ECMAScript binding of the AsyncStatusCallback interface does no
mention that an ECMAScript function can be passed as an argument to
functions like GetURL and PostURL instead of an object that implements
the 'operationComplete' function.

 

The tests for GetURL and PostURL uses this method i.e passes a function
and not an object as callback.

 

I think this should be clarified in the ECMAScript binding chapter (and
uDOM chapter?) similar to what is specified for EventListener:

 

[[

In ECMAScript, an EventListener can be specified in one of two ways. The
first is an ECMAScript Function object, where the function itself is
considered to be the implementation of the handleEvent operation. The
second is an ECMAScript object with a property handleEvent, which
provides the implementation of the handleEvent operation. If an
ECMAScript Function object also has a handleEvent property, then that
handleEvent property and not the Function itself is considered to be the
implementation of the handleEvent operation.

]]

 

Cheers,

Niklas

 

 
Received on Thursday, 23 October 2008 12:25:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 23 October 2008 12:25:24 GMT