577 |
<section id="html5-parse-errors"> |
<section id="html5-parse-errors"> |
578 |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
579 |
|
|
580 |
|
<div class="section" id="after-after-frameset"><h3>There is a start tag |
581 |
|
<code><<var>{text}</var>></code> is after the <code>html</code> element |
582 |
|
is closed.</h3></div> |
583 |
|
|
584 |
|
<div class="section" id="after-after-frameset:/"><h3>There is an end tag |
585 |
|
<code></<var>{text}</var>></code> is after the <code>html</code> element |
586 |
|
is closed.</h3></div> |
587 |
|
|
588 |
<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 |
589 |
not allowed after the <code>body</code> is closed.</h3></div> |
not allowed after the <code>body</code> is closed.</h3></div> |
590 |
|
|
1052 |
<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 |
1053 |
context.</h3></div> |
context.</h3></div> |
1054 |
|
|
1055 |
<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>The character encoding declaration is not the |
1056 |
first element in the <code>head</code> element.</h3></div> |
first child element in the <code>head</code> element.</h3> |
1057 |
|
<p>The character encoding declaration |
1058 |
|
(<code class="html example"><meta charset="<var>...</var>"></code> or |
1059 |
|
<code class="html example"><meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code> |
1060 |
|
must be the first child element in the <code>head</code> element.</p> |
1061 |
|
|
1062 |
|
<p>The character encoding declaration have to occur near the beginning |
1063 |
|
of the document to ensure that Web browsers can be determine the |
1064 |
|
character encoding of the document.</p> |
1065 |
|
|
1066 |
|
<p>The <code>title</code> element and other metadata elements must |
1067 |
|
appear after any character encoding declaration is processed.</p> |
1068 |
|
</div> |
1069 |
|
|
1070 |
<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 |
1071 |
content is expected.</h3></div> |
content is expected.</h3></div> |
1119 |
<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 |
1120 |
construct.</h3></div> |
construct.</h3></div> |
1121 |
|
|
1122 |
<div class="section" id="element-not-defined"><h3>This element is not defined.</h3></div> |
<div class="section" id="element-not-defined"><h3>This element is not defined.</h3> |
1123 |
|
<p>The element is not one of elements allowed |
1124 |
|
in the latest version of relevant specifications.</p> |
1125 |
|
|
1126 |
|
<p>The element cannot be used.</p> |
1127 |
|
|
1128 |
|
<dl class="switch"> |
1129 |
|
<dt><code>event-source</code> element</dt> |
1130 |
|
<dd>The element was renamed as <em><code>eventsource</code> |
1131 |
|
element</em> (no hyphen).</dd> |
1132 |
|
<dt><code>m</code> element</dt> |
1133 |
|
<dd>The element was renamed as <em><code>mark</code> |
1134 |
|
element</em>.</dd> |
1135 |
|
</dl> |
1136 |
|
</div> |
1137 |
|
|
1138 |
<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 |
1139 |
in this element.</h3></div> |
in this element.</h3></div> |
1221 |
|
|
1222 |
<p>The attribute cannot be used.</p> |
<p>The attribute cannot be used.</p> |
1223 |
|
|
1224 |
<dl> |
<dl class="switch"> |
1225 |
|
<dt><code>align</code> attribute (various HTML elements)</dt> |
1226 |
|
<dt><code>border</code> attribute (various HTML elements)</dt> |
1227 |
|
<dd>These attributes are no longer part of HTML. You can use CSS |
1228 |
|
properties to control the presentation of the element.</dd> |
1229 |
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
<dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt> |
1230 |
<dd>The attribute was part of HTML5 draft but then dropped. |
<dd>The attribute was part of HTML5 draft but then dropped. |
1231 |
Similar functionality can be implemented by scripts.</dd> |
Similar functionality can be implemented by scripts.</dd> |
1232 |
|
<dt><code>language</code> attribute (<code>script</code> element)</dt> |
1233 |
|
<dd>The attribute is no longer the standard way to specify the |
1234 |
|
scripting language. If you are using JavaScript, then no explicit |
1235 |
|
specification of the scripting language is necessary, so you can |
1236 |
|
write the element like: |
1237 |
|
<p><code class="html example code"><script><br><!-- |
1238 |
|
--> /* JavaScript code */<br><!-- |
1239 |
|
--></script></code></p> |
1240 |
|
If you are using different scripting language from JavaScript, or |
1241 |
|
you want to declare the scripting language explicitly, you should |
1242 |
|
use the <code>type</code> attribute, as follows: |
1243 |
|
<dl class="switch"> |
1244 |
|
<dt>JavaScript</dt> |
1245 |
|
<dd>Use |
1246 |
|
<code class="html example"><script type="text/javascript"></code>.</dd> |
1247 |
|
<dt>VBScript</dt> |
1248 |
|
<dd>Use |
1249 |
|
<code class="html example"><script type="text/vbscript"></code>.</dd> |
1250 |
|
</dl> |
1251 |
|
</dd> |
1252 |
</dl> |
</dl> |
1253 |
</div> |
</div> |
1254 |
|
|
1493 |
<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> |
1494 |
appears in the attribute value twice.</h3></div> |
appears in the attribute value twice.</h3></div> |
1495 |
|
|
1496 |
<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>The attribute value is empty.</h3></div> |
1497 |
|
|
1498 |
|
<div class="section" id="empty-style-sheet-title"><h3>The value of the <code>title</code> attribute |
1499 |
|
is empty.</h3> |
1500 |
|
<p>The <code>title</code> attribute value of the <code>link</code> |
1501 |
|
element that defines an alternate style sheet is an empty value.</p> |
1502 |
|
|
1503 |
|
<p>A <code>link</code> element whose <code>rel</code> attribute |
1504 |
|
is <code>alternate stylesheet</code> defines an alternate style sheet. |
1505 |
|
An alternate style sheet must be associated with a name using the |
1506 |
|
<code>title</code> attribute. The name cannot be empty.</p> |
1507 |
|
</div> |
1508 |
|
|
1509 |
<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> |
1510 |
|
|
1754 |
<code><var>{value}</var></code> is used.</h3></div> |
<code><var>{value}</var></code> is used.</h3></div> |
1755 |
|
|
1756 |
<div class="section" id="IMT:obsolete-subtype"><h3>An obsolete Internet Media Type |
<div class="section" id="IMT:obsolete-subtype"><h3>An obsolete Internet Media Type |
1757 |
<code><var>{value}</var></code> is used.</h3></div> |
<code><var>{value}</var></code> is used.</h3> |
1758 |
|
<p>The specified Internet Media Type is registered with its intended |
1759 |
|
usage as <i>OBSOLETE</i>.</p> |
1760 |
|
|
1761 |
|
<dl class="swtich"> |
1762 |
|
<dt>Media type <code>text/ecmascript</code></dt> |
1763 |
|
<dd>Media type <code>text/ecmascript</code> is obsoleted in |
1764 |
|
favor of <code>application/ecmascript</code>. Note that |
1765 |
|
<em><code>text/javascript</code></em> would be the better alternative |
1766 |
|
in many cases.</dd> |
1767 |
|
<dt>Media type <code>text/javascript</code></dt> |
1768 |
|
<dd>Media type <code>text/javascript</code> is obsoleted by |
1769 |
|
<abbr>IETF</abbr> with backward incompatible alternate |
1770 |
|
<code>application/javascript</code> for architectural |
1771 |
|
purity.<!-- @@ ref? --> Those who prefer reality to academic |
1772 |
|
purity <em>may ignore</em> this warning.</dd> |
1773 |
|
</dl> |
1774 |
|
</div> |
1775 |
|
|
1776 |
<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 |
1777 |
be specified for the Internet Media Type |
be specified for the Internet Media Type |