青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 297,  comments - 15,  trackbacks - 0
http://en.wikipedia.org/wiki/Document_Object_Model

Document Object Model

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Hierarchy of objects in an example HTML DOM - Document Object Model

The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents. Objects under the DOM (also sometimes called "Elements") may be specified and addressed according to the syntax and rules of the programming language used to manipulate them. The rules for programming and interacting with the DOM are specified in the DOM Application Programming Interface (API).

Contents

[hide]

[edit] History

The history of the Document Object Model is intertwined with the history of the "browser wars" of the late 1990s between Netscape Navigator and Microsoft Internet Explorer, likewise that of JavaScript and JScript, the first scripting languages to be widely implemented in the layout engines of web browsers.

[edit] Legacy DOM

JavaScript was released by Netscape Communications in 1996 within Netscape Navigator 2.0. Netscape's competitor, Microsoft, released Internet Explorer 3.0 later the same year with a port of JavaScript called JScript. JavaScript and JScript let web developers create web pages with client-side interactivity. The limited facilities for detecting user-generated events and modifying the HTML document in the first generation of these languages eventually became known as "DOM Level 0" or "Legacy DOM". No independent standard was developed for DOM Level 0, but it was partly described in the specification of HTML4.

Legacy DOM was limited in the kinds of elements that could be accessed. Form, link and image elements could be referenced with a hierarchical name that began with the root document object. A hierarchical name could make use of either the names or the sequential index of the traversed elements. For example, a form input element could be accessed as either "document.formName.inputName" or "document.forms[0].elements[0]".

The Legacy DOM enabled client-side form validation and the popular "rollover" effect.

[edit] Intermediate DOM

In 1997, Netscape and Microsoft released version 4.0 of Netscape Navigator and Internet Explorer, adding support for Dynamic HTML (DHTML), functionality enabling changes to a loaded HTML document. DHTML required extensions to the rudimentary document object that was available in the Legacy DOM implementations. Although the Legacy DOM implementations were largely compatible since JScript was based on JavaScript, the DHTML DOM extensions were developed in parallel by each browser maker and remained incompatible. These versions of the DOM became known as the "Intermediate DOM."

The Intermediate DOMs enabled the manipulation of Cascading Style Sheet (CSS) properties which influence the display of a document. They also provided access to a new feature called "layers" via the "document.layers" property (Netscape Navigator) and the "document.all" property (Internet Explorer). Because of the fundamental incompatibilities in the Intermediate DOMs, cross-browser development required special handling for each supported browser.

Subsequent versions of Netscape Navigator abandoned support for its Intermediate DOM. Internet Explorer continues to support its Intermediate DOM for backwards compatibility.

[edit] Standardization

The World Wide Web Consortium (W3C), founded in 1994 to promote open standards for the World Wide Web, brought Netscape Communications and Microsoft together with other companies to develop a standard for browser scripting languages, called "ECMAScript". The first version of the standard was published in 1997. Subsequent releases of JavaScript and JScript would implement the ECMAScript standard for greater cross-browser compatibility.

After the release of ECMAScript, W3C began work on a standardized DOM. The initial DOM standard, known as "DOM Level 1," was recommended by W3C in late 1998. About the same time, Internet Explorer 5.0 shipped with limited support for DOM Level 1. DOM Level 1 provided a complete model for an entire HTML or XML document, including means to change any portion of the document. Non-conformant browsers such as Internet Explorer 4.x and Netscape 4.x were still widely used as late as 2000.

DOM Level 2 was published in late 2000. It introduced the "getElementById" function as well as an event model and support for XML namespaces and CSS. DOM Level 3, the current release of the DOM specification, published in April 2004, added support for XPath and keyboard event handling, as well as an interface for serializing documents as XML.

By 2005, large parts of W3C DOM were well-supported by common ECMAScript-enabled browsers, including Microsoft Internet Explorer version 6 (2001), Gecko-based browsers (like Mozilla, Firefox and Camino), Konqueror, Opera, and Safari.

[edit] Applications

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.

[edit] Web browsers

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.

