11 |
<body> |
<body> |
12 |
<h1>Description of Errors</h1> |
<h1>Description of Errors</h1> |
13 |
|
|
14 |
<section id="html5-parse-errors"> |
<section id="html5-tokenize-error"> |
15 |
<h2>HTML5 Parse Errors</h2> |
<h2>HTML5 Parse Errors in Tokenization Stage</h2> |
|
|
|
|
<d:item name="after head" |
|
|
class="parse-error"> |
|
|
<d:message xml:lang="en">The <code><var>$0</var></code> element cannot be |
|
|
inserted between <code>head</code> and <code>body</code> elements.</d:message> |
|
|
<d:desc xml:lang="en"> |
|
|
<p>A start tag occurs after the <code>head</code> element is closed |
|
|
but before the <code>body</code> element is opened. |
|
|
The document is non-conforming.</p> |
|
|
</d:desc> |
|
|
</d:item> |
|
16 |
|
|
17 |
<d:item name="duplicate attribute" |
<d:item name="duplicate attribute" |
18 |
class="tokenize-error"> |
class="tokenize-error"> |
45 |
|
|
46 |
</section> |
</section> |
47 |
|
|
48 |
|
<section id="html5-parse-errors"> |
49 |
|
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
50 |
|
|
51 |
|
<d:item name="after head" |
52 |
|
class="parse-error"> |
53 |
|
<d:message xml:lang="en">The <code><var>$0</var></code> element cannot be |
54 |
|
inserted between <code>head</code> and <code>body</code> elements.</d:message> |
55 |
|
<d:desc xml:lang="en"> |
56 |
|
<p>A start tag occurs after the <code>head</code> element is closed |
57 |
|
but before the <code>body</code> element is opened. |
58 |
|
The document is non-conforming.</p> |
59 |
|
</d:desc> |
60 |
|
</d:item> |
61 |
|
|
62 |
|
<d:item name="no DOCTYPE" |
63 |
|
class="parse-error"> |
64 |
|
<d:message xml:lang="en">This document does not start with the |
65 |
|
<code>DOCTYPE</code> declaration.</d:message> |
66 |
|
</d:item> |
67 |
|
|
68 |
|
<d:item name="not closed" |
69 |
|
class="parse-error"> |
70 |
|
<d:message xml:lang="en">Element <code><var>$0</var></code> is not |
71 |
|
closed.</d:message> |
72 |
|
</d:item> |
73 |
|
|
74 |
|
<d:item name="not HTML5" |
75 |
|
class="parse-error"> |
76 |
|
<d:message xml:lang="en">This document is written in an old version of |
77 |
|
HTML.</d:message> |
78 |
|
</d:item> |
79 |
|
|
80 |
|
<d:item name="unmatched end tag" |
81 |
|
class="parse-error"> |
82 |
|
<d:message xml:lang="en">Element <code><var>$0</var></code> is not |
83 |
|
opened.</d:message> |
84 |
|
</d:item> |
85 |
|
|
86 |
|
</section> |
87 |
|
|
88 |
<section id="element-content-model-errors"> |
<section id="element-content-model-errors"> |
89 |
<h2>Element Content Model Errors</h2> |
<h2>Element Content Model Errors</h2> |
90 |
|
|
187 |
</d:desc> |
</d:desc> |
188 |
</d:item> |
</d:item> |
189 |
|
|
190 |
enumerated:invalid;attribute-error;This attribute only allow a limited set of values and the specified value is not one of them. |
</section> |
191 |
no DOCTYPE;parse-error;This document does not start with the <code>DOCTYPE</code> declaration. |
|
192 |
not HTML5;parse-error;This document is written in an old version of HTML. |
<section id="attribute-value-errors"> |
193 |
not closed;parse-error;Element <code>$0</code> is not closed. |
<h2>Attribute Value Errors</h2> |
|
unmatched end tag;parse-error;Element <code>$0</code> is not opened. |
|
|
|
|
|
table:no cell in last row;table-model-error;The table has no cell (<code>td</code> or <code>th</code>) in the last row. |
|
|
|
|
|
s:IMT:obsolete subtype;should;An <em>obsolete</em> subtype is used. |
|
|
s:IMT:private subtype;should;A private (<code>x-</code> or <code>x.</code>) subtype is used. |
|
|
s:IMT:unregistered subtype;should;The subtype is not registered to IANA. |
|
194 |
|
|
195 |
s:URI::empty path;should;This IRI should explicitly end with <code>/</code>. |
<d:item name="enumerated:invalid" |
196 |
m:URI::syntax error;must;This IRI is not syntactically valid. |
class="attribute-error"> |
197 |
|
<d:message xml:lang="en">This attribute only allow a limited set of |
198 |
|
values and the specified value is not one of them.</d:message> |
199 |
|
</d:item> |
200 |
|
|
201 |
|
</section> |
202 |
|
|
203 |
|
<section id="table-model-errors"> |
204 |
|
<h2>Table Model Errors</h2> |
205 |
|
|
206 |
|
<d:item name="table:no cell in last row" |
207 |
|
class="table-model-error"> |
208 |
|
<d:message xml:lang="en">The table has no cell (<code>td</code> or |
209 |
|
<code>th</code>) in the last row.</d:message> |
210 |
|
</d:item> |
211 |
|
|
212 |
|
</section> |
213 |
|
|
214 |
|
<section id="imt-warnings"> |
215 |
|
<h2>Internet Media Type Warnings</h2> |
216 |
|
|
217 |
|
<d:item name="IMT:obsolete subtype" |
218 |
|
class="should" level="s"> |
219 |
|
<d:message xml:lang="en">An <em>obsolete</em> subtype is used.</d:message> |
220 |
|
</d:item> |
221 |
|
|
222 |
|
<d:item name="IMT:private subtype" |
223 |
|
class="should" level="s"> |
224 |
|
<d:message xml:lang="en">A private (<code>x-</code> or <code>x.</code>) |
225 |
|
subtype is used.</d:message> |
226 |
|
</d:item> |
227 |
|
|
228 |
|
<d:item name="IMT:unregistered subtype" |
229 |
|
class="should" level="s"> |
230 |
|
<d:message xml:lang="en">The subtype is not registered to IANA.</d:message> |
231 |
|
<!-- TODO: Unknown message?? --> |
232 |
|
</d:item> |
233 |
|
|
234 |
|
</section> |
235 |
|
|
236 |
|
<section id="uri-errors"> |
237 |
|
<h2>URI (or IRI) Errors</h2> |
238 |
|
|
239 |
|
<d:item name="URI::syntax error" |
240 |
|
class="must" level="m"> |
241 |
|
<d:message xml:lang="en">This string is not an IRI syntactically.</d:message> |
242 |
|
</d:item> |
243 |
|
|
244 |
|
</section> |
245 |
|
|
246 |
|
<section id="uri-errors"> |
247 |
|
<h2>URI (or IRI) Errors</h2> |
248 |
|
|
249 |
|
<d:item name="URI::empty path" |
250 |
|
class="should" level="s"> |
251 |
|
<d:message xml:lang="en">This IRI should explicitly end with |
252 |
|
<code>/</code>.</d:message> |
253 |
|
</d:item> |
254 |
|
|
255 |
</section> |
</section> |
256 |
|
|
257 |
<section id="unsupported-messages"> |
<section id="unsupported-messages"> |
258 |
<h2><i>Unsupported</i> Messages</h2> |
<h2><i>Unsupported</i> Messages</h2> |
259 |
|
|
260 |
<d:item name="unsupported:attribute" |
<d:item name="attribute" |
261 |
class="unsupported"> |
class="unsupported" level="unsupported"> |
262 |
<d:message xml:lang="en">This attribute is not supported by the |
<d:message xml:lang="en">This attribute is not supported by the |
263 |
conformance checker; <em>it might or might not be conforming</em>.</d:message> |
conformance checker; <em>it might or might not be conforming</em>.</d:message> |
264 |
<d:desc xml:lang="en"> |
<d:desc xml:lang="en"> |
267 |
</d:desc> |
</d:desc> |
268 |
</d:item> |
</d:item> |
269 |
|
|
270 |
<d:item name="unsupported:element" |
<d:item name="element" |
271 |
class="unsupported"> |
class="unsupported" level="unsupported"> |
272 |
<d:message xml:lang="en">This element is not supported by the |
<d:message xml:lang="en">This element is not supported by the |
273 |
conformance checker; <em>it might or might not be conforming</em>.</d:message> |
conformance checker; <em>it might or might not be conforming</em>.</d:message> |
274 |
<d:desc xml:lang="en"> |
<d:desc xml:lang="en"> |
277 |
</d:desc> |
</d:desc> |
278 |
</d:item> |
</d:item> |
279 |
|
|
280 |
<d:item name="unsupported:link type" |
<d:item name="link type" |
281 |
class="unsupported"> |
class="unsupported" level="unsupported"> |
282 |
<d:message xml:lang="en">The link type <code>$0</code> is not standardized |
<d:message xml:lang="en">The link type <code>$0</code> is not standardized |
283 |
or registered at the time of the release of the conformance checker; |
or registered at the time of the release of the conformance checker; |
284 |
<em>it is non-conforming unless it has now been registered</em>.</d:message> |
<em>it is non-conforming unless it has now been registered</em>.</d:message> |
298 |
|
|
299 |
</section> |
</section> |
300 |
|
|
301 |
|
<d:catalog> |
302 |
|
manakaiCompatMode:quirks;;Quirks Mode |
303 |
|
manakaiCompatMode:limited quirks;;Limited Quirks Mode |
304 |
|
manakaiCompatMode:no quirks;;No Quirks Mode |
305 |
|
|
306 |
|
manakaiIsHTML:1;;HTML Document |
307 |
|
manakaiIsHTML:0;;XML Document |
308 |
|
</d:catalog> |
309 |
|
|
310 |
<section id="license"> |
<section id="license"> |
311 |
<h2>License of This Document</h2> |
<h2>License of This Document</h2> |
312 |
|
|