RE: DOM Level 2: EventTargets and Nodes

I would suggest using standard language found elsewhere in the document, e.g., "this interface is obtained by means of binding-specific casting on an instance of the Node interface."

-----Original Message-----
From: www-dom-request@w3.org [mailto:www-dom-request@w3.org]On Behalf Of
Arnaud Le Hors
Sent: Tuesday, March 28, 2000 8:10 PM
To: Steve.Ball@zveno.com
Cc: www-dom@w3.org
Subject: 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 Wednesday, 29 March 2000 13:45:09 UTC