什么是DOM级别? [英] What are DOM levels?

查看:132
本文介绍了什么是DOM级别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说过以前的帖子中提到的DOM级别2和DOM级别3 。这些抽象结构是否像ISO OSI模型那样具有第1-7层,但只是松散地遵循? 解析方案

DOM层次是定义文档对象模型应该如何工作的规范版本,类似于HTML4,HTML5和CSS2.1规范。

最近的规范是DOM Level 3,发布于2004年4月。

另外,还有供应商可以选择实施的DOM规范片段,例如Core,HTML和XML作为事件模型。根据正在构建的内容(DOM解析器,Web浏览器布局引擎或JavaScript引擎),供应商可能会选择实施部分或全部规范。大多数现代Web浏览器都实现了所有Level 3规范。


I've heard DOM level 2 and DOM level 3 mentioned in previous posts. Are these abstract constructs like the ISO OSI model which has layers 1-7 but are only loosely followed?

解决方案

DOM Levels are the versions of the specification for defining how the Document Object Model should work, similarly to how we have HTML4, HTML5, and CSS2.1 specifications.

The most recent spec is DOM Level 3, published in April 2004.

Additionally, there are pieces of the DOM spec that vendors can choose to implement, such as Core, HTML, and XML, as well as the event model. Depending on what is being built (a DOM parser, web browser layout engine, or javascript engine), the vendor may choose to implement some or all of the spec. Most modern web browsers implement all of the Level 3 spec.

这篇关于什么是DOM级别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