/[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.52 by apache, Wed Aug 20 16:26:55 2008 UTC revision 1.71 by apache, Sat Oct 25 13:36:06 2008 UTC
# Line 11  Line 11 
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
# Line 24  HTML 利用者エージェントにお� Line 24  HTML 利用者エージェントにお�
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    
# Line 189  Typically user agents are configured to Line 189  Typically user agents are configured to
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  頭部がある応答を受信した場合にクッキーを処理する時と同じように、  頭部がある応答を受信した場合にクッキーを処理する時と同じように、
242  RFC 2109 4.3.1 節、4.3.2 節、4.3.3. 節やより新しい仕様書に従い作用しなければ[[MUST:なりません]]。 <a href="#refsRFC2109">[RFC2109]</a> <a  RFC 2109 4.3.1 節、4.3.2 節、4.3.3. 節やより新しい仕様書に従い作用しなければ[[MUST:なりません]]。 <a href=#refsRFC2109>[RFC2109]</a> <a
243     href="#refsRFC2965">[RFC2965]</a>     href=#refsRFC2965>[RFC2965]</a>
244    
245  #en  #en
246  Since the <code title=dom-document-cookie><a  Since the <code title=dom-document-cookie><a
247     href="#cookie0">cookie</a></code> attribute is accessible across frames,     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     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     cookies are sent to which parts of the site, and are not in any way a
250     security feature.     security feature.
251  #ja  #ja
252  <code title=dom-document-cookie><a  <code title=dom-document-cookie><a
253     href="#cookie0">cookie</a></code> 属性はフレームをまたいでアクセス可能ですので、     href=#dom-document-cookie>cookie</a></code> 属性はフレームをまたいでアクセス可能ですので、
254  クッキーの経路制限はクッキーがサイト上のどの部分に送られるかを管理することを助けるための道具に過ぎず、  クッキーの経路制限はクッキーがサイト上のどの部分に送られるかを管理することを助けるための道具に過ぎず、
255  保安性のための機能では決してありません。  保安性のための機能では決してありません。
256    
257  #en  #en
258  The <dfn id=lastmodified  The <dfn id=dom-document-lastmodified
259     title=dom-document-lastModified><code>lastModified</code></dfn> attribute,     title=dom-document-lastModified><code>lastModified</code></dfn> attribute,
260     on getting, must return the date and time of the <code>Document</code>'s     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     source file's last modification, in the user's local timezone, in the
262     following format:     following format:
263  #ja  #ja
264  <dfn id=lastmodified  <dfn id=dom-document-lastmodified
265     title=dom-document-lastModified><code>lastModified</code></dfn>     title=dom-document-lastModified><code>lastModified</code></dfn>
266  属性は、取得時、 <code>Document</code> の原始ファイルの最終修正の日時を、  属性は、取得時、 <code>Document</code> の原始ファイルの最終修正の日時を、
267  利用者の地方時において、次の書式で返さなければ[[MUST:なりません]]。  利用者の地方時において、次の書式で返さなければ[[MUST:なりません]]。
# Line 348  The <code>Document</code>'s source file' Line 348  The <code>Document</code>'s source file'
348    
349  #en  #en
350  A <code>Document</code> is always set to one of three modes: <dfn  A <code>Document</code> is always set to one of three modes: <dfn
351     id=no-quirks>no quirks mode</dfn>, the default; <dfn id=quirks>quirks     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     mode</dfn>, used typically for legacy documents; and <dfn
353     id=limited1>limited quirks mode</dfn>, also known as "almost standards"     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     mode. The mode is only ever changed from the default by the <a
355     href="#html-0">HTML parser</a>, based on the presence, absence, or value     href=#html-parser>HTML parser</a>, based on the presence, absence, or value
356     of the DOCTYPE string.     of the DOCTYPE string.
357  #ja  #ja
358  <code>Document</code> は常に3つのモードのいずれかに設定されています。<dfn  <code>Document</code> は常に3つのモードのいずれかに設定されています。<dfn
359     id=no-quirks>無奇癖モード</dfn>は既定値です。<dfn id=quirks>奇癖モード</dfn>は、     id=no-quirks-mode>無奇癖モード</dfn>は既定値です。<dfn id=quirks-mode>奇癖モード</dfn>は、
360  普通、遺物文書に使われます。<dfn  普通、遺物文書に使われます。<dfn
361     id=limited1>制限奇癖モード</dfn>は、「ほぼ標準」モードとも呼ばれます。     id=limited-quirks-mode>制限奇癖モード</dfn>は、「ほぼ標準」モードとも呼ばれます。
362  このモードは  このモードは
363  <a  <a
364     href="#html-0">HTML 構文解析器</a>によってのみ、     href=#html-parser>HTML 構文解析器</a>によってのみ、
365  DOCTYPE 文字列が存在するか存在しないかやその値に基づいて既定値から変更されます。  DOCTYPE 文字列が存在するか存在しないかやその値に基づいて既定値から変更されます。
366    
367  #en  #en
368  The <dfn id=compatmode  The <dfn id=dom-document-compatmode
369     title=dom-document-compatMode><code>compatMode</code></dfn> DOM attribute     title=dom-document-compatMode><code>compatMode</code></dfn> DOM attribute
370     must return the literal string "<code title="">CSS1Compat</code>" unless     must return the literal string "<code title="">CSS1Compat</code>" unless
371     the document has been set to <a href="#quirks">quirks mode</a> by the <a     the document has been set to <a href=#quirks-mode>quirks mode</a> by the <a
372     href="#html-0">HTML parser</a>, in which case it must instead return the     href=#html-parser>HTML parser</a>, in which case it must instead return the
373     literal string "<code title="">BackCompat</code>".     literal string "<code title="">BackCompat</code>".
374  #ja  #ja
375  <dfn id=compatmode  <dfn id=dom-document-compatmode
376     title=dom-document-compatMode><code>compatMode</code></dfn> DOM     title=dom-document-compatMode><code>compatMode</code></dfn> DOM
377  属性は、生の文字列「<code title="">CSS1Compat</code>」を返さなければ[[MUST:なりません]]。  属性は、生の文字列「<code title="">CSS1Compat</code>」を返さなければ[[MUST:なりません]]。
378  ただし、文書が <a  ただし、文書が <a
379     href="#html-0">HTML 構文解析器</a>により<a href="#quirks">奇癖モード</a>に設定されている場合には、     href=#html-parser>HTML 構文解析器</a>により<a href=#quirks-mode>奇癖モード</a>に設定されている場合には、
380  代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。  代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。
381    
382  #en  #en
383  Documents have an associated <dfn id=character3 title="document's  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>     character encoding">character encoding</dfn>. When a <code>Document</code>
385     object is created, the <a href="#character3">document's character     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     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     loading affect this value, as does the <code title=dom-document-charset><a
388     href="#charset0">charset</a></code> setter. <a     href=#dom-document-charset>charset</a></code> setter. <a
389     href="#refsIANACHARSET">[IANACHARSET]</a> <!-- XXX     href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
390    http://www.iana.org/assignments/character-sets -->    http://www.iana.org/assignments/character-sets -->
391  #ja  #ja
392  文書は<dfn id=character3 title="document's  文書は<dfn id=character-reference-in-attribute-value-state title="document's
393     character encoding">文字符号化</dfn>と関連付けられています。     character encoding">文字符号化</dfn>と関連付けられています。
394  <code>Document</code> オブジェクトが作成された時、<a href="#character3">文書の文字符号化</a>は  <code>Document</code> オブジェクトが作成された時、<a href=#character-reference-in-attribute-value-state>文書の文字符号化</a>は
395  UTF-16 に初期化されなければ[[MUST:なりません]]。  UTF-16 に初期化されなければ[[MUST:なりません]]。
396  頁の読み込みの間の色々な算法や <code title=dom-document-charset><a  頁の読み込みの間の色々な算法や <code title=dom-document-charset><a
397     href="#charset0">charset</a></code> 設定子がこの値を変化させます。 <a     href=#dom-document-charset>charset</a></code> 設定子がこの値を変化させます。 <a
398     href="#refsIANACHARSET">[IANACHARSET]</a> <!-- XXX     href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
399    http://www.iana.org/assignments/character-sets -->    http://www.iana.org/assignments/character-sets -->
400    
401  #en  #en
402  The <dfn id=charset0  The <dfn id=dom-document-charset
403     title=dom-document-charset><code>charset</code></dfn> DOM attribute must,     title=dom-document-charset><code>charset</code></dfn> DOM attribute must,
404     on getting, return the preferred MIME name of the <a     on getting, return the preferred MIME name of the <a
405     href="#character3">document's character encoding</a>. On setting, if the     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     new value is an IANA-registered alias for a character encoding, the <a
407     href="#character3">document's character encoding</a> must be set to that     href=#character-reference-in-attribute-value-state>document's character encoding</a> must be set to that
408     character encoding. (Otherwise, nothing happens.)     character encoding. (Otherwise, nothing happens.)
409  #ja  #ja
410  <dfn id=charset0  <dfn id=dom-document-charset
411     title=dom-document-charset><code>charset</code></dfn> DOM     title=dom-document-charset><code>charset</code></dfn> DOM
412  属性は、取得時、<a  属性は、取得時、<a
413     href="#character3">文書の文字符号化</a>の優先 MIME     href=#character-reference-in-attribute-value-state>文書の文字符号化</a>の優先 MIME
414  名を返さなければ[[MUST:なりません]]。設定時、  名を返さなければ[[MUST:なりません]]。設定時、
415  新しい値がある文字符号化の IANA に登録された別名である場合、<a  新しい値がある文字符号化の IANA に登録された別名である場合、<a
416     href="#character3">文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。     href=#character-reference-in-attribute-value-state>文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。
417  (それ以外の場合、何も起きません。)  (それ以外の場合、何も起きません。)
418    
419  #en  #en
420  The <dfn id=characterset  The <dfn id=dom-document-characterset
421     title=dom-document-characterSet><code>characterSet</code></dfn> DOM     title=dom-document-characterSet><code>characterSet</code></dfn> DOM
422     attribute must, on getting, return the preferred MIME name of the <a     attribute must, on getting, return the preferred MIME name of the <a
423     href="#character3">document's character encoding</a>.     href=#character-reference-in-attribute-value-state>document's character encoding</a>.
424  #ja  #ja
425  <dfn id=characterset  <dfn id=dom-document-characterset
426     title=dom-document-characterSet><code>characterSet</code></dfn> DOM     title=dom-document-characterSet><code>characterSet</code></dfn> DOM
427  属性は、取得時、<a  属性は、取得時、<a
428     href="#character3">文書の文字符号化</a>の優先 MIME 名を返さなければ[[MUST:なりません]]。     href=#character-reference-in-attribute-value-state>文書の文字符号化</a>の優先 MIME 名を返さなければ[[MUST:なりません]]。
429    
430  #en  #en
431  The <dfn id=defaultcharset  The <dfn id=dom-document-defaultcharset
432     title=dom-document-defaultCharset><code>defaultCharset</code></dfn> DOM     title=dom-document-defaultCharset><code>defaultCharset</code></dfn> DOM
433     attribute must, on getting, return the preferred MIME name of a character     attribute must, on getting, return the preferred MIME name of a character
434     encoding, possibly the user's default encoding, or an encoding associated     encoding, possibly the user's default encoding, or an encoding associated
435     with the user's current geographical location, or any arbitrary encoding     with the user's current geographical location, or any arbitrary encoding
436     name.     name.
437  #ja  #ja
438  <dfn id=defaultcharset  <dfn id=dom-document-defaultcharset
439     title=dom-document-defaultCharset><code>defaultCharset</code></dfn>     title=dom-document-defaultCharset><code>defaultCharset</code></dfn>
440  DOM 属性は、取得時、文字符号化の優先 MIME 名を返さなければ[[MUST:なりません]]。  DOM 属性は、取得時、文字符号化の優先 MIME 名を返さなければ[[MUST:なりません]]。
441  この文字符号化は利用者の既定の符号化でもいいですし、  この文字符号化は利用者の既定の符号化でもいいですし、
# Line 443  DOM 属性は、取得時、文字符号 Line 443  DOM 属性は、取得時、文字符号
443  その他任意の符号化名でもあり得ます。  その他任意の符号化名でもあり得ます。
444    
445  #pattern  #pattern
446  <span class=secno>* </span><dfn id=dom-tree0>DOM tree  <span class=secno>* </span><dfn>DOM tree
447     accessors</dfn>     accessors</dfn>
448  #ja  #ja
449  <span class=secno>$1 </span><dfn id=dom-tree0>DOM 木アクセス器</dfn>  <span class=secno>$1 </span><dfn>DOM 木アクセス器</dfn>
450    
451  #en  #en
452  <dfn id=the-html0>The <code>html</code> element</dfn> of a document is  <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     the document's root element, if there is one and it's an <code><a
454     href="#html">html</a></code> element, or null otherwise.     href=#the-html-element>html</a></code> element, or null otherwise.
455  #ja  #ja
456  文書の<dfn id=the-html0>文書 <code>html</code> 要素</dfn>は、  文書の<dfn id=the-html-element-0>文書 <code>html</code> 要素</dfn>は、
457  その文書の根要素があり、それが <code><a  その文書の根要素があり、それが <code><a
458     href="#html">html</a></code> 要素である場合はその要素、それ以外の場合には     href=#the-html-element>html</a></code> 要素である場合はその要素、それ以外の場合には
459  null です。  null です。
460    
461  #en  #en
462  <dfn id=the-head0>The <code>head</code> element</dfn> of a document is  <dfn id=the-head-element-0>The <code>head</code> element</dfn> of a document is
463     the first <code><a href="#head">head</a></code> element that is a child of     the first <code><a href=#the-head-element>head</a></code> element that is a child of
464     <a href="#the-html0">the <code>html</code> element</a>, if there is one,     <a href=#the-html-element-0>the <code>html</code> element</a>, if there is one,
465     or null otherwise.     or null otherwise.
466  #ja  #ja
467  文書の<dfn id=the-head0>文書 <code>head</code> 要素</dfn>は、  文書の<dfn id=the-head-element-0>文書 <code>head</code> 要素</dfn>は、
468  <a href="#the-html0">文書 <code>html</code> 要素</a>の子供である最初の  <a href=#the-html-element-0>文書 <code>html</code> 要素</a>の子供である最初の
469  <code><a href="#head">head</a></code> 要素がある場合はその要素、  <code><a href=#the-head-element>head</a></code> 要素がある場合はその要素、
470  そうでない場合は null です。  そうでない場合は null です。
471    
472    
473  #en  #en
474  <dfn id=the-title1>The <code>title</code> element</dfn> of a document is  <dfn id=the-title-element-0>The <code>title</code> element</dfn> of a document is
475     the first <code><a href="#title1">title</a></code> element in the document     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.     (in tree order), if there is one, or null otherwise.
477  #ja  #ja
478  文書の<dfn id=the-title1>文書 <code>title</code> 要素</dfn>は文書の (木順で)  文書の<dfn id=the-title-element-0>文書 <code>title</code> 要素</dfn>は文書の (木順で)
479  最初の <code><a href="#title1">title</a></code> 要素がある場合はその要素、  最初の <code><a href=#the-title-element>title</a></code> 要素がある場合はその要素、
480  そうでない場合は null です。  そうでない場合は null です。
481    
482  #en  #en
# Line 489  The <dfn id=document.title Line 489  The <dfn id=document.title
489  取得時、次の算法を走らせなければ[[MUST:なりません]]。  取得時、次の算法を走らせなければ[[MUST:なりません]]。
490    
491  #en  #en
492  If the <a href="#root-element">root element</a> is an <code>svg</code>  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>"       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       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       the value that would have been returned by the DOM attribute of the same
496       name on the <code>SVGDocument</code> interface.       name on the <code>SVGDocument</code> interface.
497  #ja  #ja
498  <a href="#root-element">根要素</a>が  <a href=#root-element>根要素</a>が
499  「<code title="">http://www.w3.org/2000/svg</code>」名前空間の <code>svg</code>  「<code title="">http://www.w3.org/2000/svg</code>」名前空間の <code>svg</code>
500  要素であり、利用者エージェントが SVG に対応している場合、取得器は <code>SVGDocument</code>  要素であり、利用者エージェントが SVG に対応している場合、取得器は <code>SVGDocument</code>
501  界面の同名の DOM 属性が返す値を返さなければ[[MUST:なりません]]。  界面の同名の DOM 属性が返す値を返さなければ[[MUST:なりません]]。
# Line 503  If the <a href="#root-element">root elem Line 503  If the <a href="#root-element">root elem
503    
504  #en  #en
505  Otherwise, it must return a concatenation of the data of all the child  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       <a href=#text-node title="text node">text nodes</a> of <a
507       href="#the-title1">the <code>title</code> element</a>, in tree order, or       href=#the-title-element-0>the <code>title</code> element</a>, in tree order, or
508       the empty string if <a href="#the-title1">the <code>title</code>       the empty string if <a href=#the-title-element-0>the <code>title</code>
509       element</a> is null.       element</a> is null.
510  #ja  #ja
511  そうでない場合、<a  そうでない場合、<a
512       href="#the-title1">文書 <code>title</code> 要素</a>のすべての子供<a href="#text-node" title="text node">テキスト節点</a>のデータを木順に連結したものを返すか、       href=#the-title-element-0>文書 <code>title</code> 要素</a>のすべての子供<a href=#text-node title="text node">テキスト節点</a>のデータを木順に連結したものを返すか、
513  <a  <a
514       href="#the-title1">文書 <code>title</code> 要素</a>が null       href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
515  の場合には殻文字列を返さなければ[[MUST:なりません]]。  の場合には殻文字列を返さなければ[[MUST:なりません]]。
516    
517  #en  #en
# Line 520  On setting, the following algorithm must Line 520  On setting, the following algorithm must
520  設定時、次の算法を走らせなければ[[MUST:なりません]]。  設定時、次の算法を走らせなければ[[MUST:なりません]]。
521    
522  #en  #en
523  If the <a href="#root-element">root element</a> is an <code>svg</code>  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>"       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       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       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       <code>SVGDocument</code> interface (if it is readonly, then this will
528       raise an exception). Stop the algorithm here.       raise an exception). Stop the algorithm here.
529  #ja  #ja
530  <a href="#root-element">根要素</a>が  <a href=#root-element>根要素</a>が
531  「<code title="">http://www.w3.org/2000/svg</code>」名前空間の  「<code title="">http://www.w3.org/2000/svg</code>」名前空間の
532  <code>svg</code> 要素で利用者エージェントが SVG に対応している場合、  <code>svg</code> 要素で利用者エージェントが SVG に対応している場合、
533  設定器は <code>SVGDocument</code> 界面の同名の DOM 属性の設定器に委ねなければ[[MUST:なりません]]  設定器は <code>SVGDocument</code> 界面の同名の DOM 属性の設定器に委ねなければ[[MUST:なりません]]
534  (それが読み取り専用である場合、例外を発生させることとなります)。算法をここで停止します。  (それが読み取り専用である場合、例外を発生させることとなります)。算法をここで停止します。
535    
536  #en  #en
537  If <a href="#the-title1">the <code>title</code> element</a> is null  If <a href=#the-title-element-0>the <code>title</code> element</a> is null
538      and <a href="#the-head0">the <code>head</code> element</a> is null, then      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.      the attribute must do nothing. Stop the algorithm here.
540  #ja  #ja
541  <a href="#the-title1">文書 <code>title</code> 要素</a>が null  <a href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
542  で<a href="#the-head0">文書 <code>head</code> 要素</a>が null  で<a href=#the-head-element-0>文書 <code>head</code> 要素</a>が null
543  の場合、属性は何もしては[[MUST:なりません]]。算法をここで停止します。  の場合、属性は何もしては[[MUST:なりません]]。算法をここで停止します。
544    
545  #en  #en
546  If <a href="#the-title1">the <code>title</code> element</a> is null,  If <a href=#the-title-element-0>the <code>title</code> element</a> is null,
547      then a new <code><a href="#title1">title</a></code> element must be      then a new <code><a href=#the-title-element>title</a></code> element must be
548      created and appended to <a href="#the-head0">the <code>head</code>      created and appended to <a href=#the-head-element-0>the <code>head</code>
549      element</a>.      element</a>.
550  #ja  #ja
 <a href="#the-title1">文書 <code>title</code> 要素</a>が null  
 の場合、新しい <code><a href="#title1">title</a></code> 要素を作成し、  
 <a href="#the-head0">文書 <code>head</code>  
     要素</a>の最後に追加しなければ[[MUST:なりません]]。  
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    これらの段階を停止します。
692    
693    #en
694    Otherwise, the <a href=#the-body-element-1>the body element</a> is null. Append
695       the new value to the root element.
696    #ja
697    そうでない場合、<a href=#the-body-element-1>文書 body
698    要素</a>は null です。新しい値を根要素の末尾に追加します。
699    
700    #en
701    The <dfn id=dom-document-images title=dom-document-images><code>images</code></dfn>
702      attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the
703      <code>Document</code> node, whose filter matches only
704      <code><a href=#the-img-element>img</a></code> elements.
705    #ja
706    <dfn id=dom-document-images title=dom-document-images><code>images</code></dfn>
707    属性は、 <code>Document</code> 節点を根とする、
708    濾過器が <code><a href=#the-img-element>img</a></code> 要素にのみ一致するような
709    <code><a href=#htmlcollection-0>HTMLCollection</a></code>
710    を返さなければ[[MUST:なりません]]。
711    
712    #en
713    The <dfn id=dom-document-embeds title=dom-document-embeds><code>embeds</code></dfn>
714      attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the
715      <code>Document</code> node, whose filter matches only
716      <code><a href=#the-embed-element>embed</a></code> elements.
717    #ja
718    <dfn id=dom-document-embeds title=dom-document-embeds><code>embeds</code></dfn>
719    属性は、 <code>Document</code> 節点を根とする、
720    濾過器が <code><a href=#the-img-element>embed</a></code> 要素にのみ一致するような
721    <code><a href=#htmlcollection-0>HTMLCollection</a></code>
722    を返さなければ[[MUST:なりません]]。
723    
724    #en
725    The <dfn id=dom-document-plugins title=dom-document-plugins><code>plugins</code></dfn>
726      attribute must return the same object as that returned by the <code title=dom-document-embeds><a href=#dom-document-embeds>embeds</a></code> attribute.
727    #ja
728    <dfn id=dom-document-plugins title=dom-document-plugins><code>plugins</code></dfn>
729    属性は、 <code title=dom-document-embeds><a href=#dom-document-embeds>embeds</a></code>
730    属性が返すのと同じオブジェクトを返さなければ[[MUST:なりません]]。
731    
732    #en
733    The <dfn id=dom-document-links title=dom-document-links><code>links</code></dfn>
734      attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the
735      <code>Document</code> node, whose filter matches only <code><a href=#the-a-element>a</a></code>
736      elements with <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code>
737      attributes and <code><a href=#the-area-element>area</a></code> elements with <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attributes.
738    #ja
739    <dfn id=dom-document-links title=dom-document-links><code>links</code></dfn>
740    属性は、<code>Document</code> 節点を根とする、
741    濾過器が <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code>
742    属性を持つ <code><a href=#the-a-element>a</a></code> 要素と
743    <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code>
744    属性を持つ <code><a href=#the-area-element>area</a></code> 要素にのみ一致するような
745    <code><a href=#htmlcollection-0>HTMLCollection</a></code>
746    を返さなければ[[MUST:なりません]]。
747    
748    #en
749    The <dfn id=dom-document-forms title=dom-document-forms><code>forms</code></dfn>
750      attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the
751      <code>Document</code> node, whose filter matches only
752      <code><a href=#the-form-element>form</a></code> elements.
753    #ja
754    <dfn id=dom-document-forms title=dom-document-forms><code>forms</code></dfn>
755    属性は、<code>Document</code> 節点を根とする、
756    濾過器が <code><a href=#the-form-element>form</a></code> 要素にのみ一致するような
757    <code><a href=#htmlcollection-0>HTMLCollection</a></code>
758    を返さなければ[[MUST:なりません]]。
759    
760    #en
761    The <dfn id=dom-document-anchors title=dom-document-anchors><code>anchors</code></dfn>
762      attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the
763      <code>Document</code> node, whose filter matches only <code><a href=#the-a-element>a</a></code>
764      elements with <code title=attr-a-name>name</code> attributes.
765    #ja
766    <dfn id=dom-document-anchors title=dom-document-anchors><code>anchors</code></dfn>
767    属性は、<code>Document</code> 節点を根とする、
768    濾過器が <code title=attr-a-name>name</code> 属性を持つ
769    <code><a href=#the-a-element>a</a></code>
770    要素にのみ一致するような
771    <code><a href=#htmlcollection-0>HTMLCollection</a></code>
772    を返さなければ[[MUST:なりません]]。

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.71

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24