#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
オブジェクトは HTMLDocument と
SVGDocument を実装しなければなりません。
#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 から継承するとは定義していません。
#en
Since the HTMLDocument
interface holds methods and attributes related to a number of disparate
features, the members of this interface are described in various different
sections.
#ja
HTMLDocument
界面は色々な機能に関係するメソッドや属性を持っていますので、
この界面の構成員はそれぞれの節で説明します。
#en
User agents must raise a security exception
whenever any of the members of an HTMLDocument object are accessed by
scripts whose effective script origin is not the
same as the
Document's effective script origin.
#ja
利用者エージェントは、 HTMLDocument
オブジェクトの構成員のいずれかが、
実効スクリプト起源が Document
の実効スクリプト起源と同じではないスクリプトからアクセスされる場合に、
常に、
保安性例外を発生させなければ[[MUST:なりません]]。
#pattern
* Resource
metadata management
#ja
$1 資源メタデータ管理
#en
The URL attribute
must return the document's address.
#ja
URL
属性は文書の番地を返さなければ[[MUST:なりません]]。
#en
The referrer attribute must
return either the address of the active document of the source
browsing context at the time the navigation was started (that is, the
page which navigated the browsing context to the current document), or the
empty string if there is no such originating page, or if the UA has been
configured not to report referrers in this case, or if the navigation was
initiated for a hyperlink with a noreferrer keyword.
#ja
referrer
属性は、操縦が開始された時点での原始閲覧文脈の活性文書
(閲覧文脈を現在の文書に操縦した頁)
の番地か、
または、そのような元々の頁がない場合、利用者エージェントがこの場合に参照子を報告しないように設定されている場合、
操縦が noreferrer
キーワードのあるハイパーリンクについて初期化された場合には空文字列、
このいずれかを返さなければ[[MUST:なりません]]。
#en
In the case of HTTP, the referrer DOM attribute will match the Referer (sic) header that was sent when fetching the current page.
#ja
HTTP の場合、 referrer DOM 属性は現在の頁を取ってくる時に送られた Referer (ママ) 頭部と一致します。
#en
Typically user agents are configured to not report referrers
in the case where the referrer uses an encrypted protocol and the current
page does not (e.g. when navigating from an https:
page to an http: page).
#ja
通常、利用者エージェントは、参照子が暗号化プロトコルを使っており、
現在の頁がそうではない場合 (例えば https:
頁から http: 頁へと操縦した時)
には参照子を報告しないように設定されています。