578 |
<section id="html5-parse-errors"> |
<section id="html5-parse-errors"> |
579 |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
580 |
|
|
581 |
|
<div class="section" id="after-after-frameset"><h3><code>html</code> 要素が閉じられた後に開始タグ |
582 |
|
<code><<var>{text}</var>></code> があります。</h3></div> |
583 |
|
|
584 |
|
<div class="section" id="after-after-frameset:/"><h3><code>html</code> 要素が閉じられた後に終了タグ |
585 |
|
<code></<var>{text}</var>></code> があります。</h3></div> |
586 |
|
|
587 |
<div class="section" id="after-body"><h3>Start tag <code><<var>{text}</var>></code> is |
<div class="section" id="after-body"><h3>Start tag <code><<var>{text}</var>></code> is |
588 |
not allowed after the <code>body</code> is closed.</h3></div> |
not allowed after the <code>body</code> is closed.</h3></div> |
589 |
|
|
1051 |
<div class="section" id="element-not-allowed:minus"><h3>This element is not allowed in this |
<div class="section" id="element-not-allowed:minus"><h3>This element is not allowed in this |
1052 |
context.</h3></div> |
context.</h3></div> |
1053 |
|
|
1054 |
<div class="section" id="element-not-allowed:meta-charset"><h3>The character encoding declaration must be the |
<div class="section" id="element-not-allowed:meta-charset"><h3>文字符号化宣言が <code>head</code> |
1055 |
first element in the <code>head</code> element.</h3></div> |
要素の最初の子要素ではありません。</h3> |
1056 |
|
<p>The character encoding declaration |
1057 |
|
(<code class="html example"><meta charset="<var>...</var>"></code> or |
1058 |
|
<code class="html example"><meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code> |
1059 |
|
must be the first child element in the <code>head</code> element.</p> |
1060 |
|
|
1061 |
|
<p>The character encoding declaration have to occur near the beginning |
1062 |
|
of the document to ensure that Web browsers can be determine the |
1063 |
|
character encoding of the document.</p> |
1064 |
|
|
1065 |
|
<p>The <code>title</code> element and other metadata elements must |
1066 |
|
appear after any character encoding declaration is processed.</p> |
1067 |
|
</div> |
1068 |
|
|
1069 |
<div class="section" id="element-not-allowed:metadata"><h3>This element is not allowed where metadata |
<div class="section" id="element-not-allowed:metadata"><h3>This element is not allowed where metadata |
1070 |
content is expected.</h3></div> |
content is expected.</h3></div> |
1118 |
<div class="section" id="element-not-allowed:atom|TextConstruct"><h3>This element is not allowed in Text |
<div class="section" id="element-not-allowed:atom|TextConstruct"><h3>This element is not allowed in Text |
1119 |
construct.</h3></div> |
construct.</h3></div> |
1120 |
|
|
1121 |
<div class="section" id="element-not-defined"><h3>This element is not defined.</h3></div> |
<div class="section" id="element-not-defined"><h3>この要素は定義されていません。</h3> |
1122 |
|
<p>The element is not one of elements allowed |
1123 |
|
in the latest version of relevant specifications.</p> |
1124 |
|
|
1125 |
|
<p>The element cannot be used.</p> |
1126 |
|
|
1127 |
|
<dl class="switch"> |
1128 |
|
<dt><code>event-source</code> element</dt> |
1129 |
|
<dd>The element was renamed as <em><code>eventsource</code> |
1130 |
|
element</em> (no hyphen).</dd> |
1131 |
|
<dt><code>m</code> element</dt> |
1132 |
|
<dd>The element was renamed as <em><code>mark</code> |
1133 |
|
element</em>.</dd> |
1134 |
|
</dl> |
1135 |
|
</div> |
1136 |
|
|
1137 |
<div class="section" id="no-significant-content"><h3>No significant content is contained |
<div class="section" id="no-significant-content"><h3>No significant content is contained |
1138 |
in this element.</h3></div> |
in this element.</h3></div> |
1214 |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
<div class="section" id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be |
1215 |
used for the image contained in an <code>a</code> element.</h3></div> |
used for the image contained in an <code>a</code> element.</h3></div> |
1216 |
|
|
1217 |
<div class="section" id="attribute-not-defined"><h3>This attribute is not defined.</h3> |
<div class="section" id="attribute-not-defined"><h3>この属性は定義されていません。</h3> |
1218 |
<p>The attribute is not one of attributes allowed for the element |
<p>The attribute is not one of attributes allowed for the element |
1219 |
in the latest version of relevant specifications.</p> |
in the latest version of relevant specifications.</p> |
1220 |
|
|
1221 |
<p>The attribute cannot be used.</p> |
<p>The attribute cannot be used.</p> |
1222 |
|
|
1223 |
<dl> |
<dl class="switch"> |
1224 |
|
<dt><code>align</code> attribute (various HTML elements)</dt> |
1225 |
|
<dt><code>border</code> attribute (various HTML elements)</dt> |
1226 |
|
<dd>These attributes are no longer part of HTML. You can use CSS |
1227 |
|
properties to control the presentation of the element.</dd> |
1228 |
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
1229 |
<dd>The attribute was part of HTML5 draft but then dropped. |
<dd>The attribute was part of HTML5 draft but then dropped. |
1230 |
Similar functionality can be implemented by scripts.</dd> |
Similar functionality can be implemented by scripts.</dd> |
1231 |
|
<dt><code>language</code> attribute (<code>script</code> element)</dt> |
1232 |
|
<dd>The attribute is no longer the standard way to specify the |
1233 |
|
scripting language. If you are using JavaScript, then no explicit |
1234 |
|
specification of the scripting language is necessary, so you can |
1235 |
|
write the element like: |
1236 |
|
<p><code class="html example code"><script><br><!-- |
1237 |
|
--> /* JavaScript code */<br><!-- |
1238 |
|
--></script></code></p> |
1239 |
|
If you are using different scripting language from JavaScript, or |
1240 |
|
you want to declare the scripting language explicitly, you should |
1241 |
|
use the <code>type</code> attribute, as follows: |
1242 |
|
<dl class="switch"> |
1243 |
|
<dt>JavaScript</dt> |
1244 |
|
<dd>Use |
1245 |
|
<code class="html example"><script type="text/javascript"></code>.</dd> |
1246 |
|
<dt>VBScript</dt> |
1247 |
|
<dd>Use |
1248 |
|
<code class="html example"><script type="text/vbscript"></code>.</dd> |
1249 |
|
</dl> |
1250 |
|
</dd> |
1251 |
</dl> |
</dl> |
1252 |
</div> |
</div> |
1253 |
|
|
1289 |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
<div class="section" id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be |
1290 |
used in XML document.</h3></div> |
used in XML document.</h3></div> |
1291 |
|
|
1292 |
<div class="section" id="in-XML:xml:lang"><h3>名前空間に属さな\xE3\x81\x84 <code>xml:lang</code> |
<div class="section" id="in-XML:xml:lang"><h3>名前空間に属さない <code>xml:lang</code> |
1293 |
属性が認められているのは HTML 文書中だけです。</h3></div> |
属性が認められているのは HTML 文書中だけです。</h3></div> |
1294 |
|
|
1295 |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
<div class="section" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
1492 |
<div class="section" id="duplicate-token"><h3>The token <code><var>{value}</var></code> |
<div class="section" id="duplicate-token"><h3>The token <code><var>{value}</var></code> |
1493 |
appears in the attribute value twice.</h3></div> |
appears in the attribute value twice.</h3></div> |
1494 |
|
|
1495 |
<div class="section" id="empty-attribute-value"><h3>The attribute value must not be empty.</h3></div> |
<div class="section" id="empty-attribute-value"><h3>属性値が空です。</h3></div> |
1496 |
|
|
1497 |
|
<div class="section" id="empty-style-sheet-title"><h3><code>title</code> 属性の値が空です。</h3> |
1498 |
|
<p>The <code>title</code> attribute value of the <code>link</code> |
1499 |
|
element that defines an alternate style sheet is an empty value.</p> |
1500 |
|
|
1501 |
|
<p>A <code>link</code> element whose <code>rel</code> attribute |
1502 |
|
is <code>alternate stylesheet</code> defines an alternate style sheet. |
1503 |
|
An alternate style sheet must be associated with a name using the |
1504 |
|
<code>title</code> attribute. The name cannot be empty.</p> |
1505 |
|
</div> |
1506 |
|
|
1507 |
<div class="section" id="float:out-of-range"><h3>The specified value is out of range.</h3></div> |
<div class="section" id="float:out-of-range"><h3>The specified value is out of range.</h3></div> |
1508 |
|
|
1670 |
文書では名前空間に属さない <code>lang</code> 属性だけが認められており、 |
文書では名前空間に属さない <code>lang</code> 属性だけが認められており、 |
1671 |
かつ効力があります。名前空間に属さない |
かつ効力があります。名前空間に属さない |
1672 |
<code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では |
<code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では |
1673 |
<code>lang</code> 属\xE6\x80\xA7も <code>xml:lang</code> 属性も認められています。</p> |
<code>lang</code> 属性も <code>xml:lang</code> 属性も認められています。</p> |
1674 |
|
|
1675 |
<p>通常、要素の言語情報は <em><code>lang</code> |
<p>通常、要素の言語情報は <em><code>lang</code> |
1676 |
属性だけ</em>を使って指定すれば十分です。</p> |
属性だけ</em>を使って指定すれば十分です。</p> |
1750 |
<div class="section" id="IMT:obsolete-parameter"><h3>An obsolete parameter |
<div class="section" id="IMT:obsolete-parameter"><h3>An obsolete parameter |
1751 |
<code><var>{value}</var></code> is used.</h3></div> |
<code><var>{value}</var></code> is used.</h3></div> |
1752 |
|
|
1753 |
<div class="section" id="IMT:obsolete-subtype"><h3>An obsolete Internet Media Type |
<div class="section" id="IMT:obsolete-subtype"><h3>廃止されたインターネット媒体型 |
1754 |
<code><var>{value}</var></code> is used.</h3></div> |
<code><var>{value}</var></code> が使われています。</h3> |
1755 |
|
<p>The specified Internet Media Type is registered with its intended |
1756 |
|
usage as <i>OBSOLETE</i>.</p> |
1757 |
|
|
1758 |
|
<dl class="swtich"> |
1759 |
|
<dt>Media type <code>text/ecmascript</code></dt> |
1760 |
|
<dd>Media type <code>text/ecmascript</code> is obsoleted in |
1761 |
|
favor of <code>application/ecmascript</code>. Note that |
1762 |
|
<em><code>text/javascript</code></em> would be the better alternative |
1763 |
|
in many cases.</dd> |
1764 |
|
<dt>Media type <code>text/javascript</code></dt> |
1765 |
|
<dd>Media type <code>text/javascript</code> is obsoleted by |
1766 |
|
<abbr>IETF</abbr> with backward incompatible alternate |
1767 |
|
<code>application/javascript</code> for architectural |
1768 |
|
purity.<!-- @@ ref? --> Those who prefer reality to academic |
1769 |
|
purity <em>may ignore</em> this warning.</dd> |
1770 |
|
</dl> |
1771 |
|
</div> |
1772 |
|
|
1773 |
<div class="section" id="IMT:parameter-missing"><h3>Parameter <code><var>{text}</var></code> have to |
<div class="section" id="IMT:parameter-missing"><h3>Parameter <code><var>{text}</var></code> have to |
1774 |
be specified for the Internet Media Type |
be specified for the Internet Media Type |