FAQ Topic - What is the document object model?

F

FAQ server

-----------------------------------------------------------------------
FAQ Topic - What is the document object model?
-----------------------------------------------------------------------

This is the collection of objects provided by each browser.
Basically, any object in the window hierarchy is part of the
DOM. This means that document.writeln(), for example, is not a
javascript method but is, in fact, a method provided by the DOM.
The DOM has been standardised by the World Wide Web Consortium
(W3C); however, like
all W3C standards, browser support is not yet complete. Most
cross-browser coding problems come from slightly different
implementations of the DOM in the differentbrowsers.
W3 DOM FAQ

http://www.w3.org/DOM/faq.html

The W3C has worked on three versions of the DOM to date. The
third version has not yet achieved the status of a
recommendation

http://www.w3.org/DOM/



===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://www.jibbering.com/faq/.
The FAQ workers are a group of volunteers.
 
D

Dr J R Stockton

In comp.lang.javascript message
FAQ Topic - What is the document object model?
^ javascript
This is the collection of objects provided by each browser.

That is the browser DOM in its various implementations. Is there not
also a distinct DOM for Windows WSH javascript, and for server-side
javascript?
Basically, any object in the window hierarchy is part of the
DOM. This means that document.writeln(), for example, is not a
javascript method but is, in fact, a method provided by the DOM.
The DOM has been standardised by the World Wide Web Consortium ^ javascript
(W3C); however, like XXXX as for
all W3C standards, browser support is not yet complete. Most
cross-browser coding problems come from slightly different
implementations of the DOM in the differentbrowsers.
^
 
T

Thomas 'PointedEars' Lahn

Dr said:
In comp.lang.javascript message

^ javascript

Don't. A Document Object Model is _not_ tied to or said to be part of a
particular programming language, especially not to an ECMAScript
implementation (although that revelation came up [too] late at Netscape).

Vendors and specifications have provided the respective DOMs with language
bindings, including ECMAScript language binding (standardized for the W3C
DOM). The actual interfaces, however, are language-independent.
That is the browser DOM in its various implementations. Is there not
also a distinct DOM for Windows WSH javascript, and for server-side
javascript?

As for the WSH, I would call that an AOM, Application Object Model, a kind
of API for accessing another API; not a DOM (where is the corresponding
_document_?).

Server-Side JavaScript certainly has an object model, but I don't know of
any DOM there (AFAIK there is only write()).

Server-Side JScript on top of ASP relies on the exposed interfaces (the
object model, but still not a DOM, if you will) of Microsoft Internet
Information Services (IIS) or a compatible framework.


PointedEars
 
D

Dr J R Stockton

In comp.lang.javascript message <[email protected]>,
Dr said:
In comp.lang.javascript message

^ javascript

Don't. A Document Object Model is _not_ tied to or said to be part of a
particular programming language, especially not to an ECMAScript
implementation (although that revelation came up [too] late at Netscape).

Don't be more of a silly Kraut than you have to be.

This is a Javascript newsgroup and we are discussing a Javascript FAQ;
the above, as modified, is therefore a reasonable *question*. The range
of applicability of the relevant DOM can be part of the *answer*.

As a matter of English usage (a topic which you do not know as well as
you think you do), the sort of answer you imply would need a question
such as "What is a document object model?". The form "What is the
document object model?" implies that there is exactly one DOM
*anywhere*; that there are No other DOMs in other fields. We cannot
validly assert that.

The above question should be given a reasonable answer; one which, while
factually accurate, is aimed at the typical FAQ reader. You are
manifestly not competent to write in the appropriate manner.

The amount of detail presently in this part of the FAQ is about right,
but it would be nice to have in addition a link evidently to a somewhat
longer, but introductory, description.
 
T

Thomas 'PointedEars' Lahn

Dr said:
In comp.lang.javascript message <[email protected]>,
Dr said:
In comp.lang.javascript message
<[email protected]>, Sat, 2 Dec 2006 00:00:01,

FAQ Topic - What is the document object model?
^ javascript

