mike wrote:
What is the difference between DOM Level 1 and DOM Level 2.
DOM Level 1 was published in 1998 as a single W3C recommendation,
consisting of two modules, the Core and the HTML module.
DOM Level 2 consists of several W3C recommendation, published between
2000 and 2003, and has several modules, some of them being Core, HTML,
these two improving and refining what was done in Level 1, and additonal
modules Events, Traversal-Range, Views, Style.
The main difference between DOM Level 1 Core and DOM Level 2 Core is
that Level 2 Core is suitable for scripting XML with namespaces by
having namespace aware methods and properties which are not available in
Level 1 Core.
The main difference between DOM Level 1 HTML and DOM Level 2 HTML is
that Level 2 HTML is closer to the features in existing user agents.
Also at least in theory DOM Level 2 HTML applies to both HTML 4.01 as
well as XHTML 1.0 documents while DOM Level 1 HTML applies only to HTML
4.01 documents.
By now (since the beginning of 2004) there are also W3C DOM Level 3
recommendations for Core, Load and Save, and Validation where Level 3
Core again improves and refines Level 2 Core while the other two modules
add new features.