Re: DOM Level 2: EventTargets and Nodes

Steve Ball wrote:
> > The spec says:
> "The EventTarget interface is implemented by all Nodes
> in an implementation...".  However, EventTarget does
> not derive from Node, and there are no methods to
> create an association.  For Level 2, is this something
> extra that must be provided by the implementation?

Yes. The idea is that if your implementation supports the event module
then every node should implement this interface.

> ... 
>  I just can't
> see the coupling of a Node to an EventTarget.

There is no direct coupling. They are different interfaces that need to
be implemented by the same classes.
Arnaud  Le Hors - IBM Cupertino, XML Technology Group

Received on Tuesday, 28 March 2000 20:11:03 UTC