HTMLHtmlElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTMLHtmlElement
接口是给定 HTML 文档的根节点。它继承了 HTMLElement
对象的属性和方法。
你可以通过读取 document.documentElement
属性的值来获取文档的 HTMLHtmlElement
对象。
must be a string
属性
继承 HTMLElement
的属性。
HTMLHtmlElement.version
已弃用-
这是一个用于表示管理此文档的**HTML 文档类型定义(DTD)**版本的
DOMString
。但此属性不应再使用,因为它不符合要求。请仅忽略它。
方法
没有明确的方法;可从父项继承——HTMLElement
。
规范
Specification |
---|
HTML # htmlhtmlelement |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLHtmlElement | ||||||||||||
version |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
还可以看看
- 实现此接口的 HTML 元素 :
<html>
。