| 62 |
that topic. |
that topic. |
| 63 |
#ja |
#ja |
| 64 |
加えて、<span>文字符号化宣言</span>をどう直列化するかについても、 |
加えて、<span>文字符号化宣言</span>をどう直列化するかについても、 |
|
それに関する節で説明した通り、いくつかの制限があります。 |
|
| 65 |
|
それに関する節で説明した通り、いくつかの制限があります。 |
| 66 |
|
|
| 67 |
|
#en |
| 68 |
|
Space characters before the root <code><a href="#html">html</a></code> |
| 69 |
|
element, and space characters at the start of the <code><a |
| 70 |
|
href="#html">html</a></code> element and before the <code><a |
| 71 |
|
href="#head">head</a></code> element, will be dropped when the document |
| 72 |
|
is parsed; space characters <em>after</em> the root <code><a |
| 73 |
|
href="#html">html</a></code> element will be parsed as if they were at |
| 74 |
|
the end of the <code><a href="#body0">body</a></code> element. Thus, |
| 75 |
|
space characters around the root element do not round-trip. |
| 76 |
|
#ja |
| 77 |
|
根 <code><a href="#html">html</a></code> 要素の前の間隔文字や、 |
| 78 |
|
<code><a |
| 79 |
|
href="#html">html</a></code> 要素のはじめで <code><a |
| 80 |
|
href="#head">head</a></code> 要素の前の間隔文字は、 |
| 81 |
|
文書が構文解析される時に除去されます。根 <code><a |
| 82 |
|
href="#html">html</a></code> 要素の<em>後</em>の間隔文字は、 |
| 83 |
|
<code><a href="#body0">body</a></code> 要素の終わりにあったものとして構文解析されます。 |
| 84 |
|
従って、根要素の近辺の間隔文字は往復しません。 |
| 85 |
|
|
| 86 |
|
|
| 87 |
|
#en |
| 88 |
|
It is suggested that newlines be inserted after the DOCTYPE, after any |
| 89 |
|
comments that are before the root element, after the <code><a |
| 90 |
|
href="#html">html</a></code> element's start tag (if it is not <a |
| 91 |
|
href="#omitted" title=syntax-tag-omission>omitted</a>), and after any |
| 92 |
|
comments that are inside the <code><a href="#html">html</a></code> |
| 93 |
|
element but before the <code><a href="#head">head</a></code> element. |
| 94 |
|
#ja |
| 95 |
|
DOCTYPE の後、 |
| 96 |
|
根要素の前の注釈がある場合はその後、 |
| 97 |
|
<code><a |
| 98 |
|
href="#html">html</a></code> 要素の開始タグの後 |
| 99 |
|
(<a |
| 100 |
|
href="#omitted" title=syntax-tag-omission>省略</a>しない場合)、 |
| 101 |
|
<code><a href="#html">html</a></code> 要素中で |
| 102 |
|
<code><a href="#head">head</a></code> 要素の前に注釈がある場合にはその後には、 |
| 103 |
|
改行を挿入することをおすすめします。 |
| 104 |
|
|
| 105 |
|
#en |
| 106 |
|
Many strings in the HTML syntax (e.g. the names of elements and their |
| 107 |
|
attributes) are case-insensitive, but only for characters in the ranges |
| 108 |
|
U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and |
| 109 |
|
U+0061 .. U+007A (LATIN SMALL LETTER A to LATIN SMALL LETTER Z). For |
| 110 |
|
convenience, in this section this is just referred to as |
| 111 |
|
"case-insensitive". |
| 112 |
|
#ja |
| 113 |
|
HTML 構文中の多くの文字列 (例えば要素や属性の名前) は大文字と小文字を区別しませんが、 |
| 114 |
|
区別しないのは範囲 |
| 115 |
|
U+0041 ~ U+005A (LATIN CAPITAL LETTER A ~ LATIN CAPITAL LETTER Z) と |
| 116 |
|
範囲 U+0061 ~ U+007A (LATIN SMALL LETTER A ~ LATIN SMALL LETTER Z) |
| 117 |
|
の文字についてのみです。便宜上、この節ではこれを単に「大文字・小文字を区別しない」と呼びます。 |
| 118 |
|
|
| 119 |
|
|
| 120 |
|
#pattern |
| 121 |
|
<span class=secno>* </span>The DOCTYPE |
| 122 |
|
#ja |
| 123 |
|
<span class=secno>$1 </span>DOCTYPE |