| 1090 |
<code><a href=#the-tbody-element>tbody</a></code> 要素の直後が |
<code><a href=#the-tbody-element>tbody</a></code> 要素の直後が |
| 1091 |
<code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code> |
<code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1092 |
要素の場合や、親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
要素の場合や、親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1093 |
|
|
| 1094 |
|
|
| 1095 |
|
#en |
| 1096 |
|
A <code><a href=#the-tfoot-element>tfoot</a></code> element's <span title=syntax-end-tag>end |
| 1097 |
|
tag</span> may be omitted if the <code><a href=#the-tfoot-element>tfoot</a></code> element is |
| 1098 |
|
immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> element, or if there is |
| 1099 |
|
no more content in the parent element. |
| 1100 |
|
#ja |
| 1101 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1102 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> 要素の直後が |
| 1103 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の場合や、 |
| 1104 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1105 |
|
|
| 1106 |
|
#en |
| 1107 |
|
A <code><a href=#the-tr-element>tr</a></code> element's <span title=syntax-end-tag>end |
| 1108 |
|
tag</span> may be omitted if the <code><a href=#the-tr-element>tr</a></code> element is |
| 1109 |
|
immediately followed by another <code><a href=#the-tr-element>tr</a></code> element, or if there |
| 1110 |
|
is no more content in the parent element. |
| 1111 |
|
#ja |
| 1112 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1113 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の直後が別の |
| 1114 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の場合や、 |
| 1115 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1116 |
|
|
| 1117 |
|
#en |
| 1118 |
|
A <code><a href=#the-td-element>td</a></code> element's <span title=syntax-end-tag>end |
| 1119 |
|
tag</span> may be omitted if the <code><a href=#the-td-element>td</a></code> element is |
| 1120 |
|
immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> |
| 1121 |
|
element, or if there is no more content in the parent element. |
| 1122 |
|
#ja |
| 1123 |
|
<code><a href=#the-td-element>td</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1124 |
|
<code><a href=#the-td-element>td</a></code> 要素の直後が |
| 1125 |
|
<code><a href=#the-td-element>td</a></code> 要素や |
| 1126 |
|
<code><a href=#the-th-element>th</a></code> 要素の場合や、 |
| 1127 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1128 |
|
|
| 1129 |
|
|
| 1130 |
|
#en |
| 1131 |
|
A <code><a href=#the-th-element>th</a></code> element's <span title=syntax-end-tag>end |
| 1132 |
|
tag</span> may be omitted if the <code><a href=#the-th-element>th</a></code> element is |
| 1133 |
|
immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> |
| 1134 |
|
element, or if there is no more content in the parent element. |
| 1135 |
|
#ja |
| 1136 |
|
<code><a href=#the-th-element>th</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、<code><a href=#the-th-element>th</a></code> 要素の直後が |
| 1137 |
|
<code><a href=#the-td-element>td</a></code> 要素や |
| 1138 |
|
<code><a href=#the-th-element>th</a></code> 要素の場合や、 |
| 1139 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1140 |
|
|
| 1141 |
|
|
| 1142 |
|
#en |
| 1143 |
|
<strong>However</strong>, a <span title=syntax-start-tag>start |
| 1144 |
|
tag</span> must never be omitted if it has any attributes. |
| 1145 |
|
#ja |
| 1146 |
|
<strong>しかし</strong>、<span title=syntax-start-tag>開始タグ</span>が属性を持つ場合、 |
| 1147 |
|
開始タグを省略しては[[MUST:なりません]]。 |
| 1148 |
|
|
| 1149 |
|
#pattern |
| 1150 |
|
<span class=secno>* </span>Restrictions on content models |
| 1151 |
|
#ja |
| 1152 |
|
<span class=secno>$1 </span>内容モデルの制限 |
| 1153 |
|
|
| 1154 |
|
#en |
| 1155 |
|
For historical reasons, certain elements have extra restrictions |
| 1156 |
|
beyond even the restrictions given by their content model. |
| 1157 |
|
#ja |
| 1158 |
|
歴史的理由により、内容モデルによる制限以上の追加の制限を持つ要素がいくつかあります。 |
| 1159 |
|
|
| 1160 |
|
#en |
| 1161 |
|
An <code><a href=#the-optgroup-element>optgroup</a></code> element <!--that is a descendant of a |
| 1162 |
|
<code>select</code> element--> must not contain |
| 1163 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> elements, even though these elements are |
| 1164 |
|
technically allowed to be nested according to the content models |
| 1165 |
|
described in this specification. (If an <code><a href=#the-optgroup-element>optgroup</a></code> |
| 1166 |
|
element is put inside another <!--<code>optgroup</code> element |
| 1167 |
|
inside a <code>select</code> element--> in the markup, it will in |
| 1168 |
|
fact imply an <code><a href=#the-optgroup-element>optgroup</a></code> end tag before it.) |
| 1169 |
|
#ja |
| 1170 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素は<!--that is a descendant of a |
| 1171 |
|
<code>select</code> element-->、 |
| 1172 |
|
この仕様書で述べた内容モデルに従えば技術的には入れ子にできますが、 |
| 1173 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> |
| 1174 |
|
要素を含んでは[[MUST NOT:なりません]]。 |
| 1175 |
|
(<code><a href=#the-optgroup-element>optgroup</a></code> |
| 1176 |
|
要素をマーク付け中で別の<!--<code>optgroup</code> element |
| 1177 |
|
inside a <code>select</code> element--> |
| 1178 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素中に配置しても、 |
| 1179 |
|
実際にはその前に <code><a href=#the-optgroup-element>optgroup</a></code> |
| 1180 |
|
終了タグが暗示的に存在するものとみなされます。) |
| 1181 |
|
|
| 1182 |
|
#en |
| 1183 |
|
A <code><a href=#the-table-element>table</a></code> element must not contain <code><a href=#the-tr-element>tr</a></code> |
| 1184 |
|
elements, even though these elements are technically allowed inside |
| 1185 |
|
<code><a href=#the-table-element>table</a></code> elements according to the content models |
| 1186 |
|
described in this specification. (If a <code><a href=#the-tr-element>tr</a></code> element is |
| 1187 |
|
put inside a <code><a href=#the-table-element>table</a></code> in the markup, it will in fact imply |
| 1188 |
|
a <code><a href=#the-tbody-element>tbody</a></code> start tag before it.) |
| 1189 |
|
#ja |
| 1190 |
|
<code><a href=#the-table-element>table</a></code> |
| 1191 |
|
要素はこの仕様書で述べた内容モデルに従えば技術的には内側で |
| 1192 |
|
<code><a href=#the-tr-element>tr</a></code> 要素が認められていますが、 |
| 1193 |
|
<code><a href=#the-table-element>table</a></code> |
| 1194 |
|
要素は <code><a href=#the-tr-element>tr</a></code> 要素を含んでは[[MUST NOT:なりません]]。 |
| 1195 |
|
(<code><a href=#the-tr-element>tr</a></code> 要素がマーク付け中で |
| 1196 |
|
<code><a href=#the-table-element>table</a></code> 要素の内側に置かれた場合、 |
| 1197 |
|
実際には前に <code><a href=#the-tbody-element>tbody</a></code> 開始タグが暗示的に存在するものとみなされます。) |
| 1198 |
|
|
| 1199 |
|
#en |
| 1200 |
|
A single U+000A LINE FEED (LF) character may be placed |
| 1201 |
|
immediately after the <span title=syntax-start-tag>start |
| 1202 |
|
tag</span> of <code><a href=#the-pre-element>pre</a></code> and <code><a href=#the-textarea-element>textarea</a></code> |
| 1203 |
|
elements. This does not affect the processing of the element. The |
| 1204 |
|
otherwise optional U+000A LINE FEED (LF) character <em>must</em> be |
| 1205 |
|
included if the element's contents start with that character |
| 1206 |
|
(because otherwise the leading newline in the contents would be |
| 1207 |
|
treated like the optional newline, and ignored). |
| 1208 |
|
#ja |
| 1209 |
|
<code><a href=#the-pre-element>pre</a></code> 要素と |
| 1210 |
|
<code><a href=#the-textarea-element>textarea</a></code> |
| 1211 |
|
要素の<span title=syntax-start-tag>開始タグ</span>の直後に1文字の |
| 1212 |
|
U+000A LINE FEED (LF) 文字を置いても[[MAY:構いません]]。 |
| 1213 |
|
この文字は要素の処理に影響しません。 |
| 1214 |
|
通常は任意選択のこの U+000A LINE FEED (LF) 文字は、 |
| 1215 |
|
要素の内容がこの文字から始まる場合には、含めなければ<em>[[MUST:なりません]]</em> |
| 1216 |
|
(そうしなければ、内容の最初の改行は任意選択の改行として扱われ、無視されるからです)。 |
| 1217 |
|
|
| 1218 |
|
|
| 1219 |
|
#en |
| 1220 |
|
The following two <code><a href=#the-pre-element>pre</a></code> blocks are equivalent: |
| 1221 |
|
#ja |
| 1222 |
|
次の2つの <code><a href=#the-pre-element>pre</a></code> |
| 1223 |
|
ブロックは等価です。 |
| 1224 |
|
|
| 1225 |
|
#en |
| 1226 |
|
<pre>Hello</pre> |
| 1227 |
|
#ja |
| 1228 |
|
<pre>こんにちは</pre> |
| 1229 |
|
|
| 1230 |
|
#en |
| 1231 |
|
<pre><br>Hello</pre> |
| 1232 |
|
#ja |
| 1233 |
|
<pre><br>こんにちは</pre> |
| 1234 |
|
|
| 1235 |
|
#en |
| 1236 |
|
<span class=secno>* </span>Restrictions on the contents of CDATA and RCDATA elements |
| 1237 |
|
#ja |
| 1238 |
|
<span class=secno>$1 </span>CDATA 要素や RCDATA 要素の内容の制限 |
| 1239 |
|
|
| 1240 |
|
#en |
| 1241 |
|
The text in CDATA and RCDATA elements must not contain any |
| 1242 |
|
occurrences of the string "<code title=""></</code>" (U+003C |
| 1243 |
|
LESS-THAN SIGN, U+002F SOLIDUS) followed by characters that |
| 1244 |
|
case-insensitively match the tag name of the element followed by one |
| 1245 |
|
of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM |
| 1246 |
|
FEED (FF), U+0020 SPACE, U+003E GREATER-THAN SIGN (>), or U+002F |
| 1247 |
|
SOLIDUS (/), unless that string is part of an <a href=#syntax-escape title=syntax-escape>escaping text span</a>. |
| 1248 |
|
#ja |
| 1249 |
|
CDATA 要素や RCDATA 要素のテキストは文字列「<code title=""></</code>」 (U+003C |
| 1250 |
|
LESS-THAN SIGN、U+002F SOLIDUS) の後に要素のタグ名と大文字・小文字を区別しない場合に一致する文字が続き、 |
| 1251 |
|
その後に U+0009 CHARACTER TABULATION、U+000A LINE FEED (LF)、U+000C FORM |
| 1252 |
|
FEED (FF)、U+0020 SPACE、U+003E GREATER-THAN SIGN (>)、U+002F |
| 1253 |
|
SOLIDUS (/) |
| 1254 |
|
のいずれかが続くような列を、その文字列が<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の一部である場合を除き、 |
| 1255 |
|
含んでは[[MUST NOT:なりません]]。 |
| 1256 |
|
|
| 1257 |
|
#en |
| 1258 |
|
An <dfn id=syntax-escape title=syntax-escape>escaping text span</dfn> is a span |
| 1259 |
|
of <a href=#syntax-text title=syntax-text>text</a> that starts with an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is |
| 1260 |
|
not itself in an <a href=#syntax-escape title=syntax-escape>escaping text |
| 1261 |
|
span</a>, and ends at the next <a href=#syntax-escape-end title=syntax-escape-end>escaping text span end</a>. There |
| 1262 |
|
cannot be any <a href=#syntax-charref title=syntax-charref>character |
| 1263 |
|
references</a> inside an <a href=#syntax-escape title=syntax-escape>escaping |
| 1264 |
|
text span</a>. |
| 1265 |
|
#ja |
| 1266 |
|
<dfn id=syntax-escape title=syntax-escape>逃避テキスト径間</dfn>は、 |
| 1267 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>の径間であって、 |
| 1268 |
|
それ自体は<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>中にない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>によって始まり、 |
| 1269 |
|
次の<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間</a>によって終わるものです。 |
| 1270 |
|
<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の内側には<a href=#syntax-charref title=syntax-charref>文字参照</a>を入れることができません。 |
| 1271 |
|
|
| 1272 |
|
#en |
| 1273 |
|
An <dfn id=syntax-escape-start title=syntax-escape-start>escaping text span |
| 1274 |
|
start</dfn> is a part of <a href=#syntax-text title=syntax-text>text</a> that |
| 1275 |
|
consists of the four character sequence "<code title=""><!--</code>" (U+003C LESS-THAN SIGN, U+0021 EXCLAMATION |
| 1276 |
|
MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS). |
| 1277 |
|
#ja |
| 1278 |
|
<dfn id=syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</dfn>は、 |
| 1279 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>の一部で、 |
| 1280 |
|
4文字の列「<code title=""><!--</code>」(U+003C LESS-THAN SIGN、U+0021 EXCLAMATION |
| 1281 |
|
MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS) です。 |
| 1282 |
|
|
| 1283 |
|
#en |
| 1284 |
|
An <a href=#syntax-escape-start title=syntax-escape-start>escaping text span |
| 1285 |
|
start</a> may share its U+002D HYPHEN-MINUS characters with its |
| 1286 |
|
corresponding <a href=#syntax-escape-end title=syntax-escape-end>escaping text span |
| 1287 |
|
end</a>. |
| 1288 |
|
#ja |
| 1289 |
|
<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>は、 |
| 1290 |
|
その U+002D HYPHEN-MINUS 文字を対応する<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>と共有して[[MAY:構いません]]。 |
| 1291 |
|
|
| 1292 |
|
#en |
| 1293 |
|
The text in CDATA and RCDATA elements must not have an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is |
| 1294 |
|
not followed by an <a href=#syntax-escape-end title=syntax-escape-end>escaping text |
| 1295 |
|
span end</a>. |
| 1296 |
|
#ja |
| 1297 |
|
CDATA 要素と RCDATA 要素のテキストは<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>が後に続かない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>を含んでは[[MUST NOT:なりません]]。 |
| 1298 |
|
|
| 1299 |
|
#pattern |
| 1300 |
|
<span class=secno>* </span>Text |
| 1301 |
|
#ja |
| 1302 |
|
<span class=secno>$1 </span>テキスト |
| 1303 |
|
|
| 1304 |
|
#en |
| 1305 |
|
<dfn id=syntax-text title=syntax-text>Text</dfn> is allowed inside elements, |
| 1306 |
|
attributes, and comments. Text must consist of Unicode characters. |
| 1307 |
|
Text must not contain U+0000 characters. Text must not contain |
| 1308 |
|
permanently undefined Unicode characters. Text must not contain |
| 1309 |
|
control characters other than <a href=#space-character title="space character">space |
| 1310 |
|
characters</a>. Extra constraints are placed on what is and what |
| 1311 |
|
is not allowed in text based on where the text is to be put, as |
| 1312 |
|
described in the other sections. |
| 1313 |
|
#ja |
| 1314 |
|
<dfn id=syntax-text title=syntax-text>テキスト</dfn>は要素、 |
| 1315 |
|
属性、注釈の内側で認められています。 |
| 1316 |
|
テキストは Unicode 文字で構成されなければ[[MUST:なりません]]。 |
| 1317 |
|
テキストは U+0000 文字を含んでは[[MUST NOT:なりません]]。 |
| 1318 |
|
テキストは恒久的に未定義の Unicode 文字を含んでは[[MUST NOT:なりません]]。 |
| 1319 |
|
テキストは<a href=#space-character title="space character">間隔文字</a>以外の制御文字を含んでは[[MUST NOT:なりません]]。 |
| 1320 |
|
他の節で述べた通り、テキストが配置される場所によって、テキスト中で何が認められ、 |
| 1321 |
|
何が認められないかの追加の制約があります。 |
| 1322 |
|
|
| 1323 |
|
|
| 1324 |
|
#pattern |
| 1325 |
|
<span class=secno>* </span>Newlines |
| 1326 |
|
#ja |
| 1327 |
|
<span class=secno>$1 </span>改行 |
| 1328 |
|
|
| 1329 |
|
#en |
| 1330 |
|
<dfn id=syntax-newlines title=syntax-newlines>Newlines</dfn> in HTML may be |
| 1331 |
|
represented either as U+000D CARRIAGE RETURN (CR) characters, U+000A |
| 1332 |
|
LINE FEED (LF) characters, or pairs of U+000D CARRIAGE RETURN (CR), |
| 1333 |
|
U+000A LINE FEED (LF) characters in that order. |
| 1334 |
|
#ja |
| 1335 |
|
HTML の<dfn id=syntax-newlines title=syntax-newlines>改行</dfn>は |
| 1336 |
|
U+000D CARRIAGE RETURN (CR) 文字か、U+000A |
| 1337 |
|
LINE FEED (LF) 文字か、U+000D CARRIAGE RETURN (CR) 文字と |
| 1338 |
|
U+000A LINE FEED (LF) 文字の組をこの順序で用いるかのいずれかによって表現して[[MAY:構いません]]。 |
| 1339 |
|
|
| 1340 |
|
|
| 1341 |
|
#pattern |
| 1342 |
|
<span class=secno>* </span>Character references |
| 1343 |
|
#ja |
| 1344 |
|
<span class=secno>$1 </span>文字参照 |
| 1345 |
|
|
| 1346 |
|
#en |
| 1347 |
|
In certain cases described in other sections, <a href=#syntax-text title=syntax-text>text</a> may be mixed with <dfn id=syntax-charref title=syntax-charref>character references</dfn>. These can be used |
| 1348 |
|
to escape characters that couldn't otherwise legally be included in |
| 1349 |
|
<a href=#syntax-text title=syntax-text>text</a>. |
| 1350 |
|
#ja |
| 1351 |
|
他の節で述べたいくつかの場合において、<a href=#syntax-text title=syntax-text>テキスト</a>には |
| 1352 |
|
<dfn id=syntax-charref title=syntax-charref>文字参照</dfn>を混在させて[[MAY:構いません]]。 |
| 1353 |
|
文字参照は、通常合法的に<a href=#syntax-text title=syntax-text>テキスト</a>に含めることができない文字を逃避するために使うことができます。 |
| 1354 |
|
|
| 1355 |
|
#en |
| 1356 |
|
Character references must start with a U+0026 AMPERSAND |
| 1357 |
|
(<code>&</code>). Following this, there are three possible kinds |
| 1358 |
|
of character references: |
| 1359 |
|
#ja |
| 1360 |
|
文字参照は、U+0026 AMPERSAND |
| 1361 |
|
(<code>&</code>) により始まらなければ[[MUST:なりません]]。 |
| 1362 |
|
この文字に続けて、3種類の文字参照があります。 |
| 1363 |
|
|
| 1364 |
|
#en |
| 1365 |
|
Named character references |
| 1366 |
|
#ja |
| 1367 |
|
名前付き文字参照 |
| 1368 |
|
|
| 1369 |
|
#en |
| 1370 |
|
The ampersand must be followed by one of the names given in the |
| 1371 |
|
<a href=#named-character-references>named character references</a> section, using the same |
| 1372 |
|
case. The name must be one that is terminated by a U+003B SEMICOLON |
| 1373 |
|
(<code title="">;</code>) character. |
| 1374 |
|
#ja |
| 1375 |
|
アンド記号の後には、 |
| 1376 |
|
<a href=#named-character-references>名前付き文字参照</a>の節にある名前のいずれかを、 |
| 1377 |
|
同じ大文字・小文字の組み合わせによって続けなければ[[MUST:なりません]]。 |
| 1378 |
|
名前は U+003B SEMICOLON |
| 1379 |
|
(<code title="">;</code>) 文字で終わるものでなければ[[MUST:なりません]]。 |
| 1380 |
|
|
| 1381 |
|
#en |
| 1382 |
|
Decimal numeric character reference |
| 1383 |
|
#ja |
| 1384 |
|
十進数値文字参照 |
| 1385 |
|
|
| 1386 |
|
#en |
| 1387 |
|
The ampersand must be followed by a U+0023 NUMBER SIGN |
| 1388 |
|
(<code>#</code>) character, followed by one or more digits in the |
| 1389 |
|
range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE, representing a |
| 1390 |
|
base-ten integer that itself is a Unicode code point that is |
| 1391 |
|
not U+0000, U+000D, in the range U+0080 .. U+009F, or in the range |
| 1392 |
|
0xD800 .. 0xDFFF (surrogates). The digits must then be followed by |
| 1393 |
|
a U+003B SEMICOLON character (<code title="">;</code>). |
| 1394 |
|
#ja |
| 1395 |
|
アンド記号の後には、 U+0023 NUMBER SIGN |
| 1396 |
|
(<code>#</code>) 文字が続き、 Unicode 符号位置であって |
| 1397 |
|
U+0000、U+000D、範囲 U+0080 ~ U+009F、範囲 0xD800~0xDFFF (代理) |
| 1398 |
|
でない十進整数を表す1文字以上の範囲 U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE |
| 1399 |
|
の数字が続かなければ[[MUST:なりません]]。 |
| 1400 |
|
数字の後には U+003B SEMICOLON 文字 (<code title="">;</code>) |
| 1401 |
|
が続かなければ[[MUST:なりません]]。 |
| 1402 |
|
|
| 1403 |
|
#en |
| 1404 |
|
Hexadecimal numeric character reference |
| 1405 |
|
#ja |
| 1406 |
|
十六進数値文字参照 |
| 1407 |
|
|
| 1408 |
|
#en |
| 1409 |
|
The ampersand must be followed by a U+0023 NUMBER SIGN |
| 1410 |
|
(<code>#</code>) character, which must be followed by either a |
| 1411 |
|
U+0078 LATIN SMALL LETTER X or a U+0058 LATIN CAPITAL LETTER X |
| 1412 |
|
character, which must then be followed by one or more digits in the |
| 1413 |
|
range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE, U+0061 LATIN SMALL |
| 1414 |
|
LETTER A .. U+0066 LATIN SMALL LETTER F, and U+0041 LATIN CAPITAL |
| 1415 |
|
LETTER A .. U+0046 LATIN CAPITAL LETTER F, representing a |
| 1416 |
|
base-sixteen integer that itself is a Unicode code point that is |
| 1417 |
|
not U+0000, U+000D, in the range U+0080 .. U+009F, or in the range |
| 1418 |
|
0xD800 .. 0xDFFF (surrogates). The digits must then be followed by |
| 1419 |
|
a U+003B SEMICOLON character (<code title="">;</code>). |
| 1420 |
|
#ja |
| 1421 |
|
アンド記号の後には、 U+0023 NUMBER SIGN |
| 1422 |
|
(<code>#</code>) 文字が続き、その後に U+0078 LATIN SMALL LETTER X 文字か |
| 1423 |
|
U+0058 LATIN CAPITAL LETTER X 文字が続き、その後に |
| 1424 |
|
Unicode 符号位置であって |
| 1425 |
|
U+0000、U+000D、範囲 U+0080 ~ U+009F、 |
| 1426 |
|
範囲 0xD800 .. 0xDFFF (代理) |
| 1427 |
|
でない十六進整数を表す1文字以上の範囲 |
| 1428 |
|
U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE、U+0061 LATIN SMALL |
| 1429 |
|
LETTER A ~ U+0066 LATIN SMALL LETTER F、 U+0041 LATIN CAPITAL |
| 1430 |
|
LETTER A ~ U+0046 LATIN CAPITAL LETTER F |
| 1431 |
|
の数字が続かなければ[[MUST:なりません]]。 |
| 1432 |
|
数字の後には U+003B SEMICOLON 文字 (<code title="">;</code>) |
| 1433 |
|
が続かなければ[[MUST:なりません]]。 |
| 1434 |
|
|
| 1435 |
|
#en |
| 1436 |
|
An <dfn id=syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous |
| 1437 |
|
ampersand</dfn> is a U+0026 AMPERSAND (<code>&</code>) character |
| 1438 |
|
that is followed by some <a href=#syntax-text title=syntax-text>text</a> other |
| 1439 |
|
than a <a href=#space-character>space character</a>, a U+003C LESS-THAN SIGN |
| 1440 |
|
character ('<'), or another U+0026 AMPERSAND (<code>&</code>) |
| 1441 |
|
character. |
| 1442 |
|
#ja |
| 1443 |
|
<dfn id=syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</dfn>は、 |
| 1444 |
|
<a href=#space-character>間隔文字</a>、U+003C LESS-THAN SIGN |
| 1445 |
|
文字 ('<')、別の U+0026 AMPERSAND (<code>&</code>) 文字以外の |
| 1446 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>が続く |
| 1447 |
|
U+0026 AMPERSAND (<code>&</code>) 文字です。 |
| 1448 |
|
|
| 1449 |
|
|
| 1450 |
|
#pattern |
| 1451 |
|
<span class=secno>* </span>CDATA sections |
| 1452 |
|
#ja |
| 1453 |
|
<span class=secno>$1 </span>CDATA 区間 |
| 1454 |
|
|
| 1455 |
|
#en |
| 1456 |
|
<dfn id=syntax-cdata title=syntax-cdata>CDATA sections</dfn> must start with |
| 1457 |
|
the character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION |
| 1458 |
|
MARK, U+005B LEFT SQUARE BRACKET, U+0043 LATIN CAPITAL LETTER C, |
| 1459 |
|
U+0044 LATIN CAPITAL LETTER D, U+0041 LATIN CAPITAL LETTER A, U+0054 |
| 1460 |
|
LATIN CAPITAL LETTER T, U+0041 LATIN CAPITAL LETTER A, U+005B LEFT |
| 1461 |
|
SQUARE BRACKET (<code title=""><![CDATA[</code>). Following this |
| 1462 |
|
sequence, the CDATA section may have <a href=#syntax-text title=syntax-text>text</a>, with the additional restriction |
| 1463 |
|
that the text must not contain the three character sequence U+005D |
| 1464 |
|
RIGHT SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E |
| 1465 |
|
GREATER-THAN SIGN (<code title="">]]></code>). Finally, the CDATA |
| 1466 |
|
section must be ended by the three character sequence U+005D RIGHT |
| 1467 |
|
SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E GREATER-THAN |
| 1468 |
|
SIGN (<code title="">]]></code>). |
| 1469 |
|
#ja |
| 1470 |
|
<dfn id=syntax-cdata title=syntax-cdata>CDATA 区間</dfn>は、 |
| 1471 |
|
文字列 U+003C LESS-THAN SIGN、U+0021 EXCLAMATION |
| 1472 |
|
MARK、U+005B LEFT SQUARE BRACKET、U+0043 LATIN CAPITAL LETTER C、 |
| 1473 |
|
U+0044 LATIN CAPITAL LETTER D、U+0041 LATIN CAPITAL LETTER A、U+0054 |
| 1474 |
|
LATIN CAPITAL LETTER T、U+0041 LATIN CAPITAL LETTER A、U+005B LEFT |
| 1475 |
|
SQUARE BRACKET (<code title=""><![CDATA[</code>) で始まらなければ[[MUST:なりません]]。 |
| 1476 |
|
CDATA 区間は、この文字列に続けて、 |
| 1477 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>を持って[[MAY:構いません]]。 |
| 1478 |
|
ただし、追加の制限として、このテキストは3文字の列 U+005D |
| 1479 |
|
RIGHT SQUARE BRACKET、U+005D RIGHT SQUARE BRACKET、U+003E |
| 1480 |
|
GREATER-THAN SIGN (<code title="">]]></code>) を含んでは[[MUST NOT:なりません]]。 |
| 1481 |
|
最後に、CDATA 区間は、3文字の列 U+005D RIGHT |
| 1482 |
|
SQUARE BRACKET、U+005D RIGHT SQUARE BRACKET、U+003E GREATER-THAN |
| 1483 |
|
SIGN (<code title="">]]></code>) で終わらなければ[[MUST:なりません]]。 |
| 1484 |
|
|
| 1485 |
|
#pattern |
| 1486 |
|
<span class=secno>* </span>Comments |
| 1487 |
|
#ja |
| 1488 |
|
<span class=secno>$1 </span>注釈 |
| 1489 |
|
|
| 1490 |
|
#en |
| 1491 |
|
<dfn id=syntax-comments title=syntax-comments>Comments</dfn> must start with the |
| 1492 |
|
four character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION |
| 1493 |
|
MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code title=""><!--</code>). Following this sequence, the comment may |
| 1494 |
|
have <a href=#syntax-text title=syntax-text>text</a>, with the additional |
| 1495 |
|
restriction that the text must not start with a single U+003E |
| 1496 |
|
GREATER-THAN SIGN ('>') character, nor start with a U+002D |
| 1497 |
|
HYPHEN-MINUS (<code title="">-</code>) character followed by a |
| 1498 |
|
U+003E GREATER-THAN SIGN ('>') character, nor contain two |
| 1499 |
|
consecutive U+002D HYPHEN-MINUS (<code title="">-</code>) |
| 1500 |
|
characters, nor end with a U+002D HYPHEN-MINUS (<code title="">-</code>) character. Finally, the comment must be ended by |
| 1501 |
|
the three character sequence U+002D HYPHEN-MINUS, U+002D |
| 1502 |
|
HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code title="">--></code>). |
| 1503 |
|
#ja |
| 1504 |
|
<dfn id=syntax-comments title=syntax-comments>注釈</dfn>は、 |
| 1505 |
|
4文字の列 U+003C LESS-THAN SIGN、U+0021 EXCLAMATION |
| 1506 |
|
MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS (<code title=""><!--</code>) |
| 1507 |
|
で始まらなければ[[MUST:なりません]]。 |
| 1508 |
|
注釈は、この文字列に続けて、 |
| 1509 |
|
<a href=#syntax-text title=syntax-text>テキスト</a>を持って[[MAY:構いません]]。 |
| 1510 |
|
ただし、追加の制限として、このテキストは U+003E |
| 1511 |
|
GREATER-THAN SIGN ('>') 文字1文字から始まったり、 U+002D |
| 1512 |
|
HYPHEN-MINUS (<code title="">-</code>) 文字の後に |
| 1513 |
|
U+003E GREATER-THAN SIGN ('>') 文字が続く列から始まったり、 |
| 1514 |
|
2つの連続する U+002D HYPHEN-MINUS (<code title="">-</code>) |
| 1515 |
|
文字を含んだり、 U+002D HYPHEN-MINUS (<code title="">-</code>) 文字で終わったりしては[[MUST NOT:なりません]]。 |
| 1516 |
|
最後に、注釈は3文字の列 U+002D HYPHEN-MINUS、U+002D |
| 1517 |
|
HYPHEN-MINUS、U+003E GREATER-THAN SIGN (<code title="">--></code>) |
| 1518 |
|
で終わらなければ[[MUST:なりません]]。 |
| 1519 |
|
|
| 1520 |
|
#en |
| 1521 |
|
This specification defines the parsing rules for HTML documents, |
| 1522 |
|
whether they are syntactically correct or not. Certain points in the |
| 1523 |
|
parsing algorithm are said to be <dfn id=parse-error title="parse error">parse |
| 1524 |
|
errors</dfn>. The error handling for parse errors is well-defined: |
| 1525 |
|
user agents must either act as described below when encountering |
| 1526 |
|
such problems, or must abort processing at the first error that they |
| 1527 |
|
encounter for which they do not wish to apply the rules described |
| 1528 |
|
below. |
| 1529 |
|
#ja |
| 1530 |
|
この仕様書は、 HTML 文書を、それが構文的に正しいか否かによらず、その構文解析を行うための規則を定義します。 |
| 1531 |
|
この構文解析算法のいくつかの地点は<dfn id=parse-error title="parse error">構文解析誤り</dfn>であるといいます。 |
| 1532 |
|
構文解析誤りの誤りの取り扱いは明確に定義するところであり、 |
| 1533 |
|
利用者エージェントは、 |
| 1534 |
|
そのような問題に遭遇した時に後述の通りに作用するか、 |
| 1535 |
|
または後述の規則を適用したくないような最初の誤りの時点で処理を停止するかのいずれかでなければ[[MUST NOT:なりません]]。 |