[edit] Implementations

Because 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).

[edit] Layout engines

Web browsers rely on layout engines to parse HTML into a DOM. Some layout engines such as Gecko or Trident/MSHTML are associated primarily or exclusively with a particular browser such as Firefox or Internet Explorer. Others, such as WebKit, are shared by a number of browsers, such as Safari and Google Chrome. The different layout engines implement the DOM standards to varying degrees of compliance.

[edit] Libraries

[edit] See also

  • DOM scripting
  • JDOM - a Java-based document object model for XML that integrates with DOM and SAX and uses parsers to build the document.
  • SXML - a model for representing XML and HTML in the form of S-expressions.
  • Ajax - a methodology employing DOM in combination with techniques for retrieving data without reloading a page.
  • TinyXml - efficient platform-independent XML library for C++.

[edit] References

[edit] External links

[edit] Specifications

[edit] Bindings



posted on 2009-04-24 15:06 chatler 閱讀(453) 評論(0)  編輯 收藏 引用 所屬分類: browser

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


<2025年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用鏈接

留言簿(10)

隨筆分類(307)

隨筆檔案(297)

algorithm

Books_Free_Online

C++

database

Linux

Linux shell

linux socket

misce

  • cloudward
  • 感覺這個博客還是不錯,雖然做的東西和我不大相關,覺得看看還是有好處的

network

OSS

  • Google Android
  • Android is a software stack for mobile devices that includes an operating system, middleware and key applications. This early look at the Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
  • os161 file list

