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

Re: typeof document.all

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 13 Oct 2009 20:19:57 +0200
To: "Brendan Eich" <brendan@mozilla.org>
Cc: "Maciej Stachowiak" <mjs@apple.com>, "HTML WG" <public-html@w3.org>
Message-ID: <op.u1q3vjh664w2qv@anne-van-kesterens-macbook.local>
On Tue, 13 Oct 2009 20:07:02 +0200, Brendan Eich <brendan@mozilla.org>  
wrote:
> Anyway, an informal spec-let detailing what Opera does to at least the
> level of detail that Maciej gave would be helpful.

typeof gives undefined and ToBoolean gives false. I'm not sure there's  
anything else.


>> Violating the ECMAScript specification was apparently much more
>> straightforward, and would not give weird results when assigning
>> document.all to a variable.
>
> We found that necessary for IE-only page compatibility:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=259935
>
> Does Opera work  correctly (more precisely, did it work correctly
> ~2004-2005) on the pages cited in comment 0 of that bug? If so, why?
> It must not have been running the code we were, or else assigning
> document.all to a variable must not have created the collection.

Sure, it evaluates to false.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 13 October 2009 18:20:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:09 UTC