| 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-0">HTML 構文解析器</a>により<a href="#quirks">奇癖モード</a>に設定されている場合には、 |
|
代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。 |
|
| 380 |
|
代わりに名前の文字列「<code title="">BackCompat</code>」を返さなければ[[MUST:なりません]]。 |
| 381 |
|
|
| 382 |
|
#en |
| 383 |
|
Documents have an associated <dfn id=character3 title="document's |
| 384 |
|
character encoding">character encoding</dfn>. When a <code>Document</code> |
| 385 |
|
object is created, the <a href="#character3">document's character |
| 386 |
|
encoding</a> must be initialized to UTF-16. Various algorithms during page |
| 387 |
|
loading affect this value, as does the <code title=dom-document-charset><a |
| 388 |
|
href="#charset0">charset</a></code> setter. <a |
| 389 |
|
href="#refsIANACHARSET">[IANACHARSET]</a> <!-- XXX |
| 390 |
|
http://www.iana.org/assignments/character-sets --> |
| 391 |
|
#ja |
| 392 |
|
文書は<dfn id=character3 title="document's |
| 393 |
|
character encoding">文字符号化</dfn>と関連付けられています。 |
| 394 |
|
<code>Document</code> オブジェクトが作成された時、<a href="#character3">文書の文字符号化</a>は |
| 395 |
|
UTF-16 に初期化されなければ[[MUST:なりません]]。 |
| 396 |
|
頁の読み込みの間の色々な算法や <code title=dom-document-charset><a |
| 397 |
|
href="#charset0">charset</a></code> 設定子がこの値を変化させます。 <a |
| 398 |
|
href="#refsIANACHARSET">[IANACHARSET]</a> <!-- XXX |
| 399 |
|
http://www.iana.org/assignments/character-sets --> |
| 400 |
|
|
| 401 |
|
#en |
| 402 |
|
The <dfn id=charset0 |
| 403 |
|
title=dom-document-charset><code>charset</code></dfn> DOM attribute must, |
| 404 |
|
on getting, return the preferred MIME name of the <a |
| 405 |
|
href="#character3">document's character encoding</a>. On setting, if the |
| 406 |
|
new value is an IANA-registered alias for a character encoding, the <a |
| 407 |
|
href="#character3">document's character encoding</a> must be set to that |
| 408 |
|
character encoding. (Otherwise, nothing happens.) |
| 409 |
|
#ja |
| 410 |
|
<dfn id=charset0 |
| 411 |
|
title=dom-document-charset><code>charset</code></dfn> DOM |
| 412 |
|
属性は、取得時、<a |
| 413 |
|
href="#character3">文書の文字符号化</a>の優先 MIME |
| 414 |
|
名を返さなければ[[MUST:なりません]]。設定時、 |
| 415 |
|
新しい値がある文字符号化の IANA に登録された別名である場合、<a |
| 416 |
|
href="#character3">文書の文字符号化</a>をその文字符号化に設定しなければ[[MUST:なりません]]。 |
| 417 |
|
(それ以外の場合、何も起きません。) |
| 418 |
|
|
| 419 |
|
#en |
| 420 |
|
The <dfn id=characterset |
| 421 |
|
title=dom-document-characterSet><code>characterSet</code></dfn> DOM |
| 422 |
|
attribute must, on getting, return the preferred MIME name of the <a |
| 423 |
|
href="#character3">document's character encoding</a>. |
| 424 |
|
#ja |
| 425 |
|
<dfn id=characterset |
| 426 |
|
title=dom-document-characterSet><code>characterSet</code></dfn> DOM |
| 427 |
|
属性は、取得時、<a |
| 428 |
|
href="#character3">文書の文字符号化</a>の優先 MIME 名を返さなければ[[MUST:なりません]]。 |
| 429 |
|
|
| 430 |
|
#en |
| 431 |
|
The <dfn id=defaultcharset |
| 432 |
|
title=dom-document-defaultCharset><code>defaultCharset</code></dfn> DOM |
| 433 |
|
attribute must, on getting, return the preferred MIME name of a character |
| 434 |
|
encoding, possibly the user's default encoding, or an encoding associated |
| 435 |
|
with the user's current geographical location, or any arbitrary encoding |
| 436 |
|
name. |
| 437 |
|
#ja |
| 438 |
|
<dfn id=defaultcharset |
| 439 |
|
title=dom-document-defaultCharset><code>defaultCharset</code></dfn> |
| 440 |
|
DOM 属性は、取得時、文字符号化の優先 MIME 名を返さなければ[[MUST:なりません]]。 |
| 441 |
|
この文字符号化は利用者の既定の符号化でもいいですし、 |
| 442 |
|
利用者の現在の地理的位置に関連付けられた符号化でもいいですし、 |
| 443 |
|
その他任意の符号化名でもあり得ます。 |
| 444 |
|
|
| 445 |
|
#pattern |
| 446 |
|
<span class=secno>* </span><dfn id=dom-tree0>DOM tree |
| 447 |
|
accessors</dfn> |
| 448 |
|
#ja |
| 449 |
|
<span class=secno>$1 </span><dfn id=dom-tree0>DOM 木アクセス器</dfn> |