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 18:50:16 +0200
To: "Maciej Stachowiak" <mjs@apple.com>, "Brendan Eich" <brendan@mozilla.org>
Cc: "HTML WG" <public-html@w3.org>
Message-ID: <op.u1qzp2nf64w2qv@anne-van-kesterens-macbook.local>
On Tue, 13 Oct 2009 12:28:56 +0200, Maciej Stachowiak <mjs@apple.com>  
> [...]

FWIW, Opera overrides ToBoolean and typeof, similarly to WebKit as I  
understand things. I skimmed through our bug report on the issue and it  
seems that nobody was really in favor of what Gecko was doing. Violating  
the ECMAScript specification was apparently much more straightforward, and  
would not give weird results when assigning document.all to a variable. Or  
that document.all == undefined is true but document.all == document.all is  

(I also got a comment to the effect that too much time is wasted on  
document.all, though I personally think it is worthwhile to document how  
it ought to work given that every browser had to implement it and  
converged to hiding it.)

Anne van Kesteren
Received on Tuesday, 13 October 2009 16:50:59 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:52 UTC