473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

JavaScript object specifications in Mozilla source?

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

Feb 15 '06 #1
3 1506
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
Feb 15 '06 #2
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
Feb 15 '06 #3
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

Feb 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: J Weaver | last post by:
Beginner question -> Can someone point me to reference that lists html objects and their associated objects in javascript? For instance, I think that document.someForm.someSelect.options ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.