/
697.txt
53 lines (37 loc) · 2.08 KB
/
697.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[11] [DFN[[CODE(DOMi)@en[[[XMLDocument]]]]]] [[インターフェイス]]は、
[[XML文書]]を表す[[インターフェイス]]の1つです。
* 仕様書
[REFS[
- [3] [CITE@en-US[DOM Standard]] ([TIME[2012-11-23 14:12:13 +09:00]] 版) <http://dom.spec.whatwg.org/#xmldocument>
- [4] [CITE@en-US-x-hixie[HTML Standard]] ([TIME[2012-11-23 07:46:55 +09:00]] 版) <http://www.whatwg.org/specs/web-apps/current-work/#loading-xml-documents>
]REFS]
* メンバー
[8] [CODE(DOMi)@en[[[Document]]]] を[[継承]]しています。更に、次のメンバーがあります。
[FIG(list short)[
- [CODE(DOMm)@en[[[load]]]]
]FIG]
* 文脈
[9] [CODE(DOMi)@en[[[XMLDocument]]]] が作られるのは次の場合です。
[FIG(short list)[
- [CODE(DOMm)@en[[[createDocument]]]]
- [CODE(DOMm)@en[[[parseFromString]]]]
]FIG]
;; [10] [[XML文書]]だからといって本[[インターフェイス]]を[[実装]]しているとは限りません。
* 歴史
[REFS[
- [2] [CITE@en[Web Applications 1.0 r6719 Move XMLDocumentLoader.load to XMLDocument.]]
( ([TIME[2011-10-21 08:03:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6718&to=6719>
]REFS]
* 実装
[5] [[Chrome]] はすべての [CODE(DOMi)@en[[[Document]]]] が [CODE(JS)@en[[[instanceof]] [CODE(DOMi)@en[[[XMLDocument]]]]]]
であるようです。 [TIME[2012-12-29T04:23:48.300Z]]
[7] >>5 今は [CODE(DOMm)@en[[[createDocument]]]] と [CODE(DOMm)@en[[[parseFromString]]]]
や[[閲覧文脈]]内の [[XML文書]]が [CODE(DOMi)@en[[[XMLDocument]]]] になり、
[[閲覧文脈]]内の[[HTML文書]]はならないようです。
(>>5 もそういう意味だったかも?) [TIME[2015-07-07T12:38:40.700Z]]
* メモ
[1] [CITE[HTMLDocument と XMLDocument を見分ける方法 - uupaaの開発日記]] ([TIME[2008-12-27 15:12:58 +09:00]] 版) <http://d.hatena.ne.jp/uupaa/20081010/1223630689>
[6] [CITE[XMLDocument moved to DOM4 · 03bbbee · whatwg/domparsing]]
( ([TIME[2013-01-02 09:13:58 +09:00]] 版))
<https://github.com/whatwg/domparsing/commit/03bbbee4801f0e7c7b752ff8d36dbab35be71c39>