DOM interview questions
DOM - posted on August 29, 2008 at 17:10 pm by Amit Satpute
What is the DOM?
DOM is a platform independent, World Wide Web Consortium (W3C) standard form of
representation of structured documents as an object-oriented model. It is an
application programming interface so as to access HTML and XML documents.
What is the HTML DOM?
The HTML DOM API specializes and adds the functionality to relate to HTML
documents and elements. It addresses the issues of backwards compatibility with
the Level 0 of DOM and provides mechanisms for common and frequent operations
on HTML documents.
What is the XML DOM?
Microsoft’s MSXML DOM provides an API for working with XML data. It also
provides a programmatic representation of XML documents, fragments, nodes, or
node-sets. It is a W3C standard form of XML representation. XML DOM objects can
be used in XML applications written in C/C++, VB, VBScript and JScript.
What is the XMLHttpRequest Object?
The XMLHttpRequest object is used to connect to the server through http. Scripts
use it to do so programmatically.
The EventTarget interface needs to be implemented if an object implements the
XMLHttpRequest interface. Also, an XMLHttpRequest() constructor needs to be
provided by objects that implement the Window interface.
|