overall

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            噜噜噜躁狠狠躁狠狠精品视频| 在线观看欧美亚洲| 亚洲免费综合| 亚洲图片欧洲图片av| 亚洲午夜电影| 欧美在线观看天堂一区二区三区| 亚洲一区二区三区视频播放| 欧美一区二区三区免费视| 久久久久久久久久久成人| 欧美成人免费在线| 国产精品麻豆va在线播放| 极品av少妇一区二区| 亚洲美女在线观看| 久久国产直播| 亚洲另类一区二区| 欧美在线999| 欧美欧美全黄| 国产一区二区三区在线观看免费| 亚洲国产日韩精品| 午夜伦欧美伦电影理论片| 欧美成人亚洲| 亚洲欧美日韩国产成人精品影院| 老色批av在线精品| 国产精品综合不卡av| 亚洲精品亚洲人成人网| 欧美一区在线看| 91久久久在线| 亚洲免费在线精品一区| 欧美成人精品在线观看| 国产区精品在线观看| 日韩系列在线| 久久久青草婷婷精品综合日韩 | 欧美精品xxxxbbbb| 99精品视频免费观看| 性色av香蕉一区二区| 欧美国产精品久久| 国产一区二区三区久久久| 99精品国产热久久91蜜凸| 久久久噜噜噜久久中文字幕色伊伊| 亚洲欧洲精品一区二区| 久久久久国产精品一区二区| 国产噜噜噜噜噜久久久久久久久| 亚洲午夜精品| 日韩视频中午一区| 欧美激情一区二区三区| 91久久在线观看| 欧美a级理论片| 久久久精彩视频| 韩日成人av| 久久久久国产精品厨房| 亚洲午夜精品久久久久久浪潮 | 国内精品视频一区| 香蕉久久国产| 亚洲免费在线观看| 国产伦理精品不卡| 午夜亚洲伦理| 亚洲影视在线播放| 国产精品一区久久久久| 亚洲在线免费观看| 亚洲一区二区三区成人在线视频精品 | 亚洲激情在线视频| 欧美不卡视频| 欧美成人一区二区三区片免费| 亚洲国产精品www| 欧美激情bt| 欧美日韩国产综合网| 一区二区日韩伦理片| 在线综合亚洲欧美在线视频| 国产精品入口麻豆原神| 久久久久综合| 欧美激情第二页| 亚洲欧美激情精品一区二区| 午夜一级久久| 亚洲国产精品热久久| 亚洲精品在线三区| 国产精品爽爽ⅴa在线观看| 欧美在线视频在线播放完整版免费观看| 午夜精品久久久久久久久久久| 激情亚洲一区二区三区四区| 亚洲国产精品国自产拍av秋霞| 欧美午夜精品伦理| 久久狠狠一本精品综合网| 久久久久免费视频| 9l国产精品久久久久麻豆| 亚洲一区二区三区在线看| 黄色综合网站| 一本到12不卡视频在线dvd| 亚洲国产日韩一区二区| 一本一本久久| 国产日韩在线看| 欧美大片18| 国产精品一区二区你懂得| 欧美高清在线一区二区| 国产精品久久久久久久浪潮网站 | 亚洲激情欧美| 国产日韩欧美成人| 91久久黄色| 国产一区二区三区丝袜 | 久久婷婷久久一区二区三区| 一区二区日韩| 久久久久国色av免费看影院| 在线综合+亚洲+欧美中文字幕| 欧美一区三区三区高中清蜜桃 | 欧美天天视频| 美女日韩在线中文字幕| 欧美日韩在线视频一区二区| 久久五月天婷婷| 国产精品久久久久久久久借妻| 欧美成人免费网| 国产一区二区三区电影在线观看| 亚洲人成人99网站| 伊人色综合久久天天| 亚洲性线免费观看视频成熟| 日韩视频在线一区二区| 久久免费视频网站| 久久精品国产久精国产爱| 欧美亚州韩日在线看免费版国语版| 欧美搞黄网站| 一区二区三区中文在线观看| 亚洲欧美综合v| 亚洲欧美亚洲| 国产精品久久久久久久久久ktv| 亚洲精品国产欧美| 最新中文字幕一区二区三区| 老牛嫩草一区二区三区日本| 久久一二三区| 怡红院精品视频| 久久综合色88| 欧美高清在线观看| 亚洲黄一区二区| 美女啪啪无遮挡免费久久网站| 美国成人直播| 亚洲电影第1页| 另类激情亚洲| 欧美国产三区| 日韩天天综合| 欧美日韩在线一区| 国产精品99久久久久久久久| 亚洲尤物精选| 国产亚洲欧美一区| 久久岛国电影| 欧美va天堂va视频va在线| 亚洲国产精品一区二区久 | 狠狠色狠色综合曰曰| 久久精品在线视频| 欧美激情亚洲| 亚洲视频一区二区| 亚洲深夜福利在线| 亚洲午夜精品网| 国产情人节一区| 国产欧美一区二区三区在线看蜜臀| 欧美在线观看一区二区| 国产在线精品自拍| 欧美亚日韩国产aⅴ精品中极品| 久久精品五月婷婷| 亚洲欧美日韩在线| 这里只有精品在线播放| 亚洲国产美女| 欧美国产1区2区| 蜜桃av一区| 美女图片一区二区| 久久久久一本一区二区青青蜜月| 亚洲女人小视频在线观看| 夜夜嗨av一区二区三区网站四季av| 尤物99国产成人精品视频| 国产乱码精品一区二区三区忘忧草 | 亚洲一区二区三区三| 日韩视频一区二区在线观看| 亚洲国产va精品久久久不卡综合| 国产视频观看一区| 国产精品专区第二| 国产精品香蕉在线观看| 国产精品久久久91| 国产精品日本一区二区| 国产精品久久久久久影视| 欧美偷拍另类| 国产精品久久久久天堂| 欧美日韩一区在线观看视频| 欧美理论片在线观看| 欧美日韩国产影院| 欧美性感一类影片在线播放 | 欧美绝品在线观看成人午夜影视| 久久天堂av综合合色| 久久中文字幕一区| 欧美高清不卡| 欧美日韩国产美| 国产精品久久久久一区二区| 国产欧美日本| 在线观看欧美成人| 亚洲精品视频在线| 亚洲手机视频| 欧美在线一二三四区| 久久视频一区| 亚洲国产欧美不卡在线观看| 日韩视频亚洲视频| 欧美尤物巨大精品爽| 欧美gay视频激情| 欧美性事免费在线观看| 激情久久影院| 亚洲少妇诱惑|