W3C home > Mailing lists > Public > www-svg@w3.org > December 2005

RE: SVG12: DOMObject portability

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Sat, 3 Dec 2005 16:02:06 -0000
Message-ID: <7E4E0F91-79A9-4352-BC89-89CB1B2C6DEB@s15.mail.x-port.net>
To: "'Anne van Kesteren'" <fora@annevankesteren.nl>
Cc: <www-svg@w3.org>

Anne,

> So SVG extends DOM events in such a way that non-Nodes can 
> become the target of an event?

DOM Events has never mandated that it is only Nodes that can receive events.
The thing that receives the event is the EventTarget, and it's certainly
possible to use the EventTarget interface in other parts of a system,
without it being attached to a Node.

However, the EventTarget interface has no notion of hierarchy, so bubbling
and capture behaviour arise from the EventTarget interfaces being attached
to Nodes in a DOM. But even then, it does not mean that some other hierarchy
could not be used, which could still take advantage of the concepts of
bubbling and capture.

I think the way round to look at it is this; EventTarget can exist
independently of Node, but any Node on a DOM that supports DOM Events *must*
support EventTarget.

Regards,

Mark


Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/

Download our XForms processor from
http://www.formsPlayer.com/
Received on Saturday, 3 December 2005 16:03:32 GMT

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