Re: Different DOM level
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
byang wrote: > W3C propose three different DOM levels, I am wondering what are the > relationship between these different levels. Could anybody tell me > that whether the old one is out of date when the newer is published? Some DOM modules have been improved and extended with the different levels, for instance there is W3C DOM Level 2 Core http://www.w3.org/TR/DOM-Level-2-Core/ and there is also W3C DOM Level 3 Core http://www.w3.org/TR/DOM-Level-3-Core/ where the DOM Level 3 Core specification extends the DOM Level 2 Core specification. Other modules exist only at a certain level, for instance Views, Style, and Traversal and Range have only been published in level 2, Load and Save, and Validation only in level 3. The older levels are still recommendations, whether they apply to your situation depends on your implementation, most browsers like Mozilla and Opera have long moved to support DOM Level 2 Core and HTML and the W3C DOM Level 2 modules like Events, or Traversal and Range. And Mozilla and Opera have even implemented some properties of DOM Level 3 Core. IE however has not made that move, both its HTML and its XML DOM are close to W3C DOM Level 1, plus lots of proprietary extensions (e.g. innerHTML, outerHTML with the HTML DOM, XPath with selectNodes/selectSingleNod with the XML DOM). -- Martin Honnen http://JavaScript.FAQTs.com/