[18] かつては [CODE(DOMi)@en[Document]] の特殊形が
[DFN[[CODE(DOMi)@en[HTMLDocument]]]] とされ、
[[HTML文書]]はこの[[インターフェイス]]を[[実装]]することになっていました。

[19] 現在は両者が統合され、[[インターフェイス]]としての
[CODE(DOMi)@en[HTMLDocument]] は[[廃止]]されました。
互換性のため [CODE(JS)@en[[[window]].[[HTMLDocument]]]] は 
[CODE(JS)@en[[[window]].[[Document]]]] と同じ値を持つことになっています。

* 仕様書

[REFS[
- [6] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-03-31 07:16:44 +09:00]] 版) <https://html.spec.whatwg.org/#htmldocument>
]REFS]

* 取得器

[7] [CODE(DOMi)@en[Window]] [[オブジェクト]]の
[DFN[[CODE(DOMi)@en[HTMLDocument]]]] [[プロパティー]]の値は、
[CODE(DOMi)@en[Document]] [[インターフェイスオブジェクト]]でなければ[MUST[なりません]]
[SRC[>>6]]。

[17] この[[プロパティー]]は、 [[writable]], [[configurable]], 非 [[enumerable]]
でなければ[MUST[なりません]] [SRC[>>6]]。

* 歴史

[1] [CODE(DOMi)@en[[[Document]]]]
,[CODE(DOMa)@en[[[alinkColor]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[anchors]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[applets]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.1]])
,[CODE(DOMa)@en[[[bgColor]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[body]]]]	,[CODE(DOMi)@en[[[HTMLDocument2]]]] ([[Trident]])
,[CODE(DOMm)@en[[[close]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[designMode]]]]	,[CODE(DOMi)@en[[[HTMLDocument2]]]] ([[Trident]])
,[CODE(DOMa)@en[[[embeds]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.1]])
,[CODE(DOMa)@en[[[fgColor]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[forms]]]]	,"[CODE(DOMa)@en[[[document]]]] ([[WinIE 3]], [[JavaScript 1.1]])"
,[CODE(DOMa)@en[[[frames]]]]	,[CODE(DOMi)@en[[[HTMLDocument2]]]] ([[Trident]])
,[CODE(DOMa)@en[[[images]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[layers]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.2]])
,[CODE(DOMa)@en[[[linkColor]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[links]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMm)@en[[[open]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[Script]]]]	,[CODE(DOMi)@en[[[HTMLDocument]]]] ([[Trident]])
,[CODE(DOMa)@en[[[scripts]]]]	,[CODE(DOMi)@en[[[HTMLDocument2]]]] ([[Trident]])
,[CODE(DOMa)@en[[[title]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[vlinkColor]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[write]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[CODE(DOMa)@en[[[writeln]]]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.0]])
,[VAR[フォーム名]]	,[CODE(DOMa)@en[[[document]]]] ([[JavaScript 1.1]])

[8]
[CITE[d:id:quaa]] ([CODE[2007-08-10 23:56:42 +09:00]] 版) <http://d.hatena.ne.jp/quaa/20070807#p1>
([[名無しさん]])

[9]
[CITE@en['''['''[Get''']'''] method on HTMLDocument (detailed review of the DOM)]] ([[Simon Pieters]] 著, [CODE[2007-10-06 01:55:00 +09:00]] 版) <http://lists.w3.org/Archives/Public/public-html/2007Oct/0057.html>
([[名無しさん]])


[10]
[CITE@en[Re: '''['''[Get''']'''] method on HTMLDocument (detailed review of the DOM)]] ([[Maciej Stachowiak]] 著, [TIME[2007-10-06 02:39:11 +09:00]] 版) <http://lists.w3.org/Archives/Public/public-html/2007Oct/0059.html>

[3] [CITE['''['''whatwg''']''' XMLHttpRequest and HTML5]]
([TIME[2010-08-31 09:01:19 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-August/028285.html>

[2] [CITE@ja[HTMLDocument の動的な作成: Days on the Moon]]
([TIME[2009-10-29 23:09:35 +09:00]] 版)
<http://nanto.asablo.jp/blog/2009/10/29/4660197>

[20] [CODE(DOMi)@en[HTMLDocument]], [CODE(DOMi)@en[SVGDocument]],
[CODE(DOMi)@en[MathMLDocument]] といったように[[文書型]]ごとに[[インターフェイス]]を用意する従来方式だと、
複数の[[語彙]]の混在する[[文書]]をどう扱うべきなのかが明らかではありません。
そこで [[Web Applications 1.0]] はこうした区別を廃し、
[CODE(DOMi)@en[Document]] にすべて統合する方針としました。

[11] [CITE[''''''[''''''whatwg'''''']'''''' relationship between Document and HTMLDocument]]
( ([TIME[2011-08-12 08:30:44 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-August/032878.html>

[12] [CITE[''''''[''''''whatwg'''''']'''''' readystatechange for SCRIPT]]
( ([TIME[2011-09-10 10:39:57 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-September/033158.html>

[13] [CITE@en[Web Applications 1.0 r6718     Make HTMLDocument === Document.]]
( ([TIME[2011-10-21 08:01:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6717&to=6718>

[14] [CITE[''''''[''''''whatwg'''''']'''''' Why are we merging Document and HTMLDocument again?]]
( ([TIME[2013-03-06 01:45:16 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-March/039059.html>

[15] [CITE[''''''[''''''whatwg'''''']'''''' Why are we merging Document and HTMLDocument again?]]
( ([TIME[2013-07-13 07:02:52 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-July/040027.html>

[16] [CITE[''''''[''''''whatwg'''''']'''''' Why are we merging Document and HTMLDocument again?]]
( ([TIME[2013-10-10 07:13:21 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-October/040998.html>

[4] [CITE[Issue 496376 - chromium - Move attributes and methods from HTMLDocument to Document - An open-source project to help move the web forward. - Google Project Hosting]]
([TIME[2015-06-30 11:30:32 +09:00]] 版)
<https://code.google.com/p/chromium/issues/detail?id=496376>

[5] [CITE@en[Don't implement the old SVGDocument members if we implement HTML. · w3c/svgwg@6ffdc29]]
([TIME[2015-12-07 15:31:55 +09:00]] 版)
<https://github.com/w3c/svgwg/commit/6ffdc298eb00671140d1d737b7c21afab2af9ba1>

[21] [CITE@en[Un-merge Document and HTMLDocument · Issue #221 · whatwg/dom]]
([TIME[2016-04-16 23:51:46 +09:00]] 版)
<https://github.com/whatwg/dom/issues/221>

[22] [CITE@en[22960 – Document, XMLDocument, HTMLDocument, oh my]]
([TIME[2016-04-16 23:53:37 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=22960>

[23] [CITE@en[Issue 362955 - chromium - Some HTML document properties are missing in XHTML documents - Monorail]]
([TIME[2016-04-16 23:54:16 +09:00]] 版)
<https://bugs.chromium.org/p/chromium/issues/detail?id=362955>

[24] [CITE@en[''''''[''''''blink'''''']'''''' Revision 165515]]
([TIME[2016-04-16 23:54:37 +09:00]] 版)
<https://src.chromium.org/viewvc/blink?view=revision&revision=165515>