Default value of JS window object

Koos Vriezen koos.vriezen at xs4all.nl
Fri Jul 5 17:13:02 BST 2002


On Fri, 5 Jul 2002, Harri Porten wrote:

> On Fri, 5 Jul 2002, Koos Vriezen wrote:
>
> > Hmm, that funny 'document=="[object HTMLDocument]"' returns 'true'. Should
> > it?
>
> HTMLDocument is the proper DOM name IIRC. The whole "[object X]" thing is
> completely arbritrary according to the spec. We just do the same as other
> browsers (at least NS) here.

Yes, just tested mozilla. But I didn't mean the naming stuff, it's strange
that comparing an object with a string can return 'true'. I wonder what IE
does...

Koos





More information about the kfm-devel mailing list