什么是DOM级别? [英] What are DOM levels?
问题描述
我听说过以前的帖子中提到的DOM级别2和DOM级别3 。这些抽象结构是否像ISO OSI模型那样具有第1-7层,但只是松散地遵循? 解析方案
另外,还有供应商可以选择实施的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屋!