| 984 |
<code><a href=#the-rt-element>rt</a></code> 要素や |
<code><a href=#the-rt-element>rt</a></code> 要素や |
| 985 |
<code><a href=#the-rp-element>rp</a></code> 要素でない場合や、 |
<code><a href=#the-rp-element>rp</a></code> 要素でない場合や、 |
| 986 |
親要素にそれ以上内容がない場合、 |
親要素にそれ以上内容がない場合、 |
|
省略して[[MAY:構いません]]。 |
|
| 987 |
|
省略して[[MAY:構いません]]。 |
| 988 |
|
|
| 989 |
|
#en |
| 990 |
|
An <code><a href=#the-rp-element>rp</a></code> element's <span title=syntax-end-tag>end |
| 991 |
|
tag</span> may be omitted if the <code><a href=#the-rp-element>rp</a></code> element is |
| 992 |
|
immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code> |
| 993 |
|
element, or if there is no more content in the parent element. |
| 994 |
|
#ja |
| 995 |
|
<code><a href=#the-rp-element>rp</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 996 |
|
<code><a href=#the-rp-element>rp</a></code> 要素の直後が |
| 997 |
|
<code><a href=#the-rt-element>rt</a></code> 要素や |
| 998 |
|
<code><a href=#the-rp-element>rp</a></code> 要素の場合や、 |
| 999 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1000 |
|
|
| 1001 |
|
#en |
| 1002 |
|
An <code><a href=#the-optgroup-element>optgroup</a></code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the |
| 1003 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> element <!--has an ancestor |
| 1004 |
|
<code>select</code> element and--> is immediately followed by |
| 1005 |
|
another <code><a href=#the-optgroup-element>optgroup</a></code> element, or if <!--all of the elements |
| 1006 |
|
that are ancestors of the <code>optgroup</code> element, up to and |
| 1007 |
|
including the first ancestor element that is not an |
| 1008 |
|
<code>optgroup</code> element, have no more content--> there is no |
| 1009 |
|
more content in the parent element. |
| 1010 |
|
#ja |
| 1011 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1012 |
|
<code><a href=#the-optgroup-element>optgroup</a></code> 要素<!--has an ancestor |
| 1013 |
|
<code>select</code> element and-->の直後が |
| 1014 |
|
別の <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、 |
| 1015 |
|
<!--all of the elements |
| 1016 |
|
that are ancestors of the <code>optgroup</code> element, up to and |
| 1017 |
|
including the first ancestor element that is not an |
| 1018 |
|
<code>optgroup</code> element, have no more content-->親要素にそれ以上内容がない場合、 |
| 1019 |
|
省略して[[MAY:構いません]]。 |
| 1020 |
|
|
| 1021 |
|
#en |
| 1022 |
|
An <code><a href=#the-option-element>option</a></code> element's <span title=syntax-end-tag>end |
| 1023 |
|
tag</span> may be omitted if the <code><a href=#the-option-element>option</a></code> element is |
| 1024 |
|
immediately followed by another <code><a href=#the-option-element>option</a></code> element, or if |
| 1025 |
|
it is immediately followed by an <code><a href=#the-optgroup-element>optgroup</a></code> element, or |
| 1026 |
|
if there is no more content in the parent element. |
| 1027 |
|
#ja |
| 1028 |
|
<code><a href=#the-option-element>option</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1029 |
|
<code><a href=#the-option-element>option</a></code> 要素の直後が別の |
| 1030 |
|
<code><a href=#the-option-element>option</a></code> 要素の場合や、 |
| 1031 |
|
直後が <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、 |
| 1032 |
|
親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。 |
| 1033 |
|
|
| 1034 |
|
#en |
| 1035 |
|
A <code><a href=#the-colgroup-element>colgroup</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the |
| 1036 |
|
first thing inside the <code><a href=#the-colgroup-element>colgroup</a></code> element is a |
| 1037 |
|
<code><a href=#the-col-element>col</a></code> element, and if the element is not immediately |
| 1038 |
|
preceded by another <code><a href=#the-colgroup-element>colgroup</a></code> element whose <span title=syntax-end-tag>end tag</span> has been omitted. |
| 1039 |
|
#ja |
| 1040 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 1041 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の内側の最初のものが |
| 1042 |
|
<code><a href=#the-col-element>col</a></code> 要素の場合で、 |
| 1043 |
|
直前が<span title=syntax-end-tag>終了タグ</span>の省略された別の |
| 1044 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素でない場合、 |
| 1045 |
|
省略して[[MAY:構いません]]。 |
| 1046 |
|
|
| 1047 |
|
#en |
| 1048 |
|
A <code><a href=#the-colgroup-element>colgroup</a></code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the |
| 1049 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> element is not immediately followed by a |
| 1050 |
|
<a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>. |
| 1051 |
|
#ja |
| 1052 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1053 |
|
<code><a href=#the-colgroup-element>colgroup</a></code> 要素の直後が<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、 |
| 1054 |
|
省略して[[MAY:構いません]]。 |
| 1055 |
|
|
| 1056 |
|
#en |
| 1057 |
|
A <code><a href=#the-thead-element>thead</a></code> element's <span title=syntax-end-tag>end |
| 1058 |
|
tag</span> may be omitted if the <code><a href=#the-thead-element>thead</a></code> element is |
| 1059 |
|
immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1060 |
|
element. |
| 1061 |
|
#ja |
| 1062 |
|
<code><a href=#the-thead-element>thead</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1063 |
|
<code><a href=#the-thead-element>thead</a></code> 要素の直後が |
| 1064 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1065 |
|
要素の場合、省略して[[MAY:構いません]]。 |
| 1066 |
|
|
| 1067 |
|
#en |
| 1068 |
|
A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the |
| 1069 |
|
first thing inside the <code><a href=#the-tbody-element>tbody</a></code> element is a |
| 1070 |
|
<code><a href=#the-tr-element>tr</a></code> element, and if the element is not immediately |
| 1071 |
|
preceded by a <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-thead-element>thead</a></code>, or |
| 1072 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> element whose <span title=syntax-end-tag>end |
| 1073 |
|
tag</span> has been omitted. |
| 1074 |
|
#ja |
| 1075 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 1076 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の内側の最初のものが |
| 1077 |
|
<code><a href=#the-tr-element>tr</a></code> 要素の場合で、 |
| 1078 |
|
要素の直前が<span title=syntax-end-tag>終了タグ</span>の省略された |
| 1079 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素、<code><a href=#the-thead-element>thead</a></code> 要素、 |
| 1080 |
|
<code><a href=#the-tfoot-element>tfoot</a></code> 要素でない場合、 |
| 1081 |
|
省略して[[MAY:構いません]]。 |
| 1082 |
|
|
| 1083 |
|
#en |
| 1084 |
|
A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-end-tag>end |
| 1085 |
|
tag</span> may be omitted if the <code><a href=#the-tbody-element>tbody</a></code> element is |
| 1086 |
|
immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code> |
| 1087 |
|
element, or if there is no more content in the parent element. |
| 1088 |
|
#ja |
| 1089 |
|
<code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 1090 |
|
<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> |
| 1092 |
|
要素の場合や、親要素にそれ以上内容がない場合、省略して[[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 |
|
ブロックは等価です。 |