What are DOM levels?

前端 未结 6 1285
感情败类
感情败类 2021-01-30 10:54

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?

6条回答
  •  鱼传尺愫
    2021-01-30 11:28

    According to wiki

    Beginning with the publication of DOM Level 4 in 2015, the W3C creates new recommendations based on snapshots of the WHATWG standard.

    • DOM Level 1 provided a complete model for an entire HTML or XML document, including the means to change any portion of the document.
    • 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, published in April 2004, added support for XPath and keyboard event handling, as well as an interface for serializing documents as XML.
    • DOM Level 4 was published in 2015. It is a snapshot of the WHATWG living standard.[7]

提交回复
热议问题