Don't. A Document Object Model is _not_ tied to or said to be part of a
particular programming language, especially not to an ECMAScript
implementation (although that revelation came up [too] late at Netscape).

Don't be more of a silly Kraut than you have to be.

This is a Javascript newsgroup and we are discussing a Javascript FAQ;
the above, as modified, is therefore a reasonable *question*. The range
of applicability of the relevant DOM can be part of the *answer*.

If you obnoxious racist fool would have read and understood what I have
written, you would have noted that I merely objected to the term
"javascript document object model" you suggested; which is simply wrong
as any known DOM is designed language-independent. FOAD.


PointedEars
 
D

Dr J R Stockton

In comp.lang.javascript message <[email protected]>,
Sun, 10 Dec 2006 01:21:08, Thomas 'PointedEars' Lahn
Dr said:
In comp.lang.javascript message <[email protected]>,
Dr J R Stockton wrote:

In comp.lang.javascript message
<[email protected]>, Sat, 2 Dec 2006 00:00:01,

FAQ Topic - What is the document object model?
^ javascript

Don't. A Document Object Model is _not_ tied to or said to be part of a
particular programming language, especially not to an ECMAScript
implementation (although that revelation came up [too] late at Netscape).

Don't be more of a silly Kraut than you have to be.

This is a Javascript newsgroup and we are discussing a Javascript FAQ;
the above, as modified, is therefore a reasonable *question*. The range
of applicability of the relevant DOM can be part of the *answer*.

If you obnoxious racist fool would have read and understood what I have
written, you would have noted that I merely objected to the term
"javascript document object model" you suggested; which is simply wrong
as any known DOM is designed language-independent. FOAD.

Thank you for that public confirmation that you have retained your
previous nature; and that you are still unable to understand English.

The amended line is just the sort of thing that the sort of person that
the FAQ is intended for would ask; and it is right that it should be so.

Your attribution is still inadequate, and your signature is still
defective. Read FYI28 until you understand it.
 
R

Randy Webb

Dr J R Stockton said the following on 12/9/2006 6:44 PM:
In comp.lang.javascript message <[email protected]>,
Dr said:
In comp.lang.javascript message
<[email protected]>, Sat, 2 Dec 2006 00:00:01,

FAQ Topic - What is the document object model?
^ javascript

Don't. A Document Object Model is _not_ tied to or said to be part of a
particular programming language, especially not to an ECMAScript
implementation (although that revelation came up [too] late at Netscape).

Don't be more of a silly Kraut than you have to be.

This is a Javascript newsgroup and we are discussing a Javascript FAQ;
the above, as modified, is therefore a reasonable *question*. The range
of applicability of the relevant DOM can be part of the *answer*.

As a matter of English usage (a topic which you do not know as well as
you think you do), the sort of answer you imply would need a question
such as "What is a document object model?". The form "What is the
document object model?" implies that there is exactly one DOM
*anywhere*; that there are No other DOMs in other fields.

Actually, it doesn't. But I am not going to argue that issue with you.
But, your requested correction was for it to read "What is the
javascript document object model?" and that has two problems.

If your argument against the use of "the" is valid, then your proposed
rewording suffers that same problem. But that is a trivial over analysis
of the use of the word "the". The bigger issue is simple. Javascript
doesn't *have* a "Document Object Model". The DOM belongs to the browser
- independent of the script engine. The DOM exists without scripting,
the script engine just has access to read/modify it. So no, I am not
going to reword that question.
 
R

Randy Webb

Peter Michaux said the following on 12/13/2006 1:15 AM:
There is no need for that. Rather inappropriate and not funny at all.

Peter, meet Thomas.....

At least we got 6 months of peace....
 
J

John W. Kennedy

Peter said:
There is no need for that. Rather inappropriate and not funny at all.

He's a jingo who's been grumpy ever since the Public Order Act of 1937
stopped his games of dress-up. Just filter him out; there's no point in
expecting wisdom from these creatures.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,040
Members
48,769
Latest member
Clifft

Latest Threads

Top