W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2012

Re: [DOM4] EventTarget as first class citizen

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 29 Feb 2012 18:26:33 -0500
Message-ID: <4F4EB429.40100@mit.edu>
To: Marcos Caceres <w3c@marcosc.com>
CC: www-dom@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT