From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/htmldocument/index.html | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 files/zh-cn/web/api/htmldocument/index.html (limited to 'files/zh-cn/web/api/htmldocument') diff --git a/files/zh-cn/web/api/htmldocument/index.html b/files/zh-cn/web/api/htmldocument/index.html new file mode 100644 index 0000000000..6c3e5f952a --- /dev/null +++ b/files/zh-cn/web/api/htmldocument/index.html @@ -0,0 +1,38 @@ +--- +title: HTMLDocument +slug: Web/API/HTMLDocument +translation_of: Web/API/HTMLDocument +--- +

{{ APIRef("HTML DOM") }}

+ +

HTMLDocument 是 DOM 的一个抽象接口,它提供了 XML 文档里没有出现的特殊属性和方法。

+ +

它的属性和方法包含在 {{domxref("Document")}} 接口页面中,并且每个属性和方法都分成小节进行了介绍。

+ +

HTMLDocument 对象继承了 Document 接口和 HTMLDocument 接口。因此它有比 Document 更多的属性。并且与 XMLDocument 不同的是,HTMLDocument 是具有外观的,并且要管理它后代的 HTMLElement。

+ +

规范

+ + + + + + + + + + + + + + + + + + + +
{{SpecName('DOM1','level-one-html.html#ID-26809268','HTMLDocument')}}{{Spec2('DOM1')}}Initial definition for the interface
{{SpecName('DOM2 HTML','html.html#ID-26809268','HTMLDocument')}}{{Spec2('DOM2 HTML')}}Supersede DOM 1
{{SpecName('HTML WHATWG','dom.html#the-document-object','Document')}}{{Spec2('HTML WHATWG')}}Turn the HTMLDocument interface into a {{domxref("Document")}} extension.
+ + -- cgit v1.2.3-54-g00ecf