Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > JavaScript object specifications in Mozilla source?

Reply
Thread Tools

JavaScript object specifications in Mozilla source?

 
 
James
Guest
Posts: n/a
 
      02-14-2006
I've been looking at the Mozilla source (1.8b1) and I thought that
there I might find definitions of the various client-side JavaScript
objects (e.g. history, navigator). Has anyone managed to find these
definitions in the Mozilla source code? Grepping for say "navigator"
in the mozilla/js directory (and subdirectories) returns only one
non-relevant match. I would like to see how these objects are
implemented in source-code

-James

 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      02-15-2006
James wrote:

> I've been looking at the Mozilla source (1.8b1) and I thought that
> there I might find definitions of the various client-side JavaScript
> objects (e.g. history, navigator).


Those are no longer Core/Client-side JavaScript objects since JavaScript
1.4, and Mozilla/5.0 rv:1.8b implements JavaScript 1.6. Different to
Microsoft JScript (or so it appears), the distinction between core
language and the (Netscape Navigator) Document Object Model was made
late in the JavaScript language, at least it was in its documentation.

> Has anyone managed to find these definitions in the Mozilla source
> code? Grepping for say "navigator" in the mozilla/js directory (and
> subdirectories) returns only one non-relevant match. I would like to
> see how these objects are implemented in source-code


I do not have an ad-hoc URL, but you should read this first:

<URL:http://developer.mozilla.org/en/docs/The_DOM_and_JavaScript>

XULPlanet is a good start to find out what the used interfaces for host
objects provided by the Gecko DOM are:

<URL:http://xulplanet.com/references/objref/>

You can then look for the corresponding interface identifiers in

<URL:http://lxr.mozilla.org/>


HTH

PointedEars
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      02-15-2006
Thomas 'PointedEars' Lahn wrote:

> James wrote:
>> I've been looking at the Mozilla source (1.8b1) and I thought that
>> there I might find definitions of the various client-side JavaScript
>> objects (e.g. history, navigator).

> [...]
>> [...] I would like to see how these objects are implemented in
>> source-code

>
> I do not have an ad-hoc URL, but


I have one now

<URL:http://lxr.mozilla.org/mozilla1.8/source/dom/public/idl/base/nsIDOMWindowInternal.idl>


PointedEars
 
Reply With Quote
 
James
Guest
Posts: n/a
 
      02-15-2006
Thomas 'PointedEars' Lahn wrote:
> I have one now
>
> <URL:http://lxr.mozilla.org/mozilla1.8/source/dom/public/idl/base/nsIDOMWindowInternal.idl>
>


Thanks!

The "idl" files seem to list the information I was interested in.

-James

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DTD to Schema (W3C): Is it possible to combine datatyping at element level and attribute value specifications??? Ingrid XML 0 08-03-2004 12:26 PM
Supermicro slocket - socket 370 to slot 1adapter - anyone have specifications ??? no-name Computer Support 0 06-07-2004 07:48 PM
Q : Music XML specifications ? JCR XML 1 11-19-2003 06:52 PM
Can anyone point me to specifications dealing with encapsulation of GSM FR speech frames? James Calivar VOIP 1 11-05-2003 07:14 PM
NM-1CE1B cable specifications Helmut Ulrich Cisco 2 07-22-2003 04:14 PM



Advertisments