Re: typeof document.all

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