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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.71 - (hide annotations) (download)
Sat Oct 25 13:36:06 2008 UTC (17 years, 8 months ago) by apache
Branch: MAIN
Changes since 1.70: +14 -0 lines
by remote user 'guest'

1 apache 1.4 #pattern
2 apache 1.2 <span class=secno>* </span>Semantics and structure of HTML
3 apache 1.4 documents
4     #ja
5     <span class=secno>$1 </span>HTML 文書の意味と構造
6    
7     #pattern
8     <span class=secno>* </span>Documents
9     #ja
10 apache 1.26 <span class=secno>$1 </span>文書
11    
12     #en
13 apache 1.5 Every XML and HTML document in an HTML UA is represented by a
14 wakaba 1.56 <code>Document</code> object. <a href=#refsDOM3CORE>[DOM3CORE]</a>
15 apache 1.26 #ja
16 apache 1.5 HTML 利用者エージェントにおけるすべての XML や HTML の文書は
17 wakaba 1.56 <code>Document</code> オブジェクトにより表現されます。 <a href=#refsDOM3CORE>[DOM3CORE]</a>
18 apache 1.26
19     #pattern
20     <span class=secno>* </span>Documents in the DOM
21     #ja
22     <span class=secno>$1 </span>DOM 中の文書
23    
24     #en
25 apache 1.7 <code>Document</code> objects are assumed to be <dfn
26     id=xml-documents>XML documents</dfn> unless they are flagged as being <dfn
27 wakaba 1.56 id=html-documents>HTML documents</dfn> when they are created. Whether a document is
28     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
30 apache 1.7 behavior of certain APIs, as well as a few CSS rendering rules. <a
31 wakaba 1.56 href=#refsCSS21>[CSS21]</a>
32 apache 1.26 #ja
33 apache 1.7 <code>Document</code> オブジェクトは、作成された時に
34     <dfn
35 wakaba 1.56 id=html-documents>HTML 文書</dfn>であると旗付けされていなければ、 <dfn
36 apache 1.7 id=xml-documents>XML 文書</dfn>であると見なします。
37 wakaba 1.56 文書が <a href=#html-documents title="HTML documents">HTML 文書</a>であるか <a
38     href=#xml-documents title="XML documents">XML 文書</a>であるかは、
39 apache 1.7 いくつかの API の動作や CSS のレンダリング規則の一部に影響します。 <a
40 wakaba 1.56 href=#refsCSS21>[CSS21]</a>
41 apache 1.26
42     #en
43 apache 1.8 A <code>Document</code> object created by the <code
44     title="">createDocument()</code> API on the <code>DOMImplementation</code>
45 wakaba 1.56 object is initially an <a href=#xml-documents title="XML documents">XML
46     document</a>, but can be made into an <a href=#html-documents title="HTML
47 apache 1.8 documents">HTML document</a> by calling <code title=dom-document-open><a
48 wakaba 1.56 href=#dom-document-open>document.open()</a></code> on it.
49 apache 1.26 #ja
50 apache 1.8 <code>DOMImplementation</code> 上の <code
51     title="">createDocument()</code> API により作成された <code>Document</code>
52 wakaba 1.56 オブジェクトははじめ <a href=#xml-documents title="XML documents">XML
53 apache 1.8 文書</a>ですが、 <code title=dom-document-open><a
54 wakaba 1.56 href=#dom-document-open>document.open()</a></code>
55     を呼び出すことにより <a href=#html-documents title="HTML
56 apache 1.26 documents">HTML 文書</a>にすることができます。
57    
58     #en
59 apache 1.9 All <code>Document</code> objects (in user agents implementing this
60     specification) must also implement the <code><a
61 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> interface, available using
62 apache 1.9 binding-specific methods. (This is the case whether or not the document in
63 wakaba 1.56 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
65 apache 1.9 elements</a> at all.) <code>Document</code> objects must also implement
66     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
68     SVG, then the <code>Document</code> object must implement <code><a
69 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> and <code>SVGDocument</code>.
70 apache 1.26 #ja
71 apache 1.9 (この仕様書を実装する利用書エージェントにおける) すべての
72     <code>Document</code>
73     オブジェクトは、 <code><a
74 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> 界面をも実装し、
75 apache 1.9 束縛規定の方式により利用可能としなければ[[MUST:なりません]]。
76 wakaba 1.56 (これは当該文書が <a href=#html-documents title="HTML documents">HTML 文書</a>であるか否かや、
77     そもそも <a href=#html-elements>HTML
78 apache 1.9 要素</a>を含んでいるか否かによらずのことです。)
79     <code>Document</code> オブジェクトは、文書中に現れ、利用者エージェントが対応している、
80     他の名前空間の文書水準の界面をも実装しなければ[[MUST:なりません]]。
81     例えば、 HTML 実装が SVG にも対応している場合、 <code>Document</code>
82     オブジェクトは <code><a
83 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> と
84 apache 1.26 <code>SVGDocument</code> を実装しなければなりません<!-- 例示なので MUST でなく must -->。
85    
86     #en
87 apache 1.10 Because the <code><a
88 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> interface is now obtained
89 apache 1.10 using binding-specific casting methods instead of simply being the primary
90     interface of the document object, it is no longer defined as inheriting
91 apache 1.26 from <code>Document</code>.
92     #ja
93 apache 1.10 <code><a
94 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code>
95 apache 1.10 界面は現在では単純に文書オブジェクトの主たる界面であるとするのではなく、
96     束縛規定の型変換方式を使って得るものとしているので、
97 apache 1.26 最早 <code>Document</code> から継承するとは定義していません。
98    
99     #en
100 wakaba 1.56 Since the <code><a href=#htmldocument>HTMLDocument</a></code>
101 apache 1.11 interface holds methods and attributes related to a number of disparate
102     features, the members of this interface are described in various different
103 apache 1.26 sections.
104     #ja
105 wakaba 1.56 <code><a href=#htmldocument>HTMLDocument</a></code>
106 apache 1.11 界面は色々な機能に関係するメソッドや属性を持っていますので、
107 apache 1.26 この界面の構成員はそれぞれの節で説明します。
108    
109     #en
110 wakaba 1.56 User agents must raise a <a href=#security-exception>security exception</a>
111 apache 1.12 whenever any of the members of an <code><a
112 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> object are accessed by
113     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
115     <code>Document</code>'s <a href=#effective-script-origin>effective script origin</a>.
116 apache 1.26 #ja
117 apache 1.12 利用者エージェントは、 <code><a
118 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code>
119 apache 1.12 オブジェクトの構成員のいずれかが、
120 wakaba 1.56 <a href=#effective-script-origin>実効スクリプト起源</a>が <code>Document</code>
121     の<a href=#effective-script-origin>実効スクリプト起源</a>と<a href=#same-origin title="same origin">同じ</a>ではないスクリプトからアクセスされる場合に、
122 apache 1.12 常に、
123 wakaba 1.56 <a href=#security-exception>保安性例外</a>を発生させなければ[[MUST:なりません]]。
124 apache 1.26
125     #pattern
126 wakaba 1.56 <span class=secno>* </span><dfn>Resource
127 apache 1.26 metadata management</dfn>
128     #ja
129 wakaba 1.56 <span class=secno>$1 </span><dfn>資源メタデータ管理</dfn>
130 apache 1.26
131     #en
132 wakaba 1.56 The <dfn id=dom-document-url title=dom-document-URL><code>URL</code></dfn> attribute
133 apache 1.14 must return <span>the document's address</span><!--
134 apache 1.26 XXXDOCURL xref -->.
135     #ja
136 wakaba 1.56 <dfn id=dom-document-url title=dom-document-URL><code>URL</code></dfn>
137 apache 1.14 属性は<span>文書の番地</span><!--
138 apache 1.26 XXXDOCURL xref -->を返さなければ[[MUST:なりません]]。
139    
140     #en
141 wakaba 1.56 The <dfn id=dom-document-referrer
142 apache 1.15 title=dom-document-referrer><code>referrer</code></dfn> attribute must
143     return either the <span title="the document's
144     address">address</span><!-- XXXDOXURL xref --> of the <a
145 wakaba 1.56 href=#active-document>active document</a> of the <a href=#source-browsing-context>source
146 apache 1.15 browsing context</a> at the time the navigation was started (that is, the
147 wakaba 1.56 page which <a href=#navigate title=navigate>navigated</a> the <a
148     href=#browsing-context>browsing context</a> to the current document), or the
149 apache 1.15 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
151 wakaba 1.56 initiated for a <a href=#hyperlink>hyperlink</a> with a <code
152     title=rel-noreferrer><a href=#link-type-noreferrer>noreferrer</a></code> keyword.
153 apache 1.26 #ja
154 wakaba 1.56 <dfn id=dom-document-referrer
155 apache 1.15 title=dom-document-referrer><code>referrer</code></dfn>
156 wakaba 1.56 属性は、操縦が開始された時点での<a href=#source-browsing-context>原始閲覧文脈</a>の<a
157     href=#active-document>活性文書</a>
158 apache 1.15 (<a
159 wakaba 1.56 href=#browsing-context>閲覧文脈</a>を現在の文書に<a href=#navigate title=navigate>操縦</a>した頁)
160 apache 1.15 の<span title="the document's
161     address">番地</span><!-- XXXDOXURL xref -->か、
162     または、そのような元々の頁がない場合、利用者エージェントがこの場合に参照子を報告しないように設定されている場合、
163     操縦が <code
164 wakaba 1.56 title=rel-noreferrer><a href=#link-type-noreferrer>noreferrer</a></code>
165     キーワードのある<a href=#hyperlink>ハイパーリンク</a>について初期化された場合には空文字列、
166 apache 1.15 このいずれかを返さなければ[[MUST:なりません]]。
167 apache 1.26
168    
169     #en
170 apache 1.16 In the case of HTTP, the <code title=dom-document-referrer><a
171 wakaba 1.56 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
173 apache 1.26 title=fetch>fetching</a> the current page.
174     #ja
175 apache 1.16 HTTP の場合、 <code title=dom-document-referrer><a
176 wakaba 1.56 href=#dom-document-referrer>referrer</a></code> DOM 属性は現在の頁を<a href=#fetch
177 apache 1.16 title=fetch>取ってくる</a>時に送られた <code
178 apache 1.26 title="">Referer</code> (ママ) 頭部と一致します。
179    
180     #en
181 apache 1.17 Typically user agents are configured to not report referrers
182     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>
184 apache 1.26 page to an <code title="">http:</code> page).
185     #ja
186 apache 1.17 通常、利用者エージェントは、参照子が暗号化プロトコルを使っており、
187     現在の頁がそうではない場合 (例えば <code title="">https:</code>
188     頁から <code title="">http:</code> 頁へと操縦した時)
189 apache 1.26 には参照子を報告しないように設定されています。
190    
191     #en
192 wakaba 1.56 The <dfn id=dom-document-cookie title=dom-document-cookie><code>cookie</code></dfn>
193 apache 1.26 attribute represents the cookies of the resource.
194     #ja
195 wakaba 1.56 <dfn id=dom-document-cookie title=dom-document-cookie><code>cookie</code></dfn>
196 apache 1.26 属性は、資源のクッキーを表します。
197    
198     #en
199 wakaba 1.56 On getting, if the <a href=#sandboxed-origin-browsing-context-flag>sandboxed
200 apache 1.19 origin browsing context flag</a> is set on the <a
201 wakaba 1.56 href=#browsing-context>browsing context</a> of the document, the user agent
202     must raise a <a href=#security-exception>security exception</a>. Otherwise, it
203 apache 1.19 must return the same string as the value of the <code
204 wakaba 1.56 title="">Cookie</code> HTTP header it would include if <a href=#fetch
205 apache 1.19 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
207 wakaba 1.56 or later specifications. <a href=#refsRFC2109>[RFC2109]</a> <a
208     href=#refsRFC2965>[RFC2965]</a>
209 apache 1.26 #ja
210 wakaba 1.56 取得時、<a href=#sandboxed-origin-browsing-context-flag>砂箱起源閲覧文脈旗</a>が文書の<a
211     href=#browsing-context>閲覧文脈</a>に設定されている場合には、
212     利用者エージェントは<a href=#security-exception>保安性例外</a>を発生させなければ[[MUST:なりません]]。
213 apache 1.19 そうでない場合、<span>文書の番地</span><!-- XXXDOCURL -->で示される資源を HTTP
214 wakaba 1.56 によって<a href=#fetch
215 apache 1.19 title=fetch>取ってくる</a>場合に RFC 2109
216     4.3.4 節やより新しい仕様書に従って含まれるであろう <code
217 wakaba 1.56 title="">Cookie</code> HTTP 頭部の値と同じ文字列を返さなければ[[MUST:なりません]]。 <a href=#refsRFC2109>[RFC2109]</a> <a
218     href=#refsRFC2965>[RFC2965]</a>
219 apache 1.26
220     #en
221 wakaba 1.56 On setting, if the <a href=#sandboxed-origin-browsing-context-flag>sandboxed origin browsing
222     context flag</a> is set on the <a href=#browsing-context>browsing context</a>
223 apache 1.20 of the document, the user agent must raise a <a
224 wakaba 1.56 href=#security-exception>security exception</a>. Otherwise, the user agent must
225 apache 1.20 act as it would when processing cookies if it had just attempted to <a
226 wakaba 1.56 href=#fetch>fetch</a> <span>the document's address</span><!-- XXXDOCURL
227 apache 1.20 -->
228     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
230     4.3.1, 4.3.2, and 4.3.3 or later specifications. <a
231 wakaba 1.56 href=#refsRFC2109>[RFC2109]</a> <a href=#refsRFC2965>[RFC2965]</a>
232 apache 1.26 #ja
233 wakaba 1.56 設定時、<a href=#sandboxed-origin-browsing-context-flag>砂箱起源閲覧文脈旗</a>が文書の<a
234     href=#browsing-context>閲覧文脈</a>に設定されている場合には、
235     利用者エージェントは<a href=#security-exception>保安性例外</a>を発生させなければ[[MUST:なりません]]。
236 apache 1.20 そうでない場合、利用者エージェントは、
237     <span>文書の番地</span><!-- XXXDOCURL -->で示される資源を HTTP
238 wakaba 1.56 によって<a href=#fetch
239 apache 1.20 title=fetch>取ってこよう</a>とし、
240     値が指定された値である <code>Set-Cookie</code>
241     頭部がある応答を受信した場合にクッキーを処理する時と同じように、
242 wakaba 1.56 RFC 2109 4.3.1 節、4.3.2 節、4.3.3. 節やより新しい仕様書に従い作用しなければ[[MUST:なりません]]。 <a href=#refsRFC2109>[RFC2109]</a> <a
243     href=#refsRFC2965>[RFC2965]</a>
244 apache 1.26
245     #en
246 apache 1.21 Since the <code title=dom-document-cookie><a
247 wakaba 1.56 href=#dom-document-cookie>cookie</a></code> attribute is accessible across frames,
248 apache 1.21 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 apache 1.26 security feature.
251     #ja
252 apache 1.21 <code title=dom-document-cookie><a
253 wakaba 1.56 href=#dom-document-cookie>cookie</a></code> 属性はフレームをまたいでアクセス可能ですので、
254 apache 1.21 クッキーの経路制限はクッキーがサイト上のどの部分に送られるかを管理することを助けるための道具に過ぎず、
255 apache 1.26 保安性のための機能では決してありません。
256    
257     #en
258 wakaba 1.56 The <dfn id=dom-document-lastmodified
259 apache 1.22 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 apache 1.26 following format:
263     #ja
264 wakaba 1.56 <dfn id=dom-document-lastmodified
265 apache 1.22 title=dom-document-lastModified><code>lastModified</code></dfn>
266     属性は、取得時、 <code>Document</code> の原始ファイルの最終修正の日時を、
267 apache 1.26 利用者の地方時において、次の書式で返さなければ[[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 apache 1.27 日付の日の部品。
283    
284     #en
285     The year component of the date.
286     #ja
287 apache 1.28 日付の年の部品。
288    
289     #en
290     A U+0020 SPACE character.
291     #ja
292 apache 1.29 U+0020 SPACE 文字。
293    
294     #en
295     The hours component of the time.
296     #ja
297 apache 1.30 時刻の時の部品。
298    
299     #en
300     A U+003A COLON character (':').
301     #ja
302 apache 1.31 U+003A COLON 文字 (':')。
303    
304     #en
305     The minutes component of the time.
306     #ja
307 apache 1.32 時刻の分の部品。
308    
309     #en
310     The seconds component of the time.
311     #ja
312 apache 1.33 時刻の秒の部品。
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 apache 1.34 必要なら零埋めしたものとして与えなければ[[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 apache 1.35 を返さなければ[[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 apache 1.36 を返さなければ[[MUST:なりません]]。
348    
349     #en
350     A <code>Document</code> is always set to one of three modes: <dfn
351 wakaba 1.56 id=no-quirks-mode>no quirks mode</dfn>, the default; <dfn id=quirks-mode>quirks
352 apache 1.36 mode</dfn>, used typically for legacy documents; and <dfn
353 wakaba 1.56 id=limited-quirks-mode>limited quirks mode</dfn>, also known as "almost standards"
354 apache 1.36 mode. The mode is only ever changed from the default by the <a
355 wakaba 1.56 href=#html-parser>HTML parser</a>, based on the presence, absence, or value
356 apache 1.36 of the DOCTYPE string.
357     #ja
358     <code>Document</code> は常に3つのモードのいずれかに設定されています。<dfn
359 wakaba 1.56 id=no-quirks-mode>無奇癖モード</dfn>は既定値です。<dfn id=quirks-mode>奇癖モード</dfn>は、
360 apache 1.36 普通、遺物文書に使われます。<dfn
361 wakaba 1.56 id=limited-quirks-mode>制限奇癖モード</dfn>は、「ほぼ標準」モードとも呼ばれます。
362 apache 1.36 このモードは
363     <a
364 wakaba 1.56 href=#html-parser>HTML 構文解析器</a>によってのみ、
365 apache 1.37 DOCTYPE 文字列が存在するか存在しないかやその値に基づいて既定値から変更されます。
366    
367     #en
368 wakaba 1.56 The <dfn id=dom-document-compatmode
369 apache 1.37 title=dom-document-compatMode><code>compatMode</code></dfn> DOM attribute
370     must return the literal string "<code title="">CSS1Compat</code>" unless
371 wakaba 1.56 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 apache 1.37 literal string "<code title="">BackCompat</code>".
374     #ja
375 wakaba 1.56 <dfn id=dom-document-compatmode
376 apache 1.37 title=dom-document-compatMode><code>compatMode</code></dfn> DOM
377     属性は、生の文字列「<code title="">CSS1Compat</code>」を返さなければ[[MUST:なりません]]。
378     ただし、文書が <a
379 wakaba 1.56 href=#html-parser>HTML 構文解析器</a>により<a href=#quirks-mode>奇癖モード</a>に設定されている場合には、
380 apache 1.38 代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。
381    
382     #en
383 wakaba 1.56 Documents have an associated <dfn id=character-reference-in-attribute-value-state title="document's
384 apache 1.38 character encoding">character encoding</dfn>. When a <code>Document</code>
385 wakaba 1.56 object is created, the <a href=#character-reference-in-attribute-value-state>document's character
386 apache 1.38 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 wakaba 1.56 href=#dom-document-charset>charset</a></code> setter. <a
389     href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
390 apache 1.38 http://www.iana.org/assignments/character-sets -->
391     #ja
392 wakaba 1.56 文書は<dfn id=character-reference-in-attribute-value-state title="document's
393 apache 1.38 character encoding">文字符号化</dfn>と関連付けられています。
394 wakaba 1.56 <code>Document</code> オブジェクトが作成された時、<a href=#character-reference-in-attribute-value-state>文書の文字符号化</a>は
395 apache 1.38 UTF-16 に初期化されなければ[[MUST:なりません]]。
396     頁の読み込みの間の色々な算法や <code title=dom-document-charset><a
397 wakaba 1.56 href=#dom-document-charset>charset</a></code> 設定子がこの値を変化させます。 <a
398     href=#refsIANACHARSET>[IANACHARSET]</a> <!-- XXX
399 apache 1.39 http://www.iana.org/assignments/character-sets -->
400    
401     #en
402 wakaba 1.56 The <dfn id=dom-document-charset
403 apache 1.39 title=dom-document-charset><code>charset</code></dfn> DOM attribute must,
404     on getting, return the preferred MIME name of the <a
405 wakaba 1.56 href=#character-reference-in-attribute-value-state>document's character encoding</a>. On setting, if the
406 apache 1.39 new value is an IANA-registered alias for a character encoding, the <a
407 wakaba 1.56 href=#character-reference-in-attribute-value-state>document's character encoding</a> must be set to that
408 apache 1.39 character encoding. (Otherwise, nothing happens.)
409     #ja
410 wakaba 1.56 <dfn id=dom-document-charset
411 apache 1.39 title=dom-document-charset><code>charset</code></dfn> DOM
412     属性は、取得時、<a
413 wakaba 1.56 href=#character-reference-in-attribute-value-state>文書の文字符号化</a>の優先 MIME
414 apache 1.39 名を返さなければ[[MUST:なりません]]。設定時、
415     新しい値がある文字符号化の IANA に登録された別名である場合、<a
416 wakaba 1.56 href=#character-reference-in-attribute-value-state>文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。
417 apache 1.40 (それ以外の場合、何も起きません。)
418    
419     #en
420 wakaba 1.56 The <dfn id=dom-document-characterset
421 apache 1.40 title=dom-document-characterSet><code>characterSet</code></dfn> DOM
422     attribute must, on getting, return the preferred MIME name of the <a
423 wakaba 1.56 href=#character-reference-in-attribute-value-state>document's character encoding</a>.
424 apache 1.40 #ja
425 wakaba 1.56 <dfn id=dom-document-characterset
426 apache 1.40 title=dom-document-characterSet><code>characterSet</code></dfn> DOM
427     属性は、取得時、<a
428 wakaba 1.56 href=#character-reference-in-attribute-value-state>文書の文字符号化</a>の優先 MIME 名を返さなければ[[MUST:なりません]]。
429 apache 1.41
430     #en
431 wakaba 1.56 The <dfn id=dom-document-defaultcharset
432 apache 1.41 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 wakaba 1.56 <dfn id=dom-document-defaultcharset
439 apache 1.41 title=dom-document-defaultCharset><code>defaultCharset</code></dfn>
440     DOM 属性は、取得時、文字符号化の優先 MIME 名を返さなければ[[MUST:なりません]]。
441     この文字符号化は利用者の既定の符号化でもいいですし、
442     利用者の現在の地理的位置に関連付けられた符号化でもいいですし、
443 apache 1.42 その他任意の符号化名でもあり得ます。
444    
445     #pattern
446 wakaba 1.56 <span class=secno>* </span><dfn>DOM tree
447 apache 1.42 accessors</dfn>
448     #ja
449 wakaba 1.56 <span class=secno>$1 </span><dfn>DOM 木アクセス器</dfn>
450 apache 1.43
451     #en
452 wakaba 1.56 <dfn id=the-html-element-0>The <code>html</code> element</dfn> of a document is
453 apache 1.43 the document's root element, if there is one and it's an <code><a
454 wakaba 1.56 href=#the-html-element>html</a></code> element, or null otherwise.
455 apache 1.43 #ja
456 wakaba 1.56 文書の<dfn id=the-html-element-0>文書 <code>html</code> 要素</dfn>は、
457 apache 1.43 その文書の根要素があり、それが <code><a
458 wakaba 1.56 href=#the-html-element>html</a></code> 要素である場合はその要素、それ以外の場合には
459 apache 1.44 null です。
460    
461     #en
462 wakaba 1.56 <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 apache 1.44 or null otherwise.
466     #ja
467 wakaba 1.56 文書の<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 apache 1.44 そうでない場合は null です。
471 apache 1.45
472    
473     #en
474 wakaba 1.56 <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 apache 1.45 (in tree order), if there is one, or null otherwise.
477     #ja
478 wakaba 1.56 文書の<dfn id=the-title-element-0>文書 <code>title</code> 要素</dfn>は文書の (木順で)
479     最初の <code><a href=#the-title-element>title</a></code> 要素がある場合はその要素、
480 apache 1.46 そうでない場合は 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 apache 1.47 取得時、次の算法を走らせなければ[[MUST:なりません]]。
490    
491     #en
492 wakaba 1.56 If the <a href=#root-element>root element</a> is an <code>svg</code>
493 apache 1.47 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 wakaba 1.56 <a href=#root-element>根要素</a>が
499 apache 1.47 「<code title="">http://www.w3.org/2000/svg</code>」名前空間の <code>svg</code>
500     要素であり、利用者エージェントが SVG に対応している場合、取得器は <code>SVGDocument</code>
501     界面の同名の DOM 属性が返す値を返さなければ[[MUST:なりません]]。
502 apache 1.48
503    
504     #en
505     Otherwise, it must return a concatenation of the data of all the child
506 wakaba 1.56 <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 apache 1.48 element</a> is null.
510     #ja
511     そうでない場合、<a
512 wakaba 1.56 href=#the-title-element-0>文書 <code>title</code> 要素</a>のすべての子供<a href=#text-node title="text node">テキスト節点</a>のデータを木順に連結したものを返すか、
513 apache 1.48 <a
514 wakaba 1.56 href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
515 apache 1.49 の場合には殻文字列を返さなければ[[MUST:なりません]]。
516    
517     #en
518     On setting, the following algorithm must be run:
519     #ja
520 apache 1.50 設定時、次の算法を走らせなければ[[MUST:なりません]]。
521    
522     #en
523 wakaba 1.56 If the <a href=#root-element>root element</a> is an <code>svg</code>
524 apache 1.50 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 wakaba 1.56 <a href=#root-element>根要素</a>が
531 apache 1.50 「<code title="">http://www.w3.org/2000/svg</code>」名前空間の
532     <code>svg</code> 要素で利用者エージェントが SVG に対応している場合、
533     設定器は <code>SVGDocument</code> 界面の同名の DOM 属性の設定器に委ねなければ[[MUST:なりません]]
534 apache 1.51 (それが読み取り専用である場合、例外を発生させることとなります)。算法をここで停止します。
535    
536     #en
537 wakaba 1.56 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 apache 1.51 the attribute must do nothing. Stop the algorithm here.
540     #ja
541 wakaba 1.56 <a href=#the-title-element-0>文書 <code>title</code> 要素</a>が null
542     で<a href=#the-head-element-0>文書 <code>head</code> 要素</a>が null
543 apache 1.52 の場合、属性は何もしては[[MUST:なりません]]。算法をここで停止します。
544    
545     #en
546 wakaba 1.56 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 apache 1.52 element</a>.
550     #ja
551 wakaba 1.56 <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 apache 1.53 要素</a>の最後に追加しなければ[[MUST:なりません]]。
555    
556     #en
557 wakaba 1.56 The children of <a href=#the-title-element-0>the <code>title</code>
558 apache 1.53 element</a> (if any) must all be removed.
559     #ja
560 wakaba 1.56 <a href=#the-title-element-0>文書 <code>title</code>
561 apache 1.54 要素</a>の子供を (あれば) すべて削除しなければ[[MUST:なりません]]。
562    
563     #en
564     A single <code>Text</code> node whose data is the new value being
565 wakaba 1.56 assigned must be appended to <a href=#the-title-element-0>the <code>title</code>
566 apache 1.54 element</a>.
567     #ja
568     データが指定された新しい値である1つの <code>Text</code> 節点を
569 wakaba 1.56 <a href=#the-title-element-0>文書 <code>title</code>
570 apache 1.55 要素</a>の最後に追加しなければ[[MUST:なりません]]。
571    
572     #en
573     The <code title=dom-document-title><a
574 wakaba 1.56 href=#document.title>title</a></code> attribute on the <code><a
575     href=#htmldocument>HTMLDocument</a></code> interface should shadow the
576 apache 1.55 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 wakaba 1.56 href=#htmldocument>HTMLDocument</a></code> 界面の
582 apache 1.55 <code title=dom-document-title><a
583 wakaba 1.56 href=#document.title>title</a></code> 属性が
584 apache 1.57 <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 apache 1.58 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 apache 1.59
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 apache 1.60 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 apache 1.61 <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 apache 1.62 設定時、次の算法を走らせなければ[[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 apache 1.63 これらの段階を停止します。
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 apache 1.64 要素</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 apache 1.65 これらの段階を停止します。
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 apache 1.66 要素</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 apache 1.67 を返さなければ[[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 apache 1.68 を返さなければ[[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 apache 1.69 属性が返すのと同じオブジェクトを返さなければ[[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 apache 1.70 を返さなければ[[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 apache 1.71 を返さなければ[[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 apache 1.69 を返さなければ[[MUST:なりません]]。

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24