I have been trying to understand the DOM, and although I have a fair idea of what it is, there are certain ideas I just cannot pin down. I will list down what I think the DOM is and my questions will be inline.
The DOM is a fully object-oriented representation of the web page. The W3C DOM standard forms the basis of the DOM implemented in most modern browsers.
So does the DOM talk about how an XML/HTML document is represented as an object model?
The DOM does not specify that documents must be implemented as a tree or a grove, nor does it specify how the relationships among objects be implemented.
In what other ways can the document be represented?
When you do something like this -
document.write('welcome to my home page!');
What are language bindings ?
The language binding is the set of objects native to the language in question that implements each of the interfaces in the DOM specification.
Developers can create language bindings from the DOM to their language simply by following the IDL (Interface Definition Language) in the DOM specification.
So if the DOM parsing engine is implemented in say C++, does that mean that when you create language bindings by following the IDL, you are just creating objects in the specific language, i.e C++ that your DOM parsing engine is built with?