Document Object Model
Encyclopedia
|
| Tutorials | Encyclopedia | Dictionary | Directory |
|
Document Object ModelThe Document Object Model (DOM) is a platform- and language-independent standard object model for representing HTML or XML and related formats. A web browser is not obliged to use DOM in order to render an HTML document. However, the DOM is required by JavaScript scripts that wish to inspect or modify a web page dynamically. In other words, the Document Object Model is the way JavaScript sees its containing HTML page and browser state. Because the DOM supports navigation in any direction (e.g., parent and previous sibling) and allows for arbitrary modifications, an implementation must at least buffer the document that has been read so far (or some parsed form of it). Hence the DOM is likely to be best suited for applications where the document must be accessed repeatedly or out of sequence order. If the application is strictly sequential and one-pass, the SAX model is likely to be faster and use less memory. In addition, non-extractive XML parsing models, such as VTD-XML, provide a new memory-efficient option.
HistoryW3C began development of the DOM in the mid-1990s. Although the W3C never produced a specification for DOM 0, it was nonetheless a partially documented model and was included in the specification of HTML 4. By October 1998, the first specification of DOM (DOM 1) was released. DOM 2 was issued in November 2000, with specifics on the style sheet object model and style information manipulation. DOM 3 was released in April 2004 and is the current release of the DOM specification. ImplementationsWeb browsers
Firefox's DOM Inspector inspecting Wikipedia's main page W3C DOM Level 1 has been a recommendation since 1 October 1998. The standardization effort did not bring forth an immediate change, because non-conformant browsers such as Internet Explorer 4.x and Netscape 4.x were still widely used in 2000. By 2005, large parts of W3C DOM were well-supported by common JavaScript-enabled Web browsers, including Microsoft Internet Explorer (version 5 (1999) and version 6 (2001)), Gecko-based browsers (like Mozilla, Firefox and Camino), Konqueror, Opera, and Safari. Web developers are starting to rely mostly or solely on W3C DOM, since it allows browser compatibility with a large audience . The article Comparison of layout engines (DOM) shows which methods and attributes may be used safely given certain browser requirements. Other
References
See also
External links
Specifications
af:Document Object Model ca:Model d'Objectes del Document cs:Document Object Model de:Document Object Model es:Document Object Model fa:??? ??????? ??? fr:Document Object Model ko:?? ?? ?? id:Document Object Model it:Document Object Model he:Document Object Model hu:Document Object Model mk:DOM nl:Document Object Model ja:Document Object Model no:Document Object Model pl:Obiektowy model dokumentu pt:Modelo de Objeto de Documentos ru:DOM fi:Document Object Model sv:Document Object Model th:Document Object Model vi:DOM tr:Document Object Model tk:DOM uk:??'????? ?????? ????????? zh:?????? Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article
|
|
top
©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement