Re: Hypothetical WebIDL block for EventTarget

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 UTC