Document
オブジェクト (DOM)#✎[2] Document
界面は、 HTML 又は XML
の文書自体を表します。
Document
は、
文書中の全ての節の大元の根です。新しい節を作るには、
Document
の method を使うことが出来ます。
[3] DOM0 の JavaScript 束縛 (HTML の script
要素の中などで使う場合。) では、物体
window.document
が当該窓で表示中の文書を表します。
この document
物体は DOM の Document
界面の実現値です。
DOM の節の ownerDocument
は、その節が所属する文書 (Document
)
を返します。
Document
物体を作る方法は、 DOM 1 の範囲ではありません。 DOM 2 (で、 HTML のみの実装でない) なら、 DOMImplementation.createDocument
で作成できます。Document
物体を作ったり取得したりする方法があるかもしれません。例えば、 DOM0 では、 window
.document
などが使えます。Document
物体で Document
界面のみならず DocumentView
界面も実装されていることが期待されます。[9] 次の状態を持ちます。
XMLDocument
XMLDocument
インターフェイスを実装しているかどうか。iframe
srcdoc
文書srcdoc
属性から作られたかどうか。:target
の要素です。Referer:
ヘッダーで使った値です。
document.referrer
が返す値となります。getSVGDocument
においては、
navigate において sniffed type が image/svg+xml
だったため作られた Document
かどうかで、
動作が変わります。Window
Document
は、 Window
への強い参照を持ちます >>48。document.write
で使われます。window.print
を構文解析器の終了後まで遅延させるためのフラグです。History
オブジェクトから参照される。History
document.open
で参照されます。pageshow
と pagehide
の整合性を保つために使います >>47。初期値は偽 >>47。document.open
を抑制させるフラグです。document.write
を抑制させるフラグです。document.open
を抑制させるフラグです。Document
群の逆方向の関係のリストです。
(文書を捨てる時に使います。)
currentScript
head
要素body
要素designMode
Location
Window
へ)document.domain
document.open
により文書が開かれたことを表します。document.open
で作られた文書のソースです。[33] Document
の中には、それを継承するインターフェイスである
XMLDocument
を実装するものもあります。
[18] Results for document (an HTML document object) ( 版) https://suika.suikawiki.org/gate/test-results/list/enum-document/all もご覧ください。
[4] Node
,
EventTarget
,
DocumentView
,
DocumentWindow
,
DocumentCSS
,
DocumentTraversal
,
HTMLDocument
,
SVGDocument
,
MathMLDocument
CreateEventObject | HTMLDocument4 (Trident) |
createExpression | Gecko |
createNodeIterator | DOM2 |
createNSResolver | DOM3 |
createRange | DOM2 |
createRenderStyle | HTMLDocument4 (Trident) |
createStyleSheet | HTMLDocument2 (Trident) |
createTouch
createTouchList
defaultCharset | HTMLDocument2 (Trident) |
designMode
exitPointerLock
hidden
removeBinding
onpointerlockerror
onpointerlockchange
visibilityState
mozVisibilityState
msisibilityState
webkitVisibilityState
width | document (JavaScript 1.2) |
Related:
HTMLDocument
,
SVGDocument
,
DocumentTraversal
getElementById
は DOM 1 では HTMLDocument
界面にありましたが、
DOM 2 で移動してきました。[12]
DOM Client Object Cross-Reference:document - MDC (2006-01-30 05:13:37 +09:00
版) http://developer.mozilla.org/en/docs/DOM_Client_Object_Cross-Reference:document
(名無しさん)
Document
物体が実装し得る界面#✎[9] Document
物体が実装しているかもしれない界面には、
次のようなものがあります。
Document
DocumentView
DocumentEvent
DocumentStyle
DocumentCSS
DocumentTouch
など
[46] 文書の廃棄の処理やそれを試みる処理は色々あります。
Window
インターフェイス document
属性#✎[42] Window
インターフェイスの
document
IDL属性の取得器は、
次のようにしなければなりません >>49。
[55] このIDL属性は、 Unforgeable
です >>49。
[54] 文書環境の JavaScript ソースコードで単に document
と書いて文書にアクセスできるのは、本 IDL属性が呼び出されるからです。
[66] Window
オブジェクトは、
関連付けられた Document
を持ちます
>>49。
[43] window.document
の値は、普通は作成時に作られてから変化しません。
例外的に、初期about:blank
文書と共に作られた
Window
オブジェクトの場合には、
文書オブジェクトの初期化の際に変更されることがあります。
- (229) 文書 (document)
- 1単位として処理される情報の集まりを記述したもの。
- Document
- A well-formed XML document, as defined in [XML].
DocumentView
#✎[50] DOM View の DocumentView
界面は、 Document
物体に実装されて、
文書物体から view 物体への access となるものです。
[51] defaultView
IDL属性のみがありました。
[52] この界面が実装されているかは、 hasFeature
で View
/2.0
で確認出来ます。
[72] DOM AbstractView.
属性の値は、その view の対象である文書
(document
DocumentView
) です。
この属性は読取専用です。
[73] この属性の初出は DOM 2 View です。
hasFeature
では
View
/2.0
で実装の有無を確認出来ます。
[76] 一行で IE の JavaScript を高速化する方法 - IT戦記 ( 版) http://d.hatena.ne.jp/amachang/20071010/1192012056
[77] (X)HTML5 Tracking ( 版) http://html5.org/tools/web-apps-tracker?from=3713&to=3714
[78] Web Applications 1.0 r6115 Change how document[name] works to be compatible with both IE (which typically are targetted with <object>) and other UAs (which typically are targetted with <embed>). ( ( 版)) http://html5.org/tools/web-apps-tracker?from=6114&to=6115
[79] Web Applications 1.0 r6771 A first pass (for this quarter, anyway) at cleaning up some terminology around the word 'document'. ( ( 版)) http://html5.org/tools/web-apps-tracker?from=6770&to=6771
[80] Web Applications 1.0 r7845 Match reality better. (Turns out parts of the spec already assumed this was defined this way anyway.) ( ( 版)) http://html5.org/tools/web-apps-tracker?from=7844&to=7845
[81] Web Applications 1.0 r8097 Add more cross references to the new 'concept-window-document' thing, and clean up <frameset>'s event definitions (I always forget to update that when I'm updating <body>'s...). ( ( 版)) http://html5.org/tools/web-apps-tracker?from=8096&to=8097
[14] XPath 1.0データ・モデルでは、 XML文書に対応する木構造のうちの最上位にある節点が根節点です。
Document
節点)、
XML情報集合では「文書情報項目」、
XPath 2.0 や XSLT 2.0 の XDM では「文書節点」と呼んでいます。
XDM では「根節点」は木の根のことをいいます。[6] XPath 1.0データ・モデルでは、根節点の子供となるのは丁度1個の文書要素の要素節点と、零個以上の注釈節点や処理指令節点です。
[16] XSLT 1では、XPath 1.0のデータ・モデルより拡張されていて、 原始木も結果木も、要素節点の個数は零個以上の任意個で、 テキスト節点を子供にすることもできます。 XSLT 1.0
[7] 根節点 = 文書節点と根要素 = 文書要素は、 名前が似ていて紛らわしいですが、別のものです。根要素は根節点の子供にあたります。
[19] XPath 2.0 が採用している XDM では「根節点」は木の根を指し、 文書節点 (相当) とは限りません。
[21] XDM は文書節点の子供として、要素節点、テキスト節点、 コメント節点、処理指令節点を任意の順序で0個以上使うことを認めています。 XML情報集合などに比べて制限が非常に緩くなっています。 >>20
[62] XQuery 1.0 and XPath 2.0 Data Model (XDM) (Second Edition) ( ( 版)) http://www.w3.org/TR/2010/REC-xpath-datamodel-20101214/#dt-document
[63] XQuery and XPath Data Model 3.0 ( ( 版)) http://www.w3.org/TR/xpath-datamodel-3/#dt-document
[97] [e] (0) explain what a conforming document is, Hixie, , https://github.com/whatwg/html/commit/69969470bf42357bb2d586ac366323adc6faff98#diff-41cf6794ba4200b839c53531555f0f3998df4cbb01a4d5cb0b94e3ca5e23947d
[22] Web Applications 1.0 r6153 The platform is full of crazy. ( ( 版)) http://html5.org/tools/web-apps-tracker?from=6152&to=6153
[23] Web Applications 1.0 r6329 Move some Document concepts to DOM Core. ( ( 版)) http://html5.org/tools/web-apps-tracker?from=6328&to=6329
[24] Web Controls 1.0 ( ( 版)) http://www.whatwg.org/specs/web-controls/current-work/#the-documentui
[25] Web Applications Markup Language 1.0 ( ( 版)) http://hixie.ch/specs/html/apps/web-apps-1#the-documentui
[26] IRC logs: freenode / #whatwg / 20120628 ( ( 版)) http://krijnhoetmer.nl/irc-logs/whatwg/20120628#l-252
[27] IRC logs: freenode / #whatwg / 20121011 ( ( 版)) http://krijnhoetmer.nl/irc-logs/whatwg/20121011
[28] XBL 2.0 ( ( 版)) http://dev.w3.org/2006/xbl2/Overview.html#the-documentxbl-interface
[30] Web Applications 1.0 r8273 Remove security checks on Document since there should now be no way to get to a Document from another origin. ( ( 版)) http://html5.org/tools/web-apps-tracker?from=8272&to=8273
[31] Web Applications 1.0 r8406 Rearrange how Document objects are initialized and created to make things a little clearer ( ( 版)) http://html5.org/tools/web-apps-tracker?from=8405&to=8406
[32] XQuery and XPath Data Model 3.0 ( ( 版)) http://www.w3.org/TR/xpath-datamodel-3/#DocumentNode
[39] Tie Location to the Window object · whatwg/html@fdd8216 ( 版) https://github.com/whatwg/html/commit/fdd8216a902a065dd3e205cbbc1b5a6b527970a2
[40] Adding event handler attributes cut/copy/paste · whatwg/html@efe130a ( 版) https://github.com/whatwg/html/commit/efe130a0566a43067659c1d92bf712b151db0727
[41] Shadow: add DocumentOrShadowRoot mixin · whatwg/dom@4183385 ( 版) https://github.com/whatwg/dom/commit/418338575c7f79a18d20ebcc88c19834366379cf
[56] Align with origin changes in HTML · whatwg/dom@20b3f3e ( 版) https://github.com/whatwg/dom/commit/20b3f3e427180e40531a40d1d93ea0097c221c90
[57] Change .createElement() namespace to match UAs by ayg · Pull Request #213 · whatwg/dom ( 版) https://github.com/whatwg/dom/pull/213
[58] [blink] Revision 166179 ( 版) https://src.chromium.org/viewvc/blink?view=revision&revision=166179
[65] Be more precise about nested and discarded browsing contexts (domenic著, ) https://github.com/whatwg/html/commit/39118df640ad4a3f03f164fb5ffe0a56316297be
[67] Make Window and Document named/indexed properties exclude shadow trees (domenic著, ) https://github.com/whatwg/html/commit/7b567729ac3cc66b074b0df53138c353ec540bb9
[68] 22960 – Document, XMLDocument, HTMLDocument, oh my () https://www.w3.org/Bugs/Public/show_bug.cgi?id=22960
[69] Specify global object references in more detail (annevk著, ) https://github.com/whatwg/dom/commit/fa8adb6cd107cd845feaeb71c9da208971b670ca
[70] 22960 – Document, XMLDocument, HTMLDocument, oh my () https://www.w3.org/Bugs/Public/show_bug.cgi?id=22960
[71] Copy the origin pointer when cloning a document (annevk著, ) https://github.com/whatwg/dom/commit/623f655c9f58039fa6b30e0f65ee325700e8b977
[38] XQuery and XPath Data Model 3.1 () https://www.w3.org/TR/2017/REC-xpath-datamodel-31-20170321/#dt-document
The word "document" in "ActiveX document" is somewhat misleading. While the genesis of ActiveX documents reveals that a Microsoft Visual Basic ActiveX document is analogous to a Word document, when you create a Visual Basic ActiveX document, the distinction between a "document" and an application becomes genuinely blurred. While a traditional document (such as a Word document) is static, ActiveX documents need not be. Using Visual Basic, you can create a complete application with the semantics of a traditional document. In other words, you have the functionality of the application, but the flexibility of a document's behavior — when a user opens an ActiveX document, she will not only have the full functionality of an application, but the ability to persist and distribute "copies" of the data intrinsic to the application. Thus, the "document" is truly active.
[83] Remove <applet> (zcorpan著, ) https://github.com/whatwg/html/commit/b9b9d60f9451c05f8e8d542e4094f987ae1a5fb8
[84] <a> and <area> are not window named objects (ayg著, ) https://github.com/whatwg/html/commit/9c209523143cb97551799e185e2a5d2750854bda
[86] Cleanup remaining Document/Window object relations (annevk著, ) https://github.com/whatwg/html/commit/39dbb3e6de4216476cf7193ad9e5d56a861d5297
[87] Cleanup remaining Document/Window object relations by annevk · Pull Request #3933 · whatwg/html () https://github.com/whatwg/html/pull/3933
[88] Inherit source browsing context's CSP instead of parent/opener (#358) (andypaicu著, ) https://github.com/w3c/webappsec-csp/commit/9834155bff2276d7ec74209ef28b8a1fd2e45782
[89] Inherit source browsing context's CSP instead of parent/opener by andypaicu · Pull Request #358 · w3c/webappsec-csp () https://github.com/w3c/webappsec-csp/pull/358
[90] Please sort out who's responsible for a srcdoc document's CSP · Issue #209 · w3c/webappsec-csp () https://github.com/w3c/webappsec-csp/issues/209
[91] Initialialization of a document's CSP doesn't really make sense in the "local scheme" bit · Issue #211 · w3c/webappsec-csp () https://github.com/w3c/webappsec-csp/issues/211
[92] Align with IDL constructor changes (autokagami著, ) https://github.com/whatwg/dom/commit/57512fac17cf2f1c4c85be4aec178c8086ee5ee4
[93] Update to constructor operations · Issue #780 · whatwg/dom () https://github.com/whatwg/dom/issues/780
[94] Add the DOM XPath interfaces from the WHATWG wiki (annevk著, ) https://github.com/whatwg/dom/commit/dea5d92156f144faf57d1a5e54a17227139ca3c5
[95] rfc4154, https://datatracker.ietf.org/doc/html/rfc4154#section-5.8.2
Google search: 関連付けられたDocument
XMLDocument
になるわけではありません。 限られた方法で作ったもののみがXMLDocument
となります。