Re: [DOM4] EventTarget as first class citizen

On 2/29/12 6:00 PM, Marcos Caceres wrote:
> So I would have expected Node's __proto__ to be "EventTarget". But it is not…

Yes, because that part of the spec is not implemented yet.

The EventTarget methods would live on HTMLAnchorElement.prototype if 
EventTarget were not on the proto chain, in your case.

> Node somehow transparently/silently inherits EventTarget.

No, it doesn't.

-Boris

Received on Wednesday, 29 February 2012 23:27:02 UTC