473,569 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1517
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.mozil la.org/en/docs/The_DOM_and_Jav aScript>

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/nsIDOMWindowInt ernal.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/nsIDOMWindowInt ernal.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
1389
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 provides access to the options array in a SELECT object. This seems straight-forward enough, but I can't find a reference that maps things like this...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7678
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.