W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: Correct case of object names

From: Clover Andrew <aclover@1value.com>
Date: Mon, 5 Nov 2001 11:14:57 +0100
Message-ID: <D58B0195B58937489E89124469E57CA249D9FA@EX1.1value.com>
To: <www-dom@w3.org>
Jesse McCarthy <mccarthy36@earthlink.net> wrote:

> While experimenting with the DOM in Netscape 6.1,
> I must refer to this object  as "document" (note
> difference in case).

Yes. This is not inconsistent.

The object you are referring to is the 'document' property of the window
object. JavaScript puts properties of window into global scope so you
don't always have to write 'window.document'. The property's name is
irrelevant - it could equally be called 'window.custardPudding' - but
the object it contains is indeed of class Document, capital-D. (Or
rather, its subclass HTMLDocument.)

Andrew Clover
Technical Consultant
Received on Monday, 5 November 2001 05:14:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC