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>  
wrote:
> [...]

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  
false.

(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
http://annevankesteren.nl/
Received on Tuesday, 13 October 2009 16:50:59 UTC

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