W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2009

Re: Hypothetical WebIDL block for EventTarget

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Wed, 14 Oct 2009 14:19:33 -0700
Message-ID: <c9e12660910141419m1f249a61yef54fc27ab5af9ba@mail.gmail.com>
To: Travis Leithead <travil@microsoft.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>, public-script-coord@w3.org
On Wed, Oct 14, 2009 at 1:52 PM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
> On Wed, Oct 14, 2009 at 12:26 PM, Travis Leithead <travil@microsoft.com> wrote:
>

[snip]

> Where is your test code?
>
>> Browser     this.hasOwnProperty("EventTarget")
>> ===============================================
>> IE8             false
>> FF3.5           false (but EventTarget.prototype exists)?
>> Safari4 false
>> Opera10 false
>>
>
> The expectation of a |true| result would be based on on a few preconditions:
>  (1) A global EventTarget property
>  (2) The global object has Object.prototype in its prototype chain.
>  (3) hasOwnProperty checks the both the Window and the WindowProxy.
>
(as a special behavior of |hasOwnProperty| for Global/WindowProxy object)
Received on Wednesday, 14 October 2009 21:20:09 GMT

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