1 |
<!DOCTYPE html> |
2 |
<html xmlns="http://www.w3.org/1999/xhtml" |
3 |
xmlns:d="http://suika.fam.cx/~wakaba/archive/2007/wdcc-desc/" |
4 |
id="error-description"> |
5 |
<head> |
6 |
<title xml:lang="en">Description of Errors — |
7 |
Web Document Conformance Checker (BETA)</title> |
8 |
<link rel="stylesheet" href="cc-style"/> |
9 |
<link rel="license" href="#license"/> |
10 |
</head> |
11 |
<body> |
12 |
<h1>Description of Errors</h1> |
13 |
|
14 |
<section id="html5-tokenize-error"> |
15 |
<h2>HTML5 Parse Errors in Tokenization Stage</h2> |
16 |
|
17 |
<d:item name="after html" |
18 |
class="parse-error"> |
19 |
<d:message xml:lang="en">Tag <code><<var>$0</var>></code> |
20 |
is not allowed after the end tag <code></html></code>.</d:message> |
21 |
<d:desc xml:lang="en"> |
22 |
<p>The start or end tag of an element appears after the |
23 |
<code>html</code> element has been closed. The document is |
24 |
non-conforming.</p> |
25 |
|
26 |
<p>Any content of the document other than comments |
27 |
must be put into the <code>html</code> element.</p> |
28 |
</d:desc> |
29 |
</d:item> |
30 |
|
31 |
<d:item name="bare ero" |
32 |
class="tokenize-error"> |
33 |
<d:message xml:lang="en">The <code>&</code> character must |
34 |
introduce a reference.</d:message> |
35 |
<d:desc xml:lang="en"> |
36 |
<p>An <code>&</code> (<code>U+0026</code> |
37 |
<code class="charname">AMPERSAND</code>) character which |
38 |
is not part of any reference appears in the input stream. |
39 |
The document is non-conforming.</p> |
40 |
|
41 |
<p>The <code>&</code> character must |
42 |
be the first character of a reference: |
43 |
<dl> |
44 |
<dt>Named entity reference</dt> |
45 |
<dd><pre class="html example"><code>&<var>entity-name</var>;</code></pre> |
46 |
where <var>entity-name</var> is the name of the |
47 |
character entity to be referenced.</dd> |
48 |
<dt>Numeric character reference</dt> |
49 |
<dd><pre class="html example"><code>&#<var>d</var>;</code></pre> |
50 |
where <var>d</var> is the decimal representation of |
51 |
the code position of the character to be referenced.</dd> |
52 |
<dt>Hexadecimal character reference</dt> |
53 |
<dd><pre class="html example"><code>&#x<var>h</var>;</code></pre> |
54 |
where <var>h</var> is the hexadecimal representation |
55 |
of the code position of the character to be referenced.</dd> |
56 |
</dl> |
57 |
</p> |
58 |
|
59 |
<p>To represent <code>&</code> as a data character, use |
60 |
named entity reference: |
61 |
<pre class="html example"><code>&amp;</code></pre> |
62 |
</p> |
63 |
</d:desc> |
64 |
</d:item> |
65 |
|
66 |
<d:item name="bare stago" |
67 |
class="tokenize-error"> |
68 |
<d:message xml:lang="en">A <code><</code> character is not followed |
69 |
by tag name or by a <code>!</code> character.</d:message> |
70 |
<d:desc xml:lang="en"> |
71 |
<p>A <code><</code> (<code>U+003C</code> <code class="charname">LESS-THAN |
72 |
SIGN</code>) character which is not part of any markup appears |
73 |
in the input stream.</p> |
74 |
|
75 |
<p>The <code><</code> character as a data character must |
76 |
be escaped as: |
77 |
<pre class="html example"><code><lt;</code></pre> |
78 |
</p> |
79 |
</d:desc> |
80 |
</d:item> |
81 |
|
82 |
<d:item name="bare nero" |
83 |
class="tokenize-error"> |
84 |
<d:message xml:lang="en">The decimal representation of the code position |
85 |
of a character must be specified after <code>&#</code>.</d:message> |
86 |
<d:desc xml:lang="en"> |
87 |
<p>An <code>&</code> (<code>U+0026</code> |
88 |
<code class="charname">AMPERSAND</code>) character immediately |
89 |
followed by a <code>#</code> (<code>U+0023</code> |
90 |
<code>NUMBER SIGN</code>) character which |
91 |
is not part of any reference appears in the input stream. |
92 |
The document is non-conforming.</p> |
93 |
|
94 |
<p>The string <code>&#</code> must be the first two characters |
95 |
<code>NUMBER SIGN</code>) character must be the first two characters |
96 |
of a reference: |
97 |
<dl> |
98 |
<dt>Numeric character reference</dt> |
99 |
<dd><pre class="html example"><code>&#<var>d</var>;</code></pre> |
100 |
where <var>d</var> is the decimal representation of |
101 |
the code point of the character to be referenced.</dd> |
102 |
<dt>Hexadecimal character reference</dt> |
103 |
<dd><pre class="html example"><code>&#x<var>h</var>;</code></pre> |
104 |
where <var>h</var> is the hexadecimal representation |
105 |
of the code point of the character to be referenced.</dd> |
106 |
</dl> |
107 |
</p> |
108 |
|
109 |
<p>To represent <code>&#</code> as data characters, use |
110 |
named entity reference: |
111 |
<pre class="html example"><code>&amp;#</code></pre> |
112 |
</p> |
113 |
</d:desc> |
114 |
</d:item> |
115 |
|
116 |
<d:item name="bare hcro" |
117 |
class="tokenize-error"> |
118 |
<d:message xml:lang="en">The hexadecimal representation of the code position |
119 |
of a character must be specified after <code>&#x</code>.</d:message> |
120 |
<d:desc xml:lang="en"> |
121 |
<p>The string <code>&#x</code> or <code>&#X</code> which |
122 |
is not part of any reference appears in the input stream. |
123 |
The document is non-conforming.</p> |
124 |
|
125 |
<p>The string <code>&#x</code> or <code>&#X</code> must |
126 |
be the first three characters of a hexadecimal reference: |
127 |
<pre class="html example"><code>&#x<var>h</var>;</code></pre> |
128 |
where <var>h</var> is the hexadecimal representation |
129 |
of the code point of the character to be referenced.</p> |
130 |
|
131 |
<p>To represent <code>&#x</code> as data characters, use |
132 |
named entity reference: |
133 |
<pre class="html example"><code>&amp;#x</code></pre> |
134 |
</p> |
135 |
</d:desc> |
136 |
</d:item> |
137 |
|
138 |
<d:item name="dash in comment" |
139 |
class="tokenize-error"> |
140 |
<d:message xml:lang="en">There is a <code>--</code> sequence |
141 |
in a comment.</d:message> |
142 |
<d:desc xml:lang="en"> |
143 |
<p>There is a <code>-</code> (<code>U+002D</code> |
144 |
<code class="charname">HYPHEN-MINUS</code>) character |
145 |
at the end of the comment or a <code>--</code> sequence |
146 |
in the comment. The document is non-conforming.</p> |
147 |
|
148 |
<p>Comments cannot contain a string <code>--</code>, as in XML. |
149 |
Unlike SGML, there cannot be more than one comments |
150 |
(where <i>comment</i> is an SGML term) in the comment |
151 |
declaration.</p> |
152 |
</d:desc> |
153 |
</d:item> |
154 |
|
155 |
<d:item name="duplicate attribute" |
156 |
class="tokenize-error"> |
157 |
<d:message xml:lang="en">There are two attributes with same name.</d:message> |
158 |
<d:desc xml:lang="en"> |
159 |
<p>There are more than one attributes with the same |
160 |
name in a tag. The document is non-conforming.</p> |
161 |
|
162 |
<p>The <code>motion</code> attribute is not part of the HTML standard. |
163 |
Use <code>img</code> element with animation GIF instead.</p> |
164 |
</d:desc> |
165 |
</d:item> |
166 |
|
167 |
<d:item name="nestc" |
168 |
class="tokenize-error"> |
169 |
<d:message xml:lang="en">Void element syntax (<code>/></code>) cannot be |
170 |
used for this element.</d:message> |
171 |
<d:desc xml:lang="en"> |
172 |
<p>Void element syntax (<code>/></code>) must not be used |
173 |
for the element. The document is non-conforming.</p> |
174 |
|
175 |
<p>The void element syntax can only be |
176 |
used for <code>base</code>, <code>link</code>, <code>meta</code>, |
177 |
<code>hr</code>, <code>br</code>, <code>img</code>, |
178 |
<code>embed</code>, <code>param</code>, <code>area</code>, |
179 |
<code>col</code>, and <code>input</code> elements.</p> |
180 |
|
181 |
<p>Note that, unlike in XML, the void element syntax has |
182 |
no effect in HTML.</p> |
183 |
</d:desc> |
184 |
</d:item> |
185 |
|
186 |
|
187 |
<d:item name="pio" |
188 |
class="tokenize-error"> |
189 |
<d:message xml:lang="en">Processing instruction |
190 |
(<code><?<var>...</var>?></code>) cannot be used.</d:message> |
191 |
<d:desc xml:lang="en"> |
192 |
<p>Processing instructions (<code><?<var>...</var>?></code>), |
193 |
including XML declaration (<code><?xml <var>...</var>?></code>) |
194 |
and XML style sheet <abbr title="processing instruction">PI</abbr> |
195 |
(<code><xml-stylesheet <var>...</var>?></code>), are not allowed |
196 |
in the HTML syntax. The document is non-conforming.</p> |
197 |
|
198 |
<p>If it is necessary to embed a processing instruction |
199 |
in the HTML document, you must use the XML syntax instead.</p> |
200 |
|
201 |
<p>In the HTML syntax, XML declaration is not necessary.</p> |
202 |
|
203 |
<p>Instead of XML style sheet, |
204 |
<abbr title="processing instruction">PI</abbr>s, you must |
205 |
use the HTML <code>link</code> element whose <code>rel</code> |
206 |
attribute is set to <code>stylesheet</code> (or <code>alternate |
207 |
stylesheet</code> for an aleternate style sheet).</p> |
208 |
|
209 |
<p>Web browsers will parse processing instructions as bogus |
210 |
comments. Some legacy Web browsers, such as IE:mac and |
211 |
some mobile browsers, will display processing instructions |
212 |
as string.</p> |
213 |
</d:desc> |
214 |
</d:item> |
215 |
|
216 |
</section> |
217 |
|
218 |
<section id="html5-parse-errors"> |
219 |
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
220 |
|
221 |
<d:item name="after head" |
222 |
class="parse-error"> |
223 |
<d:message xml:lang="en">The <code><var>$0</var></code> element cannot be |
224 |
inserted between <code>head</code> and <code>body</code> elements.</d:message> |
225 |
<d:desc xml:lang="en"> |
226 |
<p>A start tag appears after the <code>head</code> element is closed |
227 |
but before the <code>body</code> element is opened. |
228 |
The document is non-conforming.</p> |
229 |
</d:desc> |
230 |
</d:item> |
231 |
|
232 |
<d:item name="DOCTYPE in the middle" |
233 |
class="parse-error"> |
234 |
<d:message xml:lang="en">A <code>DOCTYPE</code> appears after any |
235 |
element or data character has been seen.</d:message> |
236 |
<d:desc xml:lang="en"> |
237 |
<p>A <code>DOCTYPE</code> appears after any element or data character |
238 |
has been seen. The document is non-conforming.</p> |
239 |
|
240 |
<p>The <code>DOCTYPE</code> must be placed before any |
241 |
tag, reference, or data character. Only white space characters |
242 |
and comments can be inserted before the <code>DOCTYPE</code>.</p> |
243 |
</d:desc> |
244 |
</d:item> |
245 |
|
246 |
<d:item name="in a:a" |
247 |
class="parse-error"> |
248 |
<d:message xml:lang="en">Anchor cannot be nested.</d:message> |
249 |
<d:desc xml:lang="en"> |
250 |
<p>HTML <code>a</code> elements cannot be nested. |
251 |
The document is non-conforming.</p> |
252 |
|
253 |
<p>In the HTML syntax, a start tag of the <code>a</code> |
254 |
implies the end tag of any opening <code>a</code> element.</p> |
255 |
</d:desc> |
256 |
</d:item> |
257 |
|
258 |
<d:item name="in body" |
259 |
class="parse-error"> |
260 |
<d:message xml:lang="en">Tag <code><<var>$0</var>></code> |
261 |
is not allowed in a <code>body</code> element.</d:message> |
262 |
<d:desc xml:lang="en"> |
263 |
<p>The start or end tag of an element, which |
264 |
cannot be a descendant of <code>body</code> element, appears |
265 |
in the input stream while the <code>body</code> element has been opened. |
266 |
The document is non-conforming.</p> |
267 |
</d:desc> |
268 |
</d:item> |
269 |
|
270 |
<d:item name="in head:head" |
271 |
class="parse-error"> |
272 |
<d:message xml:lang="en">Start tag <code><<var>head</var>></code> |
273 |
is not allowed in the <code>head</code> element.</d:message> |
274 |
<d:desc xml:lang="en"> |
275 |
<p>There is a start tag <code><head></code> in the |
276 |
<code><head></code> element. The document is non-conforming.</p> |
277 |
|
278 |
<p>In an HTML document there must not be more than |
279 |
one <code>head</code> element, therefore no more than one |
280 |
start tag <code><head></code> can appear in the input stream.</p> |
281 |
</d:desc> |
282 |
</d:item> |
283 |
|
284 |
<d:item name="in table" |
285 |
class="parse-error"> |
286 |
<d:message xml:lang="en">Tag <code><<var>$0</var>></code> |
287 |
is not allowed in a <code>table</code> element.</d:message> |
288 |
<d:desc xml:lang="en"> |
289 |
<p>The start or end tag of an element, which |
290 |
cannot be a child of <code>table</code> element, appears |
291 |
in the input stream while the <code>table</code> element has been opened |
292 |
but no other element has been opened. The document is non-conforming.</p> |
293 |
|
294 |
<p>In <code>table</code>, only table related elements |
295 |
are allowed; any other element must be contained in |
296 |
<code>td</code> or <code>th</code> element to form |
297 |
a part of the table, or <code>caption</code> element to create |
298 |
a table caption.</p> |
299 |
</d:desc> |
300 |
</d:item> |
301 |
|
302 |
<d:item name="in table:#character" |
303 |
class="parse-error"> |
304 |
<d:message xml:lang="en">Data character is not allowed in |
305 |
<code>table</code>.</d:message> |
306 |
<d:desc xml:lang="en"> |
307 |
<p>A data character appears in <code>table</code>. The document |
308 |
is non-conforming.</p> |
309 |
|
310 |
<p>In <code>table</code>, only table related elements |
311 |
are allowed; any other element and data character must be contained in |
312 |
<code>td</code> or <code>th</code> element to form |
313 |
a part of the table, or <code>caption</code> element to create |
314 |
a table caption.</p> |
315 |
</d:desc> |
316 |
</d:item> |
317 |
|
318 |
<d:item name="missing start tag:tr" |
319 |
class="parse-error"> |
320 |
<d:message xml:lang="en">Start tag of <code>tr</code> |
321 |
element is missing.</d:message> |
322 |
<d:desc> |
323 |
<p>Start tag of a <code>tr</code> element, which is <em>not</em> |
324 |
optional, is missing. The document is non-conforming.</p> |
325 |
|
326 |
<p>In a table section, a <code><tr></code> start tag |
327 |
must occur before any <code><td></code> or |
328 |
<code><th></code> start tag. Though the HTML5 parser |
329 |
implies the <code><tr></code> start tag before |
330 |
these start tags, it must be explicitly specified.</p> |
331 |
</d:desc> |
332 |
</d:item> |
333 |
|
334 |
<d:item name="no DOCTYPE" |
335 |
class="parse-error"> |
336 |
<d:message xml:lang="en">This document does not start with the |
337 |
<code>DOCTYPE</code>.</d:message> |
338 |
<d:desc> |
339 |
<p>The document does not start with a <code>DOCTYPE</code>. |
340 |
The document is non-conforming.</p> |
341 |
|
342 |
<p>An HTML document must start by a <code>DOCTYPE</code>: |
343 |
<pre class="html example"><code><!DOCTYPE HTML></code></pre> |
344 |
</p> |
345 |
|
346 |
<p>Only white space characters and comments are allowed |
347 |
before the <code>DOCTYPE</code>.</p> |
348 |
</d:desc> |
349 |
</d:item> |
350 |
|
351 |
<d:item name="not closed" |
352 |
class="parse-error"> |
353 |
<d:message xml:lang="en">Element <code><var>$0</var></code> is not |
354 |
closed.</d:message> |
355 |
<d:desc> |
356 |
<p>End tag of an element is not found before, for example, |
357 |
an end tag of another element appears or |
358 |
the end of the document. The document is non-conforming.</p> |
359 |
</d:desc> |
360 |
</d:item> |
361 |
|
362 |
<d:item name="not HTML5" |
363 |
class="parse-error"> |
364 |
<d:message xml:lang="en">This document is written in an old version of |
365 |
HTML.</d:message> |
366 |
<d:desc xml:lang="en"> |
367 |
<p>The document contains a <code>DOCTYPE</code> declaration |
368 |
that is different from HTML5 <code>DOCTYPE</code> (i.e. <code><!DOCTYPE |
369 |
HTML></code>). The document is non-conforming.</p> |
370 |
|
371 |
<p>The document might or might not be conformant to |
372 |
some version of HTML. However, conformance to any HTML |
373 |
specification other than HTML5 provides for no practical |
374 |
convenience, since Web borwsers will parse any |
375 |
HTML document (roughly) as defined in HTML5.</p> |
376 |
</d:desc> |
377 |
</d:item> |
378 |
|
379 |
<d:item name="unmatched end tag" |
380 |
class="parse-error"> |
381 |
<d:message xml:lang="en">Element <code><var>$0</var></code> is not |
382 |
opened.</d:message> |
383 |
<d:desc> |
384 |
<p>An end tag appears though no element with the same name |
385 |
has been opened. The document is non-conforming.</p> |
386 |
|
387 |
<p>For any end tag in HTML document, there must be a |
388 |
corresponding start tag.</p> |
389 |
</d:desc> |
390 |
</d:item> |
391 |
|
392 |
</section> |
393 |
|
394 |
<section id="element-content-model-errors"> |
395 |
<h2>Element Content Model Errors</h2> |
396 |
|
397 |
<d:item name="character not allowed" |
398 |
class="content-model-error"> |
399 |
<d:message xml:lang="en">Data character is not allowed in this |
400 |
context.</d:message> |
401 |
<d:desc xml:lang="en"> |
402 |
<p>A data character appears where it is not allowed in this |
403 |
context. The document is non-conforming.</p> |
404 |
|
405 |
<p>Possible causes: |
406 |
<dl> |
407 |
<dt>If the erred element is an inline-level element (such |
408 |
as <code>a</code> or <code>span</code>)</dt> |
409 |
<dd><p>A data character cannot be a child |
410 |
of certain sectioning elements such as <code>body</code>, |
411 |
<code>section</code>, and <code>blockquote</code>.</p> |
412 |
|
413 |
<p>Any inline-level content must be put |
414 |
in e.g. paragraph element such as <code>p</code>.</p></dd> |
415 |
<dt>If the erred element is a block-level element (such as |
416 |
<code>div</code> or <code>h<var>n</var></code>)</dt> |
417 |
<dd><p>Though some elements such as <code>div</code>, |
418 |
<code>li</code>, and <code>td</code> allow |
419 |
<em>either one</em> of block-level or inline-level content |
420 |
is allowed. If there is a block-level content, |
421 |
any inline-level content must be put |
422 |
in e.g. paragraph element such as <code>p</code>.</p></dd> |
423 |
</dl> |
424 |
</p> |
425 |
</d:desc> |
426 |
</d:item> |
427 |
|
428 |
<d:item name="child element missing" |
429 |
class="content-model-error"> |
430 |
<d:message xml:lang="en">There must be a <code><var>$0</var></code> |
431 |
element as a child of this element.</d:message> |
432 |
<d:desc xml:lang="en"> |
433 |
<p>The content model of the element is so defined that it |
434 |
must contain a <code><var>$0</var></code> child element. |
435 |
The document is non-conforming.</p> |
436 |
|
437 |
<p>For example: |
438 |
<ul> |
439 |
<li>The <code>head</code> element must contain exactly one |
440 |
<code>title</code> child element.</li> |
441 |
<li><a href="#child-element-missing:td%7Cth">The <code>tr</code> |
442 |
element must contain one or more <code>td</code> or <code>th</code> |
443 |
child element.</a></li> |
444 |
</ul> |
445 |
</p> |
446 |
</d:desc> |
447 |
</d:item> |
448 |
|
449 |
<d:item name="child element missing:td|th" |
450 |
class="content-model-error"> |
451 |
<d:message xml:lang="en">There must be a <code>td</code> |
452 |
or <code>th</code> element as a child of this element.</d:message> |
453 |
<d:desc xml:lang="en"> |
454 |
<p>The <code>tr</code> element must contain at least one |
455 |
<code>td</code> or <code>th</code> child element. The document |
456 |
is non-conforming.</p> |
457 |
</d:desc> |
458 |
</d:item> |
459 |
|
460 |
<d:item name="element not allowed" |
461 |
class="content-model-error"> |
462 |
<d:message xml:lang="en">This element is not allowed in this |
463 |
context.</d:message> |
464 |
<d:desc xml:lang="en"> |
465 |
<p>An element appears where it is not allowed. The document |
466 |
is non-conforming.</p> |
467 |
|
468 |
<p><strong>Note</strong>: The conformance checker does |
469 |
<em>not</em> support form elements yet.</p> |
470 |
|
471 |
<p>Possible causes: |
472 |
<dl> |
473 |
<dt>If the erred element is an inline-level element (such |
474 |
as <code>a</code> or <code>span</code>)</dt> |
475 |
<dd><p>An inline-level element cannot be a child |
476 |
of certain sectioning elements such as <code>body</code>, |
477 |
<code>section</code>, and <code>blockquote</code>.</p> |
478 |
|
479 |
<p>Any inline-level content must be put |
480 |
in e.g. paragraph element such as <code>p</code>.</p></dd> |
481 |
<dt>If the erred element is a block-level element (such as |
482 |
<code>div</code> or <code>h<var>n</var></code>)</dt> |
483 |
<dd><p>Though some elements such as <code>div</code>, |
484 |
<code>li</code>, and <code>td</code> allow |
485 |
<em>either one</em> of block-level or inline-level content |
486 |
is allowed. If there is a block-level content, |
487 |
any inline-level content must be put |
488 |
in e.g. paragraph element such as <code>p</code>.</p></dd> |
489 |
<dt>If the erred element is the root <code>html</code> element</dt> |
490 |
<dd><p>In an XHTML document, the root <code>html</code> |
491 |
element must have an <code>xmlns</code> attribute |
492 |
whose value is set to |
493 |
<code>http://www.w3.org/1999/xhtml</code>.</p></dd> |
494 |
</dl> |
495 |
</p> |
496 |
</d:desc> |
497 |
</d:item> |
498 |
|
499 |
</section> |
500 |
|
501 |
<section id="attribute-errors"> |
502 |
<h2>Attribute Errors</h2> |
503 |
|
504 |
<d:item name="attribute missing" |
505 |
class="attribute-error"> |
506 |
<d:message xml:lang="en">Required attribute <code><var>$0</var></code> |
507 |
is not specified.</d:message> |
508 |
<d:desc> |
509 |
<p>A required attribute is not specified. The document |
510 |
is non-conforming.</p> |
511 |
|
512 |
<p>Some attribute is defined as <i>required</i>. |
513 |
For example, any <code>img</code> element must have |
514 |
<code>alt</code> and <code>src</code> attributes specified. |
515 |
Without required attributes specified, user agents |
516 |
cannot provide the full functionality of the element |
517 |
to the user.</p> |
518 |
</d:desc> |
519 |
</d:item> |
520 |
|
521 |
<d:item name="in HTML:xml:lang" |
522 |
class="attribute-error"> |
523 |
<d:message xml:lang="en">The <code>xml:lang</code> attribute is not |
524 |
allowed in HTML document.</d:message> |
525 |
<d:desc> |
526 |
<p>The <code>xml:lang</code> attribute is not allowed in |
527 |
HTML document. The document is non-conforming.</p> |
528 |
|
529 |
<p>The <code>lang</code> attribute in the <code>null</code> |
530 |
namespace for HTML elements is defined as conforming <em>only</em> for |
531 |
XML document.</p> |
532 |
|
533 |
<p>To specify natural language information in HTML document, |
534 |
use <code>lang</code> attribute instead.</p> |
535 |
<!-- @@ ISSUE: xml:lang in non-HTML element in DOM5 HTML created |
536 |
from an HTML document? --> |
537 |
</d:desc> |
538 |
</d:item> |
539 |
|
540 |
<d:item name="in XML:charset" |
541 |
class="attribute-error"> |
542 |
<d:message xml:lang="en">The <code>charset</code> attribute is not |
543 |
allowed in XML document.</d:message> |
544 |
<d:desc> |
545 |
<p>The <code>charset</code> attribute of a |
546 |
<code>meta</code> element is not allowed in XML document. |
547 |
The document is non-conforming.</p> |
548 |
|
549 |
<p>To specify the character encoding used for serialization, |
550 |
if necessary, use XML declaration instead: |
551 |
<pre class="xml example"><code><?xml version="1.0" encoding="<var>encoding-name</var>"?></code></pre> |
552 |
</p> |
553 |
</d:desc> |
554 |
</d:item> |
555 |
|
556 |
<d:item name="in XML:lang" |
557 |
class="attribute-error"> |
558 |
<d:message xml:lang="en">The <code>lang</code> attribute is not |
559 |
allowed in XML document.</d:message> |
560 |
<d:desc> |
561 |
<p>The HTML <code>lang</code> attribute is not allowed in |
562 |
XML document. The document is non-conforming.</p> |
563 |
|
564 |
<p>The <code>lang</code> attribute in <code>null</code> |
565 |
namespace for HTML elements is defined as conforming <em>only</em> for |
566 |
HTML document.</p> |
567 |
|
568 |
<p>To specify natural language information in XML document, |
569 |
use <code>xml:lang</code> attribute instead.</p> |
570 |
</d:desc> |
571 |
</d:item> |
572 |
|
573 |
<d:item name="in XML:xmlns" |
574 |
class="attribute-error"> |
575 |
<d:message xml:lang="en">The <code>xmlns</code> attribute |
576 |
in the <code>null</code> namespace is not allowed in |
577 |
XHTML document. The document is non-conforming.</d:message> |
578 |
<d:desc> |
579 |
<p>The <code>xmlns</code> attribute in the <code>null</code> |
580 |
namespace is not allowed in XHTML document.</p> |
581 |
|
582 |
<p>This error should not occur in conformance-checking |
583 |
static documents.</p> |
584 |
</d:desc> |
585 |
</d:item> |
586 |
|
587 |
</section> |
588 |
|
589 |
<section id="attribute-value-errors"> |
590 |
<h2>Attribute Value Errors</h2> |
591 |
|
592 |
<d:item name="enumerated:invalid" |
593 |
class="attribute-value-error"> |
594 |
<d:message xml:lang="en">This attribute only allow a limited set of |
595 |
values and the specified value is not one of them.</d:message> |
596 |
</d:item> |
597 |
|
598 |
<d:item name="duplicate ID" |
599 |
class="attribute-value-error"> |
600 |
<d:message xml:lang="en">This identifier has already been |
601 |
assigned to another element.</d:message> |
602 |
<!-- @@ <id=a xml:id=a>? --> |
603 |
</d:item> |
604 |
|
605 |
<d:item name="link type:bad context" |
606 |
class="attribute-value-error"> |
607 |
<d:message xml:lang="en">The link type <code><var>$0</var></code> |
608 |
cannot be specified for this element.</d:message> |
609 |
<d:desc xml:lang="en"> |
610 |
<p>The specified link type cannot be used for the element. |
611 |
The document is non-conforming.</p> |
612 |
|
613 |
<p>Link types are associated with limited set of elements. |
614 |
They cannot be used with other elements.</p> |
615 |
|
616 |
<p>For example, link type <code>bookmark</code> |
617 |
can be used with <code>a</code> or <code>area</code> element, |
618 |
while it cannot be used with <code>link</code> element.</p> |
619 |
</d:desc> |
620 |
</d:item> |
621 |
|
622 |
<d:item name="link type:non-conforming" |
623 |
class="attribute-value-error"> |
624 |
<d:message xml:lang="en">The link type <code><var>$0</var></code> |
625 |
is non-conforming.</d:message> |
626 |
<d:desc xml:lang="en"> |
627 |
<p>The specified link type is non-conforming. The entire document |
628 |
is non-conforming.</p> |
629 |
|
630 |
<p>For example, in place of non-conforming link type <code>copyright</code> |
631 |
you must use link type <code>license</code>.</p> |
632 |
</d:desc> |
633 |
</d:item> |
634 |
|
635 |
<d:item name="reserved browsing context name" |
636 |
class="attribute-value-error"> |
637 |
<d:message xml:lang="en">This browsing context name is reserved.</d:message> |
638 |
<d:item> |
639 |
<p>The specified browsing context name is reserved. |
640 |
The document is non-conforming.</p> |
641 |
|
642 |
<p>Names of browsing contexts starting with <code>_</code> |
643 |
(<code>U+005F</code> <code class="charname">LOW LINE</code>) |
644 |
are reserved so that it must not be used.</p> |
645 |
|
646 |
<p>Old version of HTML, non-HTML markup languages, and |
647 |
Web browsers define or implements special reserved |
648 |
browsing context names <code>_blank</code>, |
649 |
<code>_main</code>, and <code>_replace</code>. |
650 |
However, they are <em>not</em> conforming attribute values.</p> |
651 |
</d:item> |
652 |
</d:item> |
653 |
|
654 |
</section> |
655 |
|
656 |
<section id="attribute-value-warnings"> |
657 |
<h2>Attribute Value Warnings</h2> |
658 |
|
659 |
<d:item name="link type:proposed" level="s" |
660 |
class="attribute-value-warning should"> |
661 |
<d:message xml:lang="en">Link type <code><var>$0</var></code> |
662 |
is proposed but not accepted yet; it <em>should not</em> be |
663 |
used until it has been accepted.</d:message> |
664 |
<d:desc> |
665 |
<p>The link type is in the <i>proposed</i> status; it |
666 |
<em>should not</em> be used until it has been |
667 |
accepted.</p> |
668 |
|
669 |
<p><strong>Warning</strong>: The data served to the |
670 |
conforming checker might be out of date; it might have already |
671 |
been accepted or rejected, depending on which the document |
672 |
might be conforming or non-conforming. See WHATWG Wiki |
673 |
for the latest information.</p> |
674 |
</d:desc> |
675 |
</d:item> |
676 |
|
677 |
</section> |
678 |
|
679 |
<section id="table-model-errors"> |
680 |
<h2>Table Model Errors</h2> |
681 |
|
682 |
<d:item name="table:colspan creates column with no anchored cell" |
683 |
class="table-model-error"> |
684 |
<d:message xml:lang="en">This <code>colspan</code> attribute |
685 |
results in creating a table column that does not contain |
686 |
any cell anchored to it.</d:message> |
687 |
</d:item> |
688 |
|
689 |
<d:item name="table:no cell in last row" |
690 |
class="table-model-error"> |
691 |
<d:message xml:lang="en">The table has no cell (<code>td</code> or |
692 |
<code>th</code>) in the last row.</d:message> |
693 |
</d:item> |
694 |
|
695 |
</section> |
696 |
|
697 |
<section id="imt-warnings"> |
698 |
<h2>Internet Media Type Warnings</h2> |
699 |
|
700 |
<d:item name="IMT:obsolete subtype" |
701 |
class="should" level="s"> |
702 |
<d:message xml:lang="en">An <em>obsolete</em> subtype is used.</d:message> |
703 |
</d:item> |
704 |
|
705 |
<d:item name="IMT:private subtype" |
706 |
class="should" level="s"> |
707 |
<d:message xml:lang="en">A private (<code>x-</code> or <code>x.</code>) |
708 |
subtype is used.</d:message> |
709 |
</d:item> |
710 |
|
711 |
<d:item name="IMT:unregistered subtype" |
712 |
class="should" level="s"> |
713 |
<d:message xml:lang="en">The subtype is not registered to IANA.</d:message> |
714 |
<!-- TODO: Unknown message?? --> |
715 |
</d:item> |
716 |
|
717 |
</section> |
718 |
|
719 |
<section id="uri-errors"> |
720 |
<h2>URI (or IRI) Errors</h2> |
721 |
|
722 |
<d:item name="URI::syntax error" |
723 |
class="must" level="m"> |
724 |
<d:message xml:lang="en">This string is syntactically not an IRI.</d:message> |
725 |
</d:item> |
726 |
|
727 |
</section> |
728 |
|
729 |
<section id="uri-warnings"> |
730 |
<h2>URI (or IRI) Warnings</h2> |
731 |
|
732 |
<d:item name="URI::dot-segment" |
733 |
class="should" level="s"> |
734 |
<d:message xml:lang="en">Dot-segment (<code>.</code> or |
735 |
<code>..</code>) should not occur in an absolute reference.</d:message> |
736 |
<d:desc> |
737 |
<p>Dot-segment (<code>.</code> or <code>..</code>) should |
738 |
not occur in an absolute reference.</p> |
739 |
|
740 |
<p>In relative references, dot-segments are used to represent |
741 |
the current (<code>.</code>) or the parent (<code>..</code>) |
742 |
hierarchy of the path. Though they are also allowed |
743 |
in absolute references, it should be resolved to the |
744 |
canonical form before it has been published.</p> |
745 |
</d:desc> |
746 |
</d:item> |
747 |
|
748 |
<d:item name="URI::empty path" |
749 |
class="should" level="s"> |
750 |
<d:message xml:lang="en">This IRI should explicitly end with |
751 |
<code>/</code>.</d:message> |
752 |
</d:item> |
753 |
|
754 |
<d:item name="URI::lowercase hexadecimal digit" |
755 |
class="should" level="s"> |
756 |
<d:message xml:lang="en">Hexadecimal digit in percent-encoding |
757 |
should be in lowercase.</d:message> |
758 |
<d:desc xml:lang="en"> |
759 |
<p>The hexadecimal digit in percent-encoding string in the IRI |
760 |
is in lowercase. Though the IRI <em>is</em> conforming, |
761 |
it should be in uppercase.</p> |
762 |
</d:desc> |
763 |
</d:item> |
764 |
|
765 |
<d:item name="URI::percent-encoded unreserved" |
766 |
class="should" level="s"> |
767 |
<d:message xml:lang="en">An unreserved character is |
768 |
percent-encoded.</d:message> |
769 |
<d:desc xml:lang="en"> |
770 |
<p>An unreserved character is percent-encoded in the IRI. |
771 |
Though it <em>is</em> conforming, it should be in the |
772 |
decoded (or bare) form.</p> |
773 |
</d:desc> |
774 |
</d:item> |
775 |
|
776 |
</section> |
777 |
|
778 |
<section id="unsupported-messages"> |
779 |
<h2><i>Unsupported</i> Messages</h2> |
780 |
|
781 |
<d:item name="attribute" |
782 |
class="unsupported" level="unsupported"> |
783 |
<d:message xml:lang="en">This attribute is not supported by the |
784 |
conformance checker; <em>it might or might not be conforming</em>.</d:message> |
785 |
<d:desc xml:lang="en"> |
786 |
<p>The conformant checker does not support the attribute. |
787 |
It cannot determine whether the document is conforming or not.</p> |
788 |
</d:desc> |
789 |
</d:item> |
790 |
|
791 |
<d:item name="element" |
792 |
class="unsupported" level="unsupported"> |
793 |
<d:message xml:lang="en">This element is not supported by the |
794 |
conformance checker; <em>it might or might not be conforming</em>.</d:message> |
795 |
<d:desc xml:lang="en"> |
796 |
<p>The conformant checker does not support the element. |
797 |
It cannot determine whether the document is conforming or not.</p> |
798 |
</d:desc> |
799 |
</d:item> |
800 |
|
801 |
<d:item name="link type" |
802 |
class="unsupported" level="unsupported"> |
803 |
<d:message xml:lang="en">The link type <code><var>$0</var></code> is not |
804 |
standardized or registered at the time of the release of the conformance |
805 |
checker; <em>it is non-conforming unless it has now been |
806 |
registered</em>.</d:message> |
807 |
<d:desc xml:lang="en"> |
808 |
<p>The <code>rel</code> attribute is defined as a list of link types. |
809 |
Some common link types are defined in the HTML5 specification. |
810 |
Additional link types can be registered to the WHATWG Wiki. |
811 |
use of any other link type is non-conforming.</p> |
812 |
|
813 |
<p>The specified link type is not part of the standard or registry |
814 |
when the database used by the conformance cheker is created. |
815 |
The link type might have been added to the registry since then. |
816 |
In such case it might be conforming. Otherwise, the |
817 |
document is non-conforming.</p> |
818 |
</d:desc> |
819 |
</d:item> |
820 |
|
821 |
<d:item name="event handler" |
822 |
class="unsupported" level="unsupported"> |
823 |
<d:message xml:lang="en">Conformance checking for event handler attribute |
824 |
is not supported; <em>it might or might not be conforming.</em></d:message> |
825 |
</d:item> |
826 |
|
827 |
<d:item name="language tag" |
828 |
class="unsupported" level="unsupported"> |
829 |
<d:message xml:lang="en">Conformance checking for language tag |
830 |
is not supported; <em>it might or might not be conforming.</em></d:message> |
831 |
</d:item> |
832 |
|
833 |
<d:item name="media query" |
834 |
class="unsupported" level="unsupported"> |
835 |
<d:message xml:lang="en">Conformance checking for media query |
836 |
is not supported; <em>it might or might not be conforming.</em></d:message> |
837 |
</d:item> |
838 |
|
839 |
<d:item name="script" |
840 |
class="unsupported" level="unsupported"> |
841 |
<d:message xml:lang="en">Conformance checking for script |
842 |
language <code><var>$0</var></code> is not supported; |
843 |
<em>it might or might not be conforming.</em></d:message> |
844 |
</d:item> |
845 |
|
846 |
<d:item name="style" |
847 |
class="unsupported" level="unsupported"> |
848 |
<d:message xml:lang="en">Conformance checking for style |
849 |
language <code><var>$0</var></code> is not supported; |
850 |
<em>it might or might not be conforming.</em></d:message> |
851 |
</d:item> |
852 |
|
853 |
</section> |
854 |
|
855 |
<d:catalog> |
856 |
manakaiCompatMode:quirks;;Quirks Mode |
857 |
manakaiCompatMode:limited quirks;;Limited Quirks Mode |
858 |
manakaiCompatMode:no quirks;;No Quirks Mode |
859 |
|
860 |
manakaiIsHTML:1;;HTML Document |
861 |
manakaiIsHTML:0;;XML Document |
862 |
</d:catalog> |
863 |
|
864 |
<section id="license"> |
865 |
<h2>License of This Document</h2> |
866 |
|
867 |
<p>Copyright 2007 <a href="http://suika.fam.cx/~wakaba/who?">Wakaba</a></p> |
868 |
<p>This library is free software; you can redistribute it |
869 |
and/or modify it under the same terms as Perl itself.</p> |
870 |
</section> |
871 |
|
872 |
<!-- $Date: 2007/07/16 13:56:26 $ --> |
873 |
</body> |
874 |
</html> |