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

Re: What is the meaning of the DOM ECMAScript binding?

From: Jesse McCarthy <mccarthy36@earthlink.net>
Date: Fri, 9 Nov 2001 08:06:10 -0500
To: neil_laurance@yahoo.co.uk, www-dom@w3.org
Message-ID: <MWMail.rfjnahin@host.none>
Neil Laurance <neil_laurance@yahoo.co.uk> wrote on 11/9/01 6:39:04 AM:
>I think you can rely on Navigator and Explorer to follow DOM, since they are
>both involved in its conception. A bit of example code should illustrate how to
>use the DOM API in NS, and IE:
>var myDocument = window.document;  // Document object

>I hope this explains how to use DOM. Apologies for any bugs or bad practices ;)
>Cheers, Neil

The problem with that, Neil, is that, as a couple of individuals have been good 
enough to explain to me, there is nothing in the DOM specification that 
indicates what the name of the object representing the 'Document' object will 
be -- it could be anything.  So, as I understand it, Netscape and Microsoft can 
both release browsers that are 100% DOM compliant but _do not_ provide access 
to the 'Document' object with the same object name.  There is no guarantee that 
the 'Document' object will be exposed as 'window.document'.  E.g. Netscape 
could release a browser that exposes the 'Document' object as 'document' and 
Microsoft could expose the same object as 'Microsoft'.  If my understanding of 
the situation is correct, then you can see the dilemma. 
Received on Friday, 9 November 2001 08:17:29 UTC

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