RE: SVG12: DOMObject portability

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 UTC