/[suikacvs]/markup/html/html5/spec-ja/data/documents.dat
Suika

Diff of /markup/html/html5/spec-ja/data/documents.dat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by apache, Sun Aug 10 08:55:00 2008 UTC revision 1.64 by apache, Sat Oct 25 13:30:33 2008 UTC
# Line 1  Line 1 
   
1  #pattern  #pattern
2  <span class=secno>* </span>Semantics and structure of HTML  <span class=secno>* </span>Semantics and structure of HTML
3     documents     documents
# Line 8  Line 7 
7  #pattern  #pattern
8  <span class=secno>* </span>Documents  <span class=secno>* </span>Documents
9  #ja  #ja
10  <span class=secno>$1 </span>文書  <span class=secno>$1 </span>文書
11    
12  #en  #en
13  Every XML and HTML document in an HTML UA is represented by a  Every XML and HTML document in an HTML UA is represented by a
14     <code>Document</code> object. <a href="#refsDOM3CORE">[DOM3CORE]</a>     <code>Document</code> object. <a href=#refsDOM3CORE>[DOM3CORE]</a>
15  #ja  #ja
16  HTML 利用者エージェントにおけるすべての XML や HTML の文書は  HTML 利用者エージェントにおけるすべての XML や HTML の文書は
17  <code>Document</code> オブジェクトにより表現されます。 <a href="#refsDOM3CORE">[DOM3CORE]</a>  <code>Document</code> オブジェクトにより表現されます。 <a href=#refsDOM3CORE>[DOM3CORE]</a>
18    
19  #pattern  #pattern
20  <span class=secno>* </span>Documents in the DOM  <span class=secno>* </span>Documents in the DOM
21  #ja  #ja
22  <span class=secno>$1 </span>DOM 中の文書  <span class=secno>$1 </span>DOM 中の文書
23    
24  #en  #en
25  <code>Document</code> objects are assumed to be <dfn  <code>Document</code> objects are assumed to be <dfn
26     id=xml-documents>XML documents</dfn> unless they are flagged as being <dfn     id=xml-documents>XML documents</dfn> unless they are flagged as being <dfn
27     id=html->HTML documents</dfn> when they are created. Whether a document is     id=html-documents>HTML documents</dfn> when they are created. Whether a document is
28     an <a href="#html-" title="HTML documents">HTML document</a> or an <a     an <a href=#html-documents title="HTML documents">HTML document</a> or an <a
29     href="#xml-documents" title="XML documents">XML document</a> affects the     href=#xml-documents title="XML documents">XML document</a> affects the
30     behavior of certain APIs, as well as a few CSS rendering rules. <a     behavior of certain APIs, as well as a few CSS rendering rules. <a
31     href="#refsCSS21">[CSS21]</a>     href=#refsCSS21>[CSS21]</a>
32  #ja  #ja
33  <code>Document</code> オブジェクトは、作成された時に  <code>Document</code> オブジェクトは、作成された時に
34  <dfn  <dfn
35     id=html->HTML 文書</dfn>であると旗付けされていなければ、 <dfn     id=html-documents>HTML 文書</dfn>であると旗付けされていなければ、 <dfn
36     id=xml-documents>XML 文書</dfn>であると見なします。     id=xml-documents>XML 文書</dfn>であると見なします。
37  文書が <a href="#html-" title="HTML documents">HTML 文書</a>であるか <a  文書が <a href=#html-documents title="HTML documents">HTML 文書</a>であるか <a
38     href="#xml-documents" title="XML documents">XML 文書</a>であるかは、     href=#xml-documents title="XML documents">XML 文書</a>であるかは、
39  いくつかの API の動作や CSS のレンダリング規則の一部に影響します。 <a  いくつかの API の動作や CSS のレンダリング規則の一部に影響します。 <a
40     href="#refsCSS21">[CSS21]</a>     href=#refsCSS21>[CSS21]</a>
41    
42  #en  #en
43  A <code>Document</code> object created by the <code  A <code>Document</code> object created by the <code
44     title="">createDocument()</code> API on the <code>DOMImplementation</code>     title="">createDocument()</code> API on the <code>DOMImplementation</code>
45     object is initially an <a href="#xml-documents" title="XML documents">XML     object is initially an <a href=#xml-documents title="XML documents">XML
46     document</a>, but can be made into an <a href="#html-" title="HTML     document</a>, but can be made into an <a href=#html-documents title="HTML
47     documents">HTML document</a> by calling <code title=dom-document-open><a     documents">HTML document</a> by calling <code title=dom-document-open><a
48     href="#open">document.open()</a></code> on it.     href=#dom-document-open>document.open()</a></code> on it.
49  #ja  #ja
50  <code>DOMImplementation</code> 上の <code  <code>DOMImplementation</code> 上の <code
51     title="">createDocument()</code> API により作成された <code>Document</code>     title="">createDocument()</code> API により作成された <code>Document</code>
52  オブジェクトははじめ <a href="#xml-documents" title="XML documents">XML  オブジェクトははじめ <a href=#xml-documents title="XML documents">XML
53     文書</a>ですが、 <code title=dom-document-open><a     文書</a>ですが、 <code title=dom-document-open><a
54     href="#open">document.open()</a></code>     href=#dom-document-open>document.open()</a></code>
55  を呼び出すことにより <a href="#html-" title="HTML  を呼び出すことにより <a href=#html-documents title="HTML
56     documents">HTML 文書</a>にすることができます。     documents">HTML 文書</a>にすることができます。
57    
58  #en  #en
59  All <code>Document</code> objects (in user agents implementing this  All <code>Document</code> objects (in user agents implementing this
60     specification) must also implement the <code><a     specification) must also implement the <code><a
61     href="#htmldocument">HTMLDocument</a></code> interface, available using     href=#htmldocument>HTMLDocument</a></code> interface, available using
62     binding-specific methods. (This is the case whether or not the document in     binding-specific methods. (This is the case whether or not the document in
63     question is an <a href="#html-" title="HTML documents">HTML document</a>     question is an <a href=#html-documents title="HTML documents">HTML document</a>
64     or indeed whether it contains any <a href="#html-elements">HTML     or indeed whether it contains any <a href=#html-elements>HTML
65     elements</a> at all.) <code>Document</code> objects must also implement     elements</a> at all.) <code>Document</code> objects must also implement
66     the document-level interface of any other namespaces found in the document     the document-level interface of any other namespaces found in the document
67     that the UA supports. For example, if an HTML implementation also supports     that the UA supports. For example, if an HTML implementation also supports
68     SVG, then the <code>Document</code> object must implement <code><a     SVG, then the <code>Document</code> object must implement <code><a
69     href="#htmldocument">HTMLDocument</a></code> and <code>SVGDocument</code>.     href=#htmldocument>HTMLDocument</a></code> and <code>SVGDocument</code>.
70  #ja  #ja
71  (この仕様書を実装する利用書エージェントにおける) すべての  (この仕様書を実装する利用書エージェントにおける) すべての
72  <code>Document</code>  <code>Document</code>
73  オブジェクトは、 <code><a  オブジェクトは、 <code><a
74     href="#htmldocument">HTMLDocument</a></code> 界面をも実装し、     href=#htmldocument>HTMLDocument</a></code> 界面をも実装し、
75  束縛規定の方式により利用可能としなければ[[MUST:なりません]]。  束縛規定の方式により利用可能としなければ[[MUST:なりません]]。
76  (これは当該文書が <a href="#html-" title="HTML documents">HTML 文書</a>であるか否かや、  (これは当該文書が <a href=#html-documents title="HTML documents">HTML 文書</a>であるか否かや、
77  そもそも <a href="#html-elements">HTML  そもそも <a href=#html-elements>HTML
78     要素</a>を含んでいるか否かによらずのことです。)     要素</a>を含んでいるか否かによらずのことです。)
79  <code>Document</code> オブジェクトは、文書中に現れ、利用者エージェントが対応している、  <code>Document</code> オブジェクトは、文書中に現れ、利用者エージェントが対応している、
80  他の名前空間の文書水準の界面をも実装しなければ[[MUST:なりません]]。  他の名前空間の文書水準の界面をも実装しなければ[[MUST:なりません]]。
81  例えば、 HTML 実装が SVG にも対応している場合、 <code>Document</code>  例えば、 HTML 実装が SVG にも対応している場合、 <code>Document</code>
82  オブジェクトは <code><a  オブジェクトは <code><a
83     href="#htmldocument">HTMLDocument</a></code> と     href=#htmldocument>HTMLDocument</a></code> と
84  <code>SVGDocument</code> を実装しなければなりません<!-- 例示なので MUST でなく must -->。  <code>SVGDocument</code> を実装しなければなりません<!-- 例示なので MUST でなく must -->。
85    
86  #en  #en
87  Because the <code><a  Because the <code><a
88     href="#htmldocument">HTMLDocument</a></code> interface is now obtained     href=#htmldocument>HTMLDocument</a></code> interface is now obtained
89     using binding-specific casting methods instead of simply being the primary     using binding-specific casting methods instead of simply being the primary
90     interface of the document object, it is no longer defined as inheriting     interface of the document object, it is no longer defined as inheriting
91     from <code>Document</code>.     from <code>Document</code>.
92  #ja  #ja
93  <code><a  <code><a
94     href="#htmldocument">HTMLDocument</a></code>     href=#htmldocument>HTMLDocument</a></code>
95  界面は現在では単純に文書オブジェクトの主たる界面であるとするのではなく、  界面は現在では単純に文書オブジェクトの主たる界面であるとするのではなく、
96  束縛規定の型変換方式を使って得るものとしているので、  束縛規定の型変換方式を使って得るものとしているので、
97  最早 <code>Document</code> から継承するとは定義していません。  最早 <code>Document</code> から継承するとは定義していません。
98    
99  #en  #en
100  Since the <code><a href="#htmldocument">HTMLDocument</a></code>  Since the <code><a href=#htmldocument>HTMLDocument</a></code>
101     interface holds methods and attributes related to a number of disparate     interface holds methods and attributes related to a number of disparate
102     features, the members of this interface are described in various different     features, the members of this interface are described in various different
103     sections.     sections.
104  #ja  #ja
105  <code><a href="#htmldocument">HTMLDocument</a></code>  <code><a href=#htmldocument>HTMLDocument</a></code>
106  界面は色々な機能に関係するメソッドや属性を持っていますので、  界面は色々な機能に関係するメソッドや属性を持っていますので、
107  この界面の構成員はそれぞれの節で説明します。  この界面の構成員はそれぞれの節で説明します。
108    
109  #en  #en
110  User agents must raise a <a href="#security10">security exception</a>  User agents must raise a <a href=#security-exception>security exception</a>
111     whenever any of the members of an <code><a     whenever any of the members of an <code><a
112     href="#htmldocument">HTMLDocument</a></code> object are accessed by     href=#htmldocument>HTMLDocument</a></code> object are accessed by
113     scripts whose <a href="#effective3">effective script origin</a> is not the     scripts whose <a href=#effective-script-origin>effective script origin</a> is not the
114     <a href="#same-origin" title="same origin">same</a> as the     <a href=#same-origin title="same origin">same</a> as the
115     <code>Document</code>'s <a href="#effective3">effective script origin</a>.     <code>Document</code>'s <a href=#effective-script-origin>effective script origin</a>.
116  #ja  #ja
117  利用者エージェントは、 <code><a  利用者エージェントは、 <code><a
118     href="#htmldocument">HTMLDocument</a></code>     href=#htmldocument>HTMLDocument</a></code>
119  オブジェクトの構成員のいずれかが、  オブジェクトの構成員のいずれかが、
120  <a href="#effective3">実効スクリプト起源</a>が <code>Document</code>  <a href=#effective-script-origin>実効スクリプト起源</a>が <code>Document</code>
121  の<a href="#effective3">実効スクリプト起源</a>と<a href="#same-origin" title="same origin">同じ</a>ではないスクリプトからアクセスされる場合に、  の<a href=#effective-script-origin>実効スクリプト起源</a>と<a href=#same-origin title="same origin">同じ</a>ではないスクリプトからアクセスされる場合に、
122  常に、  常に、
123  <a href="#security10">保安性例外</a>を発生させなければ[[MUST:なりません]]。  <a href=#security-exception>保安性例外</a>を発生させなければ[[MUST:なりません]]。
124    
125  #pattern  #pattern
126  <span class=secno>* </span><dfn id=resource0>Resource  <span class=secno>* </span><dfn>Resource
127     metadata management</dfn>     metadata management</dfn>
128  #ja  #ja
129  <span class=secno>$1 </span><dfn id=resource0>資源メタデータ管理</dfn>  <span class=secno>$1 </span><dfn>資源メタデータ管理</dfn>
130    
131  #en  #en
132  The <dfn id=url0 title=dom-document-URL><code>URL</code></dfn> attribute  The <dfn id=dom-document-url title=dom-document-URL><code>URL</code></dfn> attribute
133     must return <span>the document's address</span><!--     must return <span>the document's address</span><!--
134    XXXDOCURL xref -->.    XXXDOCURL xref -->.
135  #ja  #ja
136  <dfn id=url0 title=dom-document-URL><code>URL</code></dfn>  <dfn id=dom-document-url title=dom-document-URL><code>URL</code></dfn>
137  属性は<span>文書の番地</span><!--  属性は<span>文書の番地</span><!--
138    XXXDOCURL xref -->を返さなければ[[MUST:なりません]]。    XXXDOCURL xref -->を返さなければ[[MUST:なりません]]。
139    
140  #en  #en
141  The <dfn id=referrer  The <dfn id=dom-document-referrer
142     title=dom-document-referrer><code>referrer</code></dfn> attribute must     title=dom-document-referrer><code>referrer</code></dfn> attribute must
143     return either the <span title="the document's     return either the <span title="the document's
144     address">address</span><!-- XXXDOXURL xref --> of the <a     address">address</span><!-- XXXDOXURL xref --> of the <a
145     href="#active">active document</a> of the <a href="#source0">source     href=#active-document>active document</a> of the <a href=#source-browsing-context>source
146     browsing context</a> at the time the navigation was started (that is, the     browsing context</a> at the time the navigation was started (that is, the
147     page which <a href="#navigate" title=navigate>navigated</a> the <a     page which <a href=#navigate title=navigate>navigated</a> the <a
148     href="#browsing1">browsing context</a> to the current document), or the     href=#browsing-context>browsing context</a> to the current document), or the
149     empty string if there is no such originating page, or if the UA has been     empty string if there is no such originating page, or if the UA has been
150     configured not to report referrers in this case, or if the navigation was     configured not to report referrers in this case, or if the navigation was
151     initiated for a <a href="#hyperlinks">hyperlink</a> with a <code     initiated for a <a href=#hyperlink>hyperlink</a> with a <code
152     title=rel-noreferrer><a href="#noreferrer">noreferrer</a></code> keyword.     title=rel-noreferrer><a href=#link-type-noreferrer>noreferrer</a></code> keyword.
153  #ja  #ja
154  <dfn id=referrer  <dfn id=dom-document-referrer
155     title=dom-document-referrer><code>referrer</code></dfn>     title=dom-document-referrer><code>referrer</code></dfn>
156  属性は、操縦が開始された時点での<a href="#source0">原始閲覧文脈</a>の<a  属性は、操縦が開始された時点での<a href=#source-browsing-context>原始閲覧文脈</a>の<a
157     href="#active">活性文書</a>     href=#active-document>活性文書</a>
158  (<a  (<a
159     href="#browsing1">閲覧文脈</a>を現在の文書に<a href="#navigate" title=navigate>操縦</a>した頁)     href=#browsing-context>閲覧文脈</a>を現在の文書に<a href=#navigate title=navigate>操縦</a>した頁)
160  の<span title="the document's  の<span title="the document's
161     address">番地</span><!-- XXXDOXURL xref -->か、     address">番地</span><!-- XXXDOXURL xref -->か、
162  または、そのような元々の頁がない場合、利用者エージェントがこの場合に参照子を報告しないように設定されている場合、  または、そのような元々の頁がない場合、利用者エージェントがこの場合に参照子を報告しないように設定されている場合、
163  操縦が <code  操縦が <code
164     title=rel-noreferrer><a href="#noreferrer">noreferrer</a></code>     title=rel-noreferrer><a href=#link-type-noreferrer>noreferrer</a></code>
165  キーワードのある<a href="#hyperlinks">ハイパーリンク</a>について初期化された場合には空文字列、  キーワードのある<a href=#hyperlink>ハイパーリンク</a>について初期化された場合には空文字列、
166  このいずれかを返さなければ[[MUST:なりません]]。  このいずれかを返さなければ[[MUST:なりません]]。
167    
168    
169  #en  #en
170  In the case of HTTP, the <code title=dom-document-referrer><a  In the case of HTTP, the <code title=dom-document-referrer><a
171     href="#referrer">referrer</a></code> DOM attribute will match the <code     href=#dom-document-referrer>referrer</a></code> DOM attribute will match the <code
172     title="">Referer</code> (sic) header that was sent when <a href="#fetch"     title="">Referer</code> (sic) header that was sent when <a href=#fetch
173     title=fetch>fetching</a> the current page.     title=fetch>fetching</a> the current page.
174  #ja  #ja
175  HTTP の場合、 <code title=dom-document-referrer><a  HTTP の場合、 <code title=dom-document-referrer><a
176     href="#referrer">referrer</a></code> DOM 属性は現在の頁を<a href="#fetch"     href=#dom-document-referrer>referrer</a></code> DOM 属性は現在の頁を<a href=#fetch
177     title=fetch>取ってくる</a>時に送られた <code     title=fetch>取ってくる</a>時に送られた <code
178     title="">Referer</code> (ママ) 頭部と一致します。     title="">Referer</code> (ママ) 頭部と一致します。
179    
180  #en  #en
181  Typically user agents are configured to not report referrers  Typically user agents are configured to not report referrers
182     in the case where the referrer uses an encrypted protocol and the current     in the case where the referrer uses an encrypted protocol and the current
183     page does not (e.g. when navigating from an <code title="">https:</code>     page does not (e.g. when navigating from an <code title="">https:</code>
184     page to an <code title="">http:</code> page).     page to an <code title="">http:</code> page).
185  #ja  #ja
186  通常、利用者エージェントは、参照子が暗号化プロトコルを使っており、  通常、利用者エージェントは、参照子が暗号化プロトコルを使っており、
187  現在の頁がそうではない場合 (例えば <code title="">https:</code>  現在の頁がそうではない場合 (例えば <code title="">https:</code>
188  頁から <code title="">http:</code> 頁へと操縦した時)  頁から <code title="">http:</code> 頁へと操縦した時)
189  には参照子を報告しないように設定されています。  には参照子を報告しないように設定されています。
190    
191  #en  #en
192  The <dfn id=cookie0 title=dom-document-cookie><code>cookie</code></dfn>  The <dfn id=dom-document-cookie title=dom-document-cookie><code>cookie</code></dfn>
193     attribute represents the cookies of the resource.     attribute represents the cookies of the resource.
194  #ja  #ja
195  <dfn id=cookie0 title=dom-document-cookie><code>cookie</code></dfn>  <dfn id=dom-document-cookie title=dom-document-cookie><code>cookie</code></dfn>
196  属性は、資源のクッキーを表します。  属性は、資源のクッキーを表します。
197    
198  #en  #en
199  On getting, if the <a href="#sandboxed2">sandboxed  On getting, if the <a href=#sandboxed-origin-browsing-context-flag>sandboxed
200     origin browsing context flag</a> is set on the <a     origin browsing context flag</a> is set on the <a
201     href="#browsing1">browsing context</a> of the document, the user agent     href=#browsing-context>browsing context</a> of the document, the user agent
202     must raise a <a href="#security10">security exception</a>. Otherwise, it     must raise a <a href=#security-exception>security exception</a>. Otherwise, it
203     must return the same string as the value of the <code     must return the same string as the value of the <code
204     title="">Cookie</code> HTTP header it would include if <a href="#fetch"     title="">Cookie</code> HTTP header it would include if <a href=#fetch
205     title=fetch>fetching</a> the resource indicated by <span>the document's     title=fetch>fetching</a> the resource indicated by <span>the document's
206     address</span><!-- XXXDOCURL --> over HTTP, as per RFC 2109 section 4.3.4     address</span><!-- XXXDOCURL --> over HTTP, as per RFC 2109 section 4.3.4
207     or later specifications. <a href="#refsRFC2109">[RFC2109]</a> <a     or later specifications. <a href=#refsRFC2109>[RFC2109]</a> <a
208     href="#refsRFC2965">[RFC2965]</a>     href=#refsRFC2965>[RFC2965]</a>
209  #ja  #ja
210  取得時、<a href="#sandboxed2">砂箱起源閲覧文脈旗</a>が文書の<a  取得時、<a href=#sandboxed-origin-browsing-context-flag>砂箱起源閲覧文脈旗</a>が文書の<a
211     href="#browsing1">閲覧文脈</a>に設定されている場合には、     href=#browsing-context>閲覧文脈</a>に設定されている場合には、
212  利用者エージェントは<a href="#security10">保安性例外</a>を発生させなければ[[MUST:なりません]]。  利用者エージェントは<a href=#security-exception>保安性例外</a>を発生させなければ[[MUST:なりません]]。
213  そうでない場合、<span>文書の番地</span><!-- XXXDOCURL -->で示される資源を HTTP  そうでない場合、<span>文書の番地</span><!-- XXXDOCURL -->で示される資源を HTTP
214  によって<a href="#fetch"  によって<a href=#fetch
215     title=fetch>取ってくる</a>場合に RFC 2109     title=fetch>取ってくる</a>場合に RFC 2109
216  4.3.4 節やより新しい仕様書に従って含まれるであろう <code  4.3.4 節やより新しい仕様書に従って含まれるであろう <code
217     title="">Cookie</code> HTTP 頭部の値と同じ文字列を返さなければ[[MUST:なりません]]。 <a href="#refsRFC2109">[RFC2109]</a> <a     title="">Cookie</code> HTTP 頭部の値と同じ文字列を返さなければ[[MUST:なりません]]。 <a href=#refsRFC2109>[RFC2109]</a> <a
218     href="#refsRFC2965">[RFC2965]</a>     href=#refsRFC2965>[RFC2965]</a>
219    
220  #en  #en
221  On setting, if the <a href="#sandboxed2">sandboxed origin browsing  On setting, if the <a href=#sandboxed-origin-browsing-context-flag>sandboxed origin browsing
222     context flag</a> is set on the <a href="#browsing1">browsing context</a>     context flag</a> is set on the <a href=#browsing-context>browsing context</a>
223     of the document, the user agent must raise a <a     of the document, the user agent must raise a <a
224     href="#security10">security exception</a>. Otherwise, the user agent must     href=#security-exception>security exception</a>. Otherwise, the user agent must
225     act as it would when processing cookies if it had just attempted to <a     act as it would when processing cookies if it had just attempted to <a
226     href="#fetch">fetch</a> <span>the document's address</span><!-- XXXDOCURL     href=#fetch>fetch</a> <span>the document's address</span><!-- XXXDOCURL
227    -->    -->
228     over HTTP, and had received a response with a <code>Set-Cookie</code>     over HTTP, and had received a response with a <code>Set-Cookie</code>
229     header whose value was the specified value, as per RFC 2109 sections     header whose value was the specified value, as per RFC 2109 sections
230     4.3.1, 4.3.2, and 4.3.3 or later specifications. <a     4.3.1, 4.3.2, and 4.3.3 or later specifications. <a
231     href="#refsRFC2109">[RFC2109]</a> <a href="#refsRFC2965">[RFC2965]</a>     href=#refsRFC2109>[RFC2109]</a> <a href=#refsRFC2965>[RFC2965]</a>
232  #ja  #ja
233  設定時、<a href="#sandboxed2">砂箱起源閲覧文脈旗</a>が文書の<a  設定時、<a href=#sandboxed-origin-browsing-context-flag>砂箱起源閲覧文脈旗</a>が文書の<a
234     href="#browsing1">閲覧文脈</a>に設定されている場合には、     href=#browsing-context>閲覧文脈</a>に設定されている場合には、
235  利用者エージェントは<a href="#security10">保安性例外</a>を発生させなければ[[MUST:なりません]]。  利用者エージェントは<a href=#security-exception>保安性例外</a>を発生させなければ[[MUST:なりません]]。
236  そうでない場合、利用者エージェントは、  そうでない場合、利用者エージェントは、
237  <span>文書の番地</span><!-- XXXDOCURL -->で示される資源を HTTP  <span>文書の番地</span><!-- XXXDOCURL -->で示される資源を HTTP
238  によって<a href="#fetch"  によって<a href=#fetch
239     title=fetch>取ってこよう</a>とし、     title=fetch>取ってこよう</a>とし、
240  値が指定された値である <code>Set-Cookie</code>  値が指定された値である <code>Set-Cookie</code>
241  頭部がある応答を受信した場合にクッキーを処理する時と同じように、  頭部がある応答を受信した場合にクッキーを処理する時と同じように、
 RFC 2109 4.3.1 節、4.3.2 節、4.3.3. 節やより新しい仕様書に従い作用しなければ[[MUST:なりません]]。 <a href="#refsRFC2109">[RFC2109]</a> <a  
    href="#refsRFC2965">[RFC2965]</a>  
242    RFC 2109 4.3.1 節、4.3.2 節、4.3.3. 節やより新しい仕様書に従い作用しなければ[[MUST:なりません]]。 <a href=#refsRFC2109>[RFC2109]</a> <a
243       href=#refsRFC2965>[RFC2965]</a>
244    
245    #en
246    Since the <code title=dom-document-cookie><a
247       href=#dom-document-cookie>cookie</a></code> attribute is accessible across frames,
248       the path restrictions on cookies are only a tool to help manage which
249       cookies are sent to which parts of the site, and are not in any way a
250       security feature.
251    #ja
252    <code title=dom-document-cookie><a
253       href=#dom-document-cookie>cookie</a></code> 属性はフレームをまたいでアクセス可能ですので、
254    クッキーの経路制限はクッキーがサイト上のどの部分に送られるかを管理することを助けるための道具に過ぎず、
255    保安性のための機能では決してありません。
256    
257    #en
258    The <dfn id=dom-document-lastmodified
259       title=dom-document-lastModified><code>lastModified</code></dfn> attribute,
260       on getting, must return the date and time of the <code>Document</code>'s
261       source file's last modification, in the user's local timezone, in the
262       following format:
263    #ja
264    <dfn id=dom-document-lastmodified
265       title=dom-document-lastModified><code>lastModified</code></dfn>
266    属性は、取得時、 <code>Document</code> の原始ファイルの最終修正の日時を、
267    利用者の地方時において、次の書式で返さなければ[[MUST:なりません]]。
268    
269    #en
270    The month component of the date.
271    #ja
272    日付の月の部品。
273    
274    #en
275    A U+002F SOLIDUS character ('/').
276    #ja
277    U+002F SOLIDUS 文字 ('/')。
278    
279    #en
280    The day component of the date.
281    #ja
282    日付の日の部品。
283    
284    #en
285    The year component of the date.
286    #ja
287    日付の年の部品。
288    
289    #en
290    A U+0020 SPACE character.
291    #ja
292    U+0020 SPACE 文字。
293    
294    #en
295    The hours component of the time.
296    #ja
297    時刻の時の部品。
298    
299    #en
300    A U+003A COLON character (':').
301    #ja
302    U+003A COLON 文字 (':')。
303    
304    #en
305    The minutes component of the time.
306    #ja
307    時刻の分の部品。
308    
309    #en
310    The seconds component of the time.
311    #ja
312    時刻の秒の部品。
313    
314    #en
315    All the numeric components above, other than the year, must be given as
316       two digits in the range U+0030 DIGIT ZERO to U+0039 DIGIT NINE
317       representing the number in base ten, zero-padded if necessary.
318    #ja
319    前述の数値の部品のうち年以外のすべては、範囲 U+0030 DIGIT ZERO ~
320    U+0039 DIGIT NINE の2つの数字によって十進数を表す、
321    必要なら零埋めしたものとして与えなければ[[MUST:なりません]]。
322    
323    #en
324    The <code>Document</code>'s source file's last modification date and
325       time must be derived from relevant features of the networking protocols
326       used, e.g. from the value of the HTTP <code title="">Last-Modified</code>
327       header of the document, or from metadata in the file system for local
328       files. If the last modification date and time are not known, the attribute
329       must return the string <code title="">01/01/1970 00:00:00</code>.
330    #ja
331    <code>Document</code> の原始ファイルの最終修正日時は、
332    使用されているネットワークのプロトコルの関係する機能、例えば文書の HTTP <code title="">Last-Modified</code> 頭部から、または局所ファイルのファイル・システムのメタデータから得たものでなければ[[MUST:なりません]]。
333    最終修正日時がわからない場合は、この属性は文字列 <code title="">01/01/1970 00:00:00</code>
334    を返さなければ[[MUST:なりません]]。
335    
336    #en
337    The <code>Document</code>'s source file's last modification date and
338       time must be derived from relevant features of the networking protocols
339       used, e.g. from the value of the HTTP <code title="">Last-Modified</code>
340       header of the document, or from metadata in the file system for local
341       files. If the last modification date and time are not known, the attribute
342       must return the string <code title="">01/01/1970 00:00:00</code>.
343    #ja
344    <code>Document</code> の原始ファイルの最終修正日時は、
345    使用されているネットワークのプロトコルの関係する機能、例えば文書の HTTP <code title="">Last-Modified</code> 頭部から、または局所ファイルのファイル・システムのメタデータから得たものでなければ[[MUST:なりません]]。
346    最終修正日時がわからない場合は、この属性は文字列 <code title="">01/01/1970 00:00:00</code>
347    を返さなければ[[MUST:なりません]]。
348    
349    #en
350    A <code>Document</code> is always set to one of three modes: <dfn
351       id=no-quirks-mode>no quirks mode</dfn>, the default; <dfn id=quirks-mode>quirks
352       mode</dfn>, used typically for legacy documents; and <dfn
353       id=limited-quirks-mode>limited quirks mode</dfn>, also known as "almost standards"
354       mode. The mode is only ever changed from the default by the <a
355       href=#html-parser>HTML parser</a>, based on the presence, absence, or value
356       of the DOCTYPE string.
357    #ja
358    <code>Document</code> は常に3つのモードのいずれかに設定されています。<dfn
359       id=no-quirks-mode>無奇癖モード</dfn>は既定値です。<dfn id=quirks-mode>奇癖モード</dfn>は、
360    普通、遺物文書に使われます。<dfn
361       id=limited-quirks-mode>制限奇癖モード</dfn>は、「ほぼ標準」モードとも呼ばれます。
362    このモードは
363    <a
364       href=#html-parser>HTML 構文解析器</a>によってのみ、
365    DOCTYPE 文字列が存在するか存在しないかやその値に基づいて既定値から変更されます。
366    
367    #en
368    The <dfn id=dom-document-compatmode
369       title=dom-document-compatMode><code>compatMode</code></dfn> DOM attribute
370       must return the literal string "<code title="">CSS1Compat</code>" unless
371       the document has been set to <a href=#quirks-mode>quirks mode</a> by the <a
372       href=#html-parser>HTML parser</a>, in which case it must instead return the
373       literal string "<code title="">BackCompat</code>".
374    #ja
375    <dfn id=dom-document-compatmode
376       title=dom-document-compatMode><code>compatMode</code></dfn> DOM
377    属性は、生の文字列「<code title="">CSS1Compat</code>」を返さなければ[[MUST:なりません]]。
378    ただし、文書が <a
379       href=#html-parser>HTML 構文解析器</a>により<a href=#quirks-mode>奇癖モード</a>に設定されている場合には、
380    代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。
381    
382    #en
383    Documents have an associated <dfn id=character-reference-in-attribute-value-state title="document's
384       character encoding">character encoding</dfn>. When a <code>Document</code>
385       object is created, the <a href=#character-reference-in-attribute-value-state>document's character
386       encoding</a> must be initialized to UTF-16. Various algorithms during page
387       loading affect this value, as does the <code title=dom-document-charset><a
388       href=#dom-document-charset>charset</a></code> setter. <a
389       href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
390      http://www.iana.org/assignments/character-sets -->
391    #ja
392    文書は<dfn id=character-reference-in-attribute-value-state title="document's
393       character encoding">文字符号化</dfn>と関連付けられています。
394    <code>Document</code> オブジェクトが作成された時、<a href=#character-reference-in-attribute-value-state>文書の文字符号化</a>は
395    UTF-16 に初期化されなければ[[MUST:なりません]]。
396    頁の読み込みの間の色々な算法や <code title=dom-document-charset><a
397       href=#dom-document-charset>charset</a></code> 設定子がこの値を変化させます。 <a
398       href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
399      http://www.iana.org/assignments/character-sets -->
400    
401    #en
402    The <dfn id=dom-document-charset
403       title=dom-document-charset><code>charset</code></dfn> DOM attribute must,
404       on getting, return the preferred MIME name of the <a
405       href=#character-reference-in-attribute-value-state>document's character encoding</a>. On setting, if the
406       new value is an IANA-registered alias for a character encoding, the <a
407       href=#character-reference-in-attribute-value-state>document's character encoding</a> must be set to that
408       character encoding. (Otherwise, nothing happens.)
409    #ja
410    <dfn id=dom-document-charset
411       title=dom-document-charset><code>charset</code></dfn> DOM
412    属性は、取得時、<a
413       href=#character-reference-in-attribute-value-state>文書の文字符号化</a>の優先 MIME
414    名を返さなければ[[MUST:なりません]]。設定時、
415    新しい値がある文字符号化の IANA に登録された別名である場合、<a
416       href=#character-reference-in-attribute-value-state>文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。
417    (それ以外の場合、何も起きません。)
418    
419    #en
420    The <dfn id=dom-document-characterset
421       title=dom-document-characterSet><code>characterSet</code></dfn> DOM
422       attribute must, on getting, return the preferred MIME name of the <a
423       href=#character-reference-in-attribute-value-state>document's character encoding</a>.
424    #ja
425    <dfn id=dom-document-characterset
426       title=dom-document-characterSet><code>characterSet</code></dfn> DOM
427    属性は、取得時、<a
428       href=#character-reference-in-attribute-value-state>文書の文字符号化</a>の優先 MIME 名を返さなければ[[MUST:なりません]]。
429    
430    #en
431    The <dfn id=dom-document-defaultcharset
432       title=dom-document-defaultCharset><code>defaultCharset</code></dfn> DOM
433       attribute must, on getting, return the preferred MIME name of a character
434       encoding, possibly the user's default encoding, or an encoding associated
435       with the user's current geographical location, or any arbitrary encoding
436       name.
437    #ja
438    <dfn id=dom-document-defaultcharset
439       title=dom-document-defaultCharset><code>defaultCharset</code></dfn>
440    DOM 属性は、取得時、文字符号化の優先 MIME 名を返さなければ[[MUST:なりません]]。
441    この文字符号化は利用者の既定の符号化でもいいですし、
442    利用者の現在の地理的位置に関連付けられた符号化でもいいですし、
443    その他任意の符号化名でもあり得ます。
444    
445    #pattern
446    <span class=secno>* </span><dfn>DOM tree
447       accessors</dfn>
448    #ja
449    <span class=secno>$1 </span><dfn>DOM 木アクセス器</dfn>
450    
451    #en
452    <dfn id=the-html-element-0>The <code>html</code> element</dfn> of a document is
453       the document's root element, if there is one and it's an <code><a
454       href=#the-html-element>html</a></code> element, or null otherwise.
455    #ja
456    文書の<dfn id=the-html-element-0>文書 <code>html</code> 要素</dfn>は、
457    その文書の根要素があり、それが <code><a
458       href=#the-html-element>html</a></code> 要素である場合はその要素、それ以外の場合には
459    null です。
460    
461    #en
462    <dfn id=the-head-element-0>The <code>head</code> element</dfn> of a document is
463       the first <code><a href=#the-head-element>head</a></code> element that is a child of
464       <a href=#the-html-element-0>the <code>html</code> element</a>, if there is one,
465       or null otherwise.
466    #ja
467    文書の<dfn id=the-head-element-0>文書 <code>head</code> 要素</dfn>は、
468    <a href=#the-html-element-0>文書 <code>html</code> 要素</a>の子供である最初の
469    <code><a href=#the-head-element>head</a></code> 要素がある場合はその要素、
470    そうでない場合は null です。
471    
472    
473    #en
474    <dfn id=the-title-element-0>The <code>title</code> element</dfn> of a document is
475       the first <code><a href=#the-title-element>title</a></code> element in the document
476       (in tree order), if there is one, or null otherwise.
477    #ja
478    文書の<dfn id=the-title-element-0>文書 <code>title</code> 要素</dfn>は文書の (木順で)
479    最初の <code><a href=#the-title-element>title</a></code> 要素がある場合はその要素、
480    そうでない場合は null です。
481    
482    #en
483    The <dfn id=document.title
484       title=dom-document-title><code>title</code></dfn> attribute must, on
485       getting, run the following algorithm:
486    #ja
487    <dfn id=document.title
488       title=dom-document-title><code>title</code></dfn> 属性は、
489    取得時、次の算法を走らせなければ[[MUST:なりません]]。
490    
491    #en
492    If the <a href=#root-element>root element</a> is an <code>svg</code>
493         element in the "<code title="">http://www.w3.org/2000/svg</code>"
494         namespace, and the user agent supports SVG, then the getter must return
495         the value that would have been returned by the DOM attribute of the same
496         name on the <code>SVGDocument</code> interface.
497    #ja
498    <a href=#root-element>根要素</a>が
499    「<code title="">http://www.w3.org/2000/svg</code>」名前空間の <code>svg</code>
500    要素であり、利用者エージェントが SVG に対応している場合、取得器は <code>SVGDocument</code>
501    界面の同名の DOM 属性が返す値を返さなければ[[MUST:なりません]]。
502    
503    
504    #en
505    Otherwise, it must return a concatenation of the data of all the child
506         <a href=#text-node title="text node">text nodes</a> of <a
507         href=#the-title-element-0>the <code>title</code> element</a>, in tree order, or
508         the empty string if <a href=#the-title-element-0>the <code>title</code>
509         element</a> is null.
510    #ja
511    そうでない場合、<a
512         href=#the-title-element-0>文書 <code>title</code> 要素</a>のすべての子供<a href=#text-node title="text node">テキスト節点</a>のデータを木順に連結したものを返すか、
513    <a
514         href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
515    の場合には殻文字列を返さなければ[[MUST:なりません]]。
516    
517    #en
518    On setting, the following algorithm must be run:
519    #ja
520    設定時、次の算法を走らせなければ[[MUST:なりません]]。
521    
522    #en
523    If the <a href=#root-element>root element</a> is an <code>svg</code>
524         element in the "<code title="">http://www.w3.org/2000/svg</code>"
525         namespace, and the user agent supports SVG, then the setter must defer
526         to the setter for the DOM attribute of the same name on the
527         <code>SVGDocument</code> interface (if it is readonly, then this will
528         raise an exception). Stop the algorithm here.
529    #ja
530    <a href=#root-element>根要素</a>が
531    「<code title="">http://www.w3.org/2000/svg</code>」名前空間の
532    <code>svg</code> 要素で利用者エージェントが SVG に対応している場合、
533    設定器は <code>SVGDocument</code> 界面の同名の DOM 属性の設定器に委ねなければ[[MUST:なりません]]
534    (それが読み取り専用である場合、例外を発生させることとなります)。算法をここで停止します。
535    
536    #en
537    If <a href=#the-title-element-0>the <code>title</code> element</a> is null
538        and <a href=#the-head-element-0>the <code>head</code> element</a> is null, then
539        the attribute must do nothing. Stop the algorithm here.
540    #ja
541    <a href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
542    で<a href=#the-head-element-0>文書 <code>head</code> 要素</a>が null
543    の場合、属性は何もしては[[MUST:なりません]]。算法をここで停止します。
544    
545    #en
546    If <a href=#the-title-element-0>the <code>title</code> element</a> is null,
547        then a new <code><a href=#the-title-element>title</a></code> element must be
548        created and appended to <a href=#the-head-element-0>the <code>head</code>
549        element</a>.
550    #ja
551    <a href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
552    の場合、新しい <code><a href=#the-title-element>title</a></code> 要素を作成し、
553    <a href=#the-head-element-0>文書 <code>head</code>
554        要素</a>の最後に追加しなければ[[MUST:なりません]]。
555    
556    #en
557    The children of <a href=#the-title-element-0>the <code>title</code>
558        element</a> (if any) must all be removed.
559    #ja
560    <a href=#the-title-element-0>文書 <code>title</code>
561        要素</a>の子供を (あれば) すべて削除しなければ[[MUST:なりません]]。
562    
563    #en
564    A single <code>Text</code> node whose data is the new value being
565        assigned must be appended to <a href=#the-title-element-0>the <code>title</code>
566        element</a>.
567    #ja
568    データが指定された新しい値である1つの <code>Text</code> 節点を
569    <a href=#the-title-element-0>文書 <code>title</code>
570        要素</a>の最後に追加しなければ[[MUST:なりません]]。
571    
572    #en
573    The <code title=dom-document-title><a
574       href=#document.title>title</a></code> attribute on the <code><a
575       href=#htmldocument>HTMLDocument</a></code> interface should shadow the
576       attribute of the same name on the <code>SVGDocument</code> interface when
577       the user agent supports both HTML and SVG.
578    #ja
579    利用者エージェントが HTML と SVG の両方に対応する時には、
580    <code><a
581       href=#htmldocument>HTMLDocument</a></code> 界面の
582    <code title=dom-document-title><a
583       href=#document.title>title</a></code> 属性が
584    <code>SVGDocument</code> 界面の同名の属性を隠す[[SHOULD:べきです]]。
585    
586    #en
587    Documents have an associated <dfn id="document's-character-encoding" title="document's character
588      encoding">character encoding</dfn>. When a <code>Document</code>
589      object is created, the <a href="#document's-character-encoding">document's character encoding</a>
590      must be initialized to UTF-16. Various algorithms during page
591      loading affect this value, as does the <code title=dom-document-charset><a href=#dom-document-charset>charset</a></code> setter.  <a href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
592      http://www.iana.org/assignments/character-sets -->
593    #ja
594    文書には、それに関連付けられた<dfn id="document's-character-encoding" title="document's character
595      encoding">文字符号化</dfn>があります。
596    <code>Document</code> オブジェクトが作られた時、
597    <a href="#document's-character-encoding">文書の文字符号化</a>は UTF-16
598    に初期化されなければ[[MUST:なりません]]。
599    頁の読み込みの過程の色々な算法や
600    <code title=dom-document-charset><a href=#dom-document-charset>charset</a></code>
601    設定器がこの値に影響します。
602    <a href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
603      http://www.iana.org/assignments/character-sets -->
604    
605    #en
606    The <dfn id=dom-document-charset title=dom-document-charset><code>charset</code></dfn>
607      DOM attribute must, on getting, return the preferred MIME name of
608      the <a href="#document's-character-encoding">document's character encoding</a>. On setting, if the
609      new value is an IANA-registered alias for a character encoding, the
610      <a href="#document's-character-encoding">document's character encoding</a> must be set to that
611      character encoding. (Otherwise, nothing happens.)
612    #ja
613    <dfn id=dom-document-charset title=dom-document-charset><code>charset</code></dfn>
614    DOM 属性は、取得時、<a href="#document's-character-encoding">文書の文字符号化</a>の優先
615    MIME 名を返さなければ[[MUST:なりません]]。
616    設定時、新しい値が文字符号化の IANA に登録された別名である場合、
617      <a href="#document's-character-encoding">文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。
618    (そうでない場合、何も起こりません。)
619    
620    
621    #en
622    The <dfn id=dom-document-characterset title=dom-document-characterSet><code>characterSet</code></dfn>
623      DOM attribute must, on getting, return the preferred MIME name of
624      the <a href="#document's-character-encoding">document's character encoding</a>.
625    #ja
626    <dfn id=dom-document-characterset title=dom-document-characterSet><code>characterSet</code></dfn>
627    DOM 属性は、取得時、<a href="#document's-character-encoding">文書の文字符号化</a>の優先
628    MIME 名を返さなければ[[MUST:なりません]]。
629    
630    #en
631    <dfn id=the-body-element-1>The body element</dfn> of a document is the first child of
632      <a href=#the-html-element-0>the <code>html</code> element</a> that is either a
633      <code><a href=#the-body-element>body</a></code> element or a <code>frameset</code> element. If
634      there is no such element, it is null. If the body element is null,
635      then when the specification requires that events be fired at "the
636      body element", they must instead be fired at the
637      <code>Document</code> object.
638    #ja
639    文書の<dfn id=the-body-element-1>文書 body 要素</dfn>は、
640    <a href=#the-html-element-0>文書 <code>html</code> 要素</a>の最初の子供であって、
641    <code><a href=#the-body-element>body</a></code> 要素か <code>frameset</code>
642    要素のいずれかであるものです。そのような要素がない場合、 null です。
643    文書 body 要素が null の場合、仕様書により事象が「文書 body 要素」において発火されることが要求される時、
644    その事象は代わりに
645      <code>Document</code> オブジェクトにおいて発火されなければ[[MUST:なりません]]。
646    
647    #en
648    The <dfn id=dom-document-body title=dom-document-body><code>body</code></dfn>
649      attribute, on getting, must return <a href=#the-body-element-1>the body element</a> of
650      the document (either a <code><a href=#the-body-element>body</a></code> element, a
651      <code>frameset</code> element, or null). On setting, the following
652      algorithm must be run:
653    #ja
654    <dfn id=dom-document-body title=dom-document-body><code>body</code></dfn>
655    属性は、取得時、文書の<a href=#the-body-element-1>文書 body 要素</a>
656    (<code><a href=#the-body-element>body</a></code> 要素か、
657      <code>frameset</code> 要素か、 null のいずれか) を返さなければ[[MUST:なりません]]。
658    設定時、次の算法を走らせなければ[[MUST:なりません]]。
659    
660    #en
661    If the new value is not a <code><a href=#the-body-element>body</a></code> or
662       <code>frameset</code> element, then raise a
663       <code>HIERARCHY_REQUEST_ERR</code> exception and abort these
664       steps.
665    #ja
666    新しい値が <code><a href=#the-body-element>body</a></code> 要素か
667       <code>frameset</code> 要素でない場合、
668       <code>HIERARCHY_REQUEST_ERR</code> 例外を発生させ、
669    これらの段階を停止します。
670    
671    #en
672    Otherwise, if the new value is the same as <a href=#the-body-element-1>the body
673       element</a>, do nothing. Abort these steps.
674    #ja
675    そうでない場合、新しい値が<a href=#the-body-element-1>文書 body
676    要素</a>と同じであれば、なにもしません。これらの段階を停止します。
677    
678    #en
679    Otherwise, if <a href=#the-body-element-1>the body element</a> is not null, then
680       replace that element with the new value in the DOM, as if the root
681       element's <code title="">replaceChild()</code> method had been
682       called with the new value and <a href=#the-body-element-1 title="the body element">the
683       incumbent body element</a> as its two arguments respectively,
684       then abort these steps.
685    #ja
686    そうでない場合、<a href=#the-body-element-1>文書 body
687    要素</a>が null でなければ、根要素の <code title="">replaceChild()</code>
688    メソッドに新しい値と<a href=#the-body-element-1 title="the body element">現行の文書
689       body 要素</a>をそれぞれ2つの引数として呼び出した場合と同様にして、
690    DOM 中のその要素を新しい値により置き換え、
691    これらの段階を停止します。

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.64

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24