最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What happened to DOM level 1? - Stack Overflow

programmeradmin4浏览0评论

So, what happened to the DOM level 1?

For example, there are DOM level 0 events like this

window.onload = func;
element.onclick = func;

and there is DOM level 2 (and now even level 3) events

element.addEventListener("click", func, false);

However, there is no mention anywhere about DOM level 1 events? Was it like with Lesuire suit Larry 4 that got lost before it was ever released or was the nr 1 just skipped or didn't the level 1 include anything related to the events?

So, what happened to the DOM level 1?

For example, there are DOM level 0 events like this

window.onload = func;
element.onclick = func;

and there is DOM level 2 (and now even level 3) events

element.addEventListener("click", func, false);

However, there is no mention anywhere about DOM level 1 events? Was it like with Lesuire suit Larry 4 that got lost before it was ever released or was the nr 1 just skipped or didn't the level 1 include anything related to the events?

Share Improve this question edited Jul 20, 2022 at 7:53 Brian Tompsett - 汤莱恩 5,89372 gold badges61 silver badges133 bronze badges asked Jul 13, 2010 at 17:38 AndrisAndris 27.9k4 gold badges36 silver badges38 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

DOM Level 0 isn't an actual spec, DOM Level 0 is just what we call DOM/JS features before the DOM was released. The W3C released DOM Level 1 in 1998. Prior to that there was no DOM spec.

There was no events model in DOM Level 1, it was released in DOM Level 2.

Document Object Model (HTML) Level 1

The Level 1 document does not include mechanisms to access and modify style specified through CSS-1. Furthermore, it will not define an event model for HTML documents. This functionality will be specified in a future Level of this specification. The events that are supported in Level 0 are given in the DOM Level 1 HTML ECMAScript binding for pleteness; the method of defining and handling events is expected to change.

发布评论

评论列表(0)

  1. 暂无评论