- From: Anne van Kesteren <annevk@opera.com>
- Date: Tue, 13 Oct 2009 20:47:18 +0200
- To: "Brendan Eich" <brendan@mozilla.org>
- Cc: "Maciej Stachowiak" <mjs@apple.com>, "HTML WG" <public-html@w3.org>
On Tue, 13 Oct 2009 20:39:42 +0200, Brendan Eich <brendan@mozilla.org> wrote: > On Oct 13, 2009, at 11:19 AM, Anne van Kesteren wrote: >> typeof gives undefined and ToBoolean gives false. I'm not sure there's >> anything else. > > What about (document.all == undefined) and (document.all == null)? How > about ===? These do not apply ToBoolean. All false. I haven't seen any logged issues on this either, but admittedly I have not looked into it that much. I'm mostly trying to wrap my head around some other specs. > How is that not what you called a "weird result"? It's similar to what > we do in assigning undefined, i.e., treating assignment as "detecting". Having the object evaluate to false does not seem so weird to me. -- Anne van Kesteren http://annevankesteren.nl/
Received on Tuesday, 13 October 2009 18:47:59 UTC