W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: typeof document.all

From: <hallvord@opera.com>
Date: Tue, 13 Oct 2009 22:37:16 +0000
Message-ID: <20091013223716.t4v028hts0088c84@staff.opera.com>
To: Brendan Eich <brendan@mozilla.org>
Cc: Anne van Kesteren <annevk@opera.com>, Maciej Stachowiak <mjs@apple.com>, HTML WG <public-html@w3.org>
Siterer Brendan Eich <brendan@mozilla.org>:

>>> d=document;
>>> this.ie=(d.all);

>> Isn't the situation here that the variable d just references the    
>> real document object, so that d.all in turn references the real all  
>>   collection, which this.ie again is going to be a reference too.  
>> So   when this.ie later is used in a boolean context, it refers to  
>> the   same, old doc.all object with its magic "pretend to be false  
>> in   boolean contexts" behaviour.
>
> Could be (I haven't tested Opera; that is your department :-)

It certainly is ;-)

> but Anne
> suggested otherwise: "Sure, it evaluates to false." in
>
> http://lists.w3.org/Archives/Public/public-html/2009Oct/0369.html
>
> Or did I misunderstand his "it" in that sentence?

This was a misunderstanding, yes.
Received on Tuesday, 13 October 2009 22:37:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:50 GMT