#pattern * Semantics and structure of HTML documents #ja $1 HTML 文書の意味と構造 #pattern * Documents #ja $1 文書 #en Every XML and HTML document in an HTML UA is represented by a Document object. [DOM3CORE] #ja HTML 利用者エージェントにおけるすべての XML や HTML の文書は Document オブジェクトにより表現されます。 [DOM3CORE] #pattern * Documents in the DOM #ja $1 DOM 中の文書 #en Document objects are assumed to be XML documents unless they are flagged as being HTML documents when they are created. Whether a document is an HTML document or an XML document affects the behavior of certain APIs, as well as a few CSS rendering rules. [CSS21] #ja Document オブジェクトは、作成された時に HTML 文書であると旗付けされていなければ、 XML 文書であると見なします。 文書が HTML 文書であるか XML 文書であるかは、 いくつかの API の動作や CSS のレンダリング規則の一部に影響します。 [CSS21] #en A Document object created by the createDocument() API on the DOMImplementation object is initially an XML document, but can be made into an HTML document by calling document.open() on it. #ja DOMImplementation 上の createDocument() API により作成された Document オブジェクトははじめ XML 文書ですが、 document.open() を呼び出すことにより HTML 文書にすることができます。 #en All Document objects (in user agents implementing this specification) must also implement the HTMLDocument interface, available using binding-specific methods. (This is the case whether or not the document in question is an HTML document or indeed whether it contains any HTML elements at all.) Document objects must also implement the document-level interface of any other namespaces found in the document that the UA supports. For example, if an HTML implementation also supports SVG, then the Document object must implement HTMLDocument and SVGDocument. #ja (この仕様書を実装する利用書エージェントにおける) すべての Document オブジェクトは、 HTMLDocument 界面をも実装し、 束縛規定の方式により利用可能としなければ[[MUST:なりません]]。 (これは当該文書が HTML 文書であるか否かや、 そもそも HTML 要素を含んでいるか否かによらずのことです。) Document オブジェクトは、文書中に現れ、利用者エージェントが対応している、 他の名前空間の文書水準の界面をも実装しなければ[[MUST:なりません]]。 例えば、 HTML 実装が SVG にも対応している場合、 Document オブジェクトは HTMLDocumentSVGDocument を実装しなければなりません。 #en Because the HTMLDocument interface is now obtained using binding-specific casting methods instead of simply being the primary interface of the document object, it is no longer defined as inheriting from Document. #ja HTMLDocument 界面は現在では単純に文書オブジェクトの主たる界面であるとするのではなく、 束縛規定の型変換方式を使って得るものとしているので、 最早 Document から継承するとは定義していません。