Re: typeof document.all

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