W3C home > Mailing lists > Public > www-svg@w3.org > February 2008

Re: Event handlers in SVGt 1.2 beta conformance tests

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 11 Feb 2008 14:25:34 +1100
To: www-svg@w3.org
Message-ID: <20080211032534.GD4337@arc.mcc.id.au>

Hi Kalle.

Sorry about the delay in responding.

Kalle Raita:
> All conformance tests use plain JavaScript functions as event
> listeners, but the specification requires the listener to be an object
> with a function called handleEvent (see spec sections A.2.7, A.5.2, and
> A.5.1). 
> One possible way of constructing the handler would be:
> 
> function foohandler (event) {
> doSomething();
> }
> 
> foohandler.handleEvent = foohandler;
> bar.addEventListener(foohandler);
> 
> Examples of using directly functions can be found, for example, in
> svggen/interact-dom-02-t.svg and svggen/udom-event-201-t.svg. 
> 
> Have we misunderstood the specification or are the conformance tests in
> error?

We have updated the ECMAScript Binding appendix in the internal copy of
the document to allow EventListener arguments to be specified either as
an object with a handlerEvent proprety, or a function.

> Should I report this kind of findings in the Bugzilla instead of the
> mailing list?

The mailing list is fine!

Thanks,

Cameron
—for the SVG WG
(ACTION-1778)

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Monday, 11 February 2008 03:26:02 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:38 GMT