http://www.w3schools.com/dom/dom_intro.asp
The DOM is a W3C (World Wide Web Consortium) standard.
The DOM defines a standard for accessing documents like XML and HTML:
"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
The DOM is separated into 3 different parts / levels:
- Core DOM - standard model for any structured document
- XML DOM - standard model for XML documents
- HTML DOM - standard model for HTML documents
The DOM defines the objects and properties of all document elements, and the methods (interface) to access them.
我的理解:DOM是将文档(HTML,XML等)内容解析成对象的标准。在browser中由layout engine实现HTML DOM,将HTML elements解析成脚本语言(例如javascript)可访问的对象,脚本可以对DOM对象进行修改从而产生动态网页效果(例如igoogle中操作各种gadgets)。
本文介绍了W3C的DOM标准,它是用于访问和更新HTML和XML文档的平台及语言中立接口。DOM分为三个部分:核心DOM、XML DOM和HTML DOM,并详细解释了浏览器如何通过DOM实现动态网页效果。

583

被折叠的 条评论
为什么被折叠?



