/[suikacvs]/test/html-webhacc/error-description.en.html.u8
Suika

Contents of /test/html-webhacc/error-description.en.html.u8

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.26 - (show annotations) (download)
Fri Aug 15 12:11:56 2008 UTC (15 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.25: +349 -49 lines
++ ChangeLog	15 Aug 2008 12:10:51 -0000
	* error-description-source.xml: Missing entries for
	Whatpm::ContentChecker and Whatpm::ContentChecker::HTML
	error types are added.  Error entries used by these
	modules are marked as such.

2008-08-15  Wakaba  <wakaba@suika.fam.cx>

++ html/WebHACC/Language/ChangeLog	15 Aug 2008 12:11:51 -0000
	* DOM.pm: Use error's own "layer" parameter, if any.

2008-08-15  Wakaba  <wakaba@suika.fam.cx>

++ html/WebHACC/ChangeLog	15 Aug 2008 12:11:25 -0000
	* Output.pm (nl_text): New rule, <var>{value}</var>,
	is implemented.

2008-08-15  Wakaba  <wakaba@suika.fam.cx>

1 <!DOCTYPE html><html id="error-description" lang="en" xmlns:d="http://suika.fam.cx/~wakaba/archive/2007/wdcc-desc/" xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title xml:lang="en">Description of Errors —
4 Web Document Conformance Checker (BETA)</title>
5 <link href="cc-style" rel="stylesheet">
6 <link href="#license" rel="license">
7 </head>
8 <body>
9 <h1>Description of Errors</h1>
10
11 <section id="character-encoding-layer">
12 <h2>Character Encoding Layer Errors</h2>
13
14 <div class="section error-category-charset" id="m:illegal-octets-error"><h3>An illegal octet in the input stream.</h3></div>
15 </section>
16
17 <section id="html5-character-encoding">
18 <h2>HTML5 Character Encoding Errors</h2>
19
20 <div class="section " id="disallowed-character-encoding"><h3>Character encoding <code><var>{text}</var></code>
21 is not allowed for <abbr>HTML</abbr> document.</h3>
22 <p>The character encoding used for the document is not allowed
23 for <abbr>HTML</abbr> document. The document is non‐conforming.</p>
24 </div>
25
26 <div class="section " id="bad-character-encoding"><h3>Character encoding <code><var>{text}</var></code>
27 should not be used for <abbr>HTML</abbr> document.</h3>
28 <p>The character encoding used for the document is not recommended
29 for <abbr>HTML</abbr> document. The document is non‐conforming
30 unless there is any good reason to use that encoding.</p>
31 </div>
32
33 <div class="section " id="non-utf-8-character-encoding"><h3>Use of UTF-8 is encouraged (this document
34 is encoded in <code><var>{text}</var></code>).</h3>
35 <p>Use of UTF-8 as the character encoding of the document is encouraged,
36 though the use of another character encoding is still conforming.</p>
37 </div>
38
39 <div class="section " id="character-encoding-unchecked"><h3>Conformance for character encoding requirements
40 cannot be checked, since the input is not a byte stream.</h3>
41 <p>The conformance checker cannot detect whether the input document
42 met the requirements on character encoding, since the document
43 is not inputed as a serialized byte sequence. The document is
44 not conforming if it is not encoded in an appropriate character
45 encoding with appropriate labeling.</p>
46 </div>
47
48 <div class="section " id="no-character-encoding-declaration"><h3>There is no character encoding
49 declaration.</h3>
50 <p>The document does not contain a character encoding
51 declaration. Unless the character encoding is explicitly
52 specified in lower‐level protocol, e.g. in <abbr>HTTP</abbr>,
53 or is implied by <abbr>BOM</abbr>, there must be a character
54 encoding declaration. The document is non‐conforming.</p>
55
56 <p>The long character encoding declaration syntax
57 <code class="html bad example">&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"&gt;</code>
58 is obsolete. The new syntax is:</p>
59 <pre class="html example">
60 <code>&lt;meta charset="<var>charset-name</var>"&gt;</code></pre>
61
62 <p>Note that the <code>encoding</code> declaration in <abbr>XML</abbr>
63 declaration has no effect for <abbr>HTML</abbr> document.</p>
64 </div>
65
66 <div class="section " id="non-ascii-superset"><h3>No character encoding metadata is found
67 in lower‐level protocol nor is there <abbr>BOM</abbr>, while
68 character encoding <code><var>{text}</var></code>
69 is not a superset of <abbr>ASCII</abbr>.</h3>
70 <p>The document is not labeled with character encoding name
71 in lower‐level protocol, e.g. in <abbr>HTTP</abbr>, and
72 the document is not begin with <abbr>BOM</abbr>. In addition,
73 the character encoding of the document is not a superset of
74 <abbr>ASCII</abbr>. The document is non‐conforming.</p>
75
76 <p>Unless there is a <abbr>BOM</abbr>, the character encoding
77 for the document must be specified in e.g. <abbr>HTTP</abbr>‐level,
78 as:</p>
79 <pre class="http example">
80 <code>Content-Type: text/html; charset=<var>charset-name</var></code></pre>
81
82 <p>Existence of <abbr>HTML</abbr> character encoding declaration, i.e.
83 <code class="html example">&lt;meta charset="<var>charset-name</var>"&gt;</code>,
84 does not allow to omit <code>charset</code> parameter
85 for <abbr>HTML</abbr> document encoded in non‐<abbr>ASCII</abbr>
86 compatible encoding.</p>
87
88 <p>Character encodings <code>Shift_JIS</code>, <code>Windows-31J</code>,
89 and <code>ISO-2022-JP</code> are <em>not</em> a superset of
90 <abbr>ASCII</abbr> for the purpose of <abbr>HTML</abbr> conformance.</p>
91 </div>
92
93 <div class="section " id="sniffing:chardet"><h3>Character encoding of this document is sniffed
94 as <code><var>{text}</var></code> (Sniffed because no explicit specification
95 for the character encoding of this document is found in the transfer
96 procotol headers).</h3></div>
97
98 <div class="section " id="sniffing:default"><h3>Character encoding of this document is defaulted
99 to <code><var>{text}</var></code> because no explicit specification
100 for the character encoding of this document is found in the transfer
101 procotol headers.</h3></div>
102
103 <div class="section " id="chardecode:fallback"><h3>Since no decoder for the document character
104 encoding is found, decoder for the character encoding
105 <code><var>{text}</var></code> is used. Checking results might be
106 <em>wrong</em>.</h3></div>
107
108 <div class="section " id="chardecode:no-error"><h3>Conformance error checking for the character
109 encoding <code><var>{text}</var></code> is not supported.</h3></div>
110
111 <div class="section " id="charset-label:matching"><h3>Sniffed character encoding
112 <code><var>{text}</var></code> is same as the character encoding specified
113 in the character encoding declaration. This is <em>not</em> an
114 error.</h3></div>
115
116 <div class="section format-charset warning" id="charset-label-detected"><h3>While parsing the document as
117 <code><var>{text}</var></code>, a character encoding declaration specifying
118 a different character encoding is found. The document
119 is reparsed.</h3>
120 <p>While parsing a document in a character encoding,
121 a character encoding declaration which declares the character
122 encoding of the document as another character encoding is found.
123 The occurence of this warning itself does not make the document
124 non‐conforming. However, the failure of the first attempt to
125 to detect the character encoding might be a result of non‐conformance
126 of the document.</p>
127
128 <p>The document will be reparsed from the beginning. Some error
129 or warning might be reported again.</p>
130
131 <p>These are suggestions to avoid this warning:</p>
132 <ul>
133 <li>Specify <code>charset</code> parameter in the <code>Content-Type</code>
134 field in the <abbr>HTTP</abbr> header, as:
135 <pre class="HTTP example">
136 <code>Content-Type: text/html; charset="<var>charset-name</var>"</code></pre></li>
137 <li>Put the character encoding declaration
138 (<code class="html example">&lt;meta charset="<var>charset-name</var>"&gt;</code>)
139 just after <code class="html example">&lt;head&gt;</code> start tag.</li>
140 <li>Use <code>UTF-8</code>.</li>
141 </ul>
142 </div>
143
144 <div class="section " id="NULL"><h3>The <code class="charname">NULL</code> character
145 is not allowed.</h3></div>
146
147 <div class="section " id="control-char"><h3>Code point <code><var>{text}</var></code> is
148 not allowed.</h3></div>
149
150 </section>
151
152 <section id="html5-tokenize-error">
153 <h2>HTML5 Parse Errors in Tokenization Stage</h2>
154
155 <div class="section parse-error" id="after-html"><h3>Tag <code>&lt;<var>$0</var>&gt;</code>
156 is not allowed after the end tag <code>&lt;/html&gt;</code>.</h3>
157 <p>The start or end tag of an element appears after the
158 <code>html</code> element has been closed. The document is
159 non-conforming.</p>
160
161 <p>Any content of the document other than comments
162 must be put into the <code>html</code> element.</p>
163 </div>
164
165 <div class="section parse-error" id="after-body"><h3>Tag <code>&lt;<var>$0</var>&gt;</code>
166 is not allowed after the end tag <code>&lt;/body&gt;</code>.</h3>
167 <p>The start or end tag of an element appears after the
168 <code>body</code> element has been closed. The document is
169 non-conforming.</p>
170
171 <p>Any content of the document other than <code>head</code>
172 contents and comments must be put into the <code>body</code>
173 element.</p>
174 </div>
175
176 <div class="section tokenize-error" id="bad-attribute-name"><h3>Attribute name cannot contain characters
177 <code>"</code>, <code>'</code>, and <code>=</code>.</h3></div>
178
179 <div class="section tokenize-error" id="bad-attribute-value"><h3>Attribute value must be quoted by <code>"</code>
180 or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or
181 <code>=</code> character.</h3></div>
182
183 <div class="section tokenize-error" id="bare-ero"><h3>The <code>&amp;</code> character must
184 be escaped as <code class="html example">&amp;amp;</code>.</h3>
185 <p>An <code>&amp;</code> character which
186 is not part of any reference appears in the input stream.
187 The document is non‐conforming.</p>
188
189 <p><em>Any <code>&amp;</code> character in URI (or IRI)
190 must be escaped as <code class="example">&amp;amp;</code>.</em></p>
191
192 <p>The <code>&amp;</code> character must
193 be the first character of a reference:
194 <dl class="switch">
195 <dt>Named entity reference</dt>
196 <dd><pre class="html example">
197 <code>&amp;<var>entity-name</var>;</code></pre>
198 where <var>entity-name</var> is the name of the
199 character entity to be referenced.</dd>
200 <dt>Numeric character reference</dt>
201 <dd><pre class="html example">
202 <code>&amp;#<var>d</var>;</code></pre>
203 where <var>d</var> is the decimal representation of
204 the code position of the character to be referenced.</dd>
205 <dt>Hexadecimal character reference</dt>
206 <dd><pre class="html example">
207 <code>&amp;#x<var>h</var>;</code></pre>
208 where <var>h</var> is the hexadecimal representation
209 of the code position of the character to be referenced.</dd>
210 </dl>
211 </p>
212
213 <p>To represent <code>&amp;</code> as a data character, use
214 named entity reference:
215 <pre class="html example">
216 <code>&amp;amp;</code></pre>
217 </p>
218 </div>
219
220 <div class="section tokenize-error" id="bare-etago"><h3>A <code>&lt;/</code> string is not followed
221 by a tag name.</h3>
222 <p>There is a <code>&lt;</code> (<code>U+003C</code>
223 <code class="charname">LESS-THAN SIGN</code>) character
224 immediately followed by a <code>/</code> (<code>U+005F</code>
225 <code>SOLIDUS</code>) character, which is not part
226 of any end tag, in the input stream. The document
227 is non-conforming.</p>
228
229 <p>The <code>&lt;/</code> sequence immediately followed
230 by an <abbr title="End of file pseudo-character">EOF</abbr> is
231 interpreted as a string data of <code>&lt;/</code>.</p>
232
233 <p>The <code>&lt;/</code> sequence as string data must
234 be escaped as:
235 <pre class="html example">
236 <code>&amp;lt;/</code></pre>
237 </p>
238 </div>
239
240 <div class="section tokenize-error" id="bare-stago"><h3>A <code>&lt;</code> character is not followed
241 by tag name or by a <code>!</code> character.</h3>
242 <p>A <code>&lt;</code> (<code>U+003C</code>
243 <code class="charname">LESS-THAN SIGN</code>) character which is not part
244 of any markup appears in the input stream.</p>
245
246 <p>The <code>&lt;</code> character as a data character must
247 be escaped as:
248 <pre class="html example">
249 <code>&amp;lt;</code></pre>
250 </p>
251 </div>
252
253 <div class="section tokenize-error" id="bare-nero"><h3>The decimal representation of the code position
254 of a character must be specified after <code>&amp;#</code>.</h3>
255 <p>An <code>&amp;</code> (<code>U+0026</code>
256 <code class="charname">AMPERSAND</code>) character immediately
257 followed by a <code>#</code> (<code>U+0023</code>
258 <code>NUMBER SIGN</code>) character which
259 is not part of any reference appears in the input stream.
260 The document is non-conforming.</p>
261
262 <p>The string <code>&amp;#</code> must be the first two characters
263 of a reference:
264 <dl class="switch">
265 <dt>Numeric character reference</dt>
266 <dd><pre class="html example">
267 <code>&amp;#<var>d</var>;</code></pre>
268 where <var>d</var> is the decimal representation of
269 the code point of the character to be referenced.</dd>
270 <dt>Hexadecimal character reference</dt>
271 <dd><pre class="html example">
272 <code>&amp;#x<var>h</var>;</code></pre>
273 where <var>h</var> is the hexadecimal representation
274 of the code point of the character to be referenced.</dd>
275 </dl>
276 </p>
277
278 <p>To represent <code>&amp;#</code> as data characters, use
279 a named entity reference for the <code>&amp;</code> character:
280 <pre class="html example">
281 <code>&amp;amp;#</code></pre>
282 </p>
283 </div>
284
285 <div class="section tokenize-error" id="bare-hcro"><h3>The hexadecimal representation of the code position
286 of a character must be specified after <code>&amp;#x</code>.</h3>
287 <p>The string <code>&amp;#x</code> or <code>&amp;#X</code> which
288 is not part of any reference appears in the input stream.
289 The document is non-conforming.</p>
290
291 <p>The string <code>&amp;#x</code> or <code>&amp;#X</code> must
292 be the first three characters of a hexadecimal reference:
293 <pre class="html example">
294 <code>&amp;#x<var>h</var>;</code></pre>
295 where <var>h</var> is the hexadecimal representation
296 of the code point of the character to be referenced.</p>
297
298 <p>To represent <code>&amp;#x</code> as data characters, use
299 a named entity reference for the <code>&amp;</code> character:
300 <pre class="html example">
301 <code>&amp;amp;#x</code></pre>
302 </p>
303 </div>
304
305 <div class="section tokenize-error" id="bogus-comment"><h3>String <code>&lt;!</code> is not followed
306 by <code>--</code>.</h3>
307 <p>There is a <code>&lt;</code> (<code>U+003C</code>
308 <code class="charname">LESS-THAN SIGN</code>) character
309 followed by a <code>!</code> (<code>U+0021</code>
310 <code class="charname">EXCLAMATION MARK</code>) character,
311 which is not followed by a <code>--</code> or
312 <code>!DOCTYPE</code>. The document is non-conforming.</p>
313
314 <dl class="switch">
315 <dt>Comments</dt>
316 <dd>In HTML document, comments must be introduced by
317 <code class="example">&lt;!--</code> (<code>&lt;!</code>
318 <em>immediately</em> followed
319 by <em>two</em> <code>-</code>s) and must be terminated by
320 <code class="example">--&gt;</code>.
321 Strings <code>&lt;!</code> not followed
322 by <code>--</code> and <code>&lt;!-</code> not followed by
323 <code>-</code> are not valid open delimiters for comments.</dd>
324 <dt>Marked sections, including <code>CDATA</code> sections</dt>
325 <dd>Marked sections are not allowed in HTML document.</dd>
326 <dt>Markup declarations</dt>
327 <dd>Markup declarations, except for <code>DOCTYPE</code>
328 and comment declarations, are not allowed in HTML document.</dd>
329 <dt>String <code>&lt;!</code></dt>
330 <dd>String <code>&lt;!</code> must be escaped as
331 <code class="example">&amp;lt;!</code>.</dd>
332 </dl>
333 </div>
334
335 <div class="section tokenize-error" id="bogus-end-tag"><h3>String <code>&lt;/</code> is not followed
336 by tag name.</h3>
337 <p>There is a <code>&lt;</code> (<code>U+003C</code>
338 <code class="charname">LESS-THAN SIGN</code>) character
339 immediately followed by a <code>/</code> (<code>U+005F</code>
340 <code>SOLIDUS</code>) character, which is not part
341 of any end tag, in the input stream. The document
342 is non-conforming.</p>
343
344 <p>The <code>&lt;/</code> sequence not followed by a
345 tag name is parsed as an opening of bogus comment.</p>
346
347 <p>The <code>&lt;/</code> sequence as string data must
348 be escaped as:
349 <pre class="html example">
350 <code>&amp;lt;/</code></pre>
351 </p>
352 </div>
353
354 <div class="section tokenize-error" id="C1-character-reference"><h3>Character reference to
355 <code><var>{text}</var></code> is not allowed.</h3></div>
356
357 <div class="section tokenize-error" id="CR-character-reference"><h3>Character reference to
358 <code>U+000D</code> (<code class="charname">CARRIAGE RETURN</code>)
359 is not allowed.</h3></div>
360
361 <div class="section tokenize-error" id="dash-in-comment"><h3>There is a <code>--</code> sequence
362 in a comment.</h3>
363 <p>There is a <code>-</code> (<code>U+002D</code>
364 <code class="charname">HYPHEN-MINUS</code>) character
365 at the end of the comment or a <code>--</code> sequence
366 in the comment. The document is non-conforming.</p>
367
368 <p>Comments cannot contain a string <code>--</code>, as in XML.
369 Unlike SGML, there cannot be more than one comments
370 (where <i>comment</i> is an SGML term) in the comment
371 declaration.</p>
372 </div>
373
374 <div class="section tokenize-error" id="duplicate-attribute"><h3>There are two attributes with name
375 <code><var>{text}</var></code>.</h3>
376 <p>There are more than one attributes with the same
377 name in a tag. The document is non-conforming.</p>
378
379 <p>The <code>motion</code> attribute is not part of the HTML standard.
380 Use <code>img</code> element with animation GIF instead.</p>
381 </div>
382
383 <div class="section tokenize-error" id="empty-start-tag"><h3>Empty start tag (<code>&lt;&gt;</code>) is not
384 allowed.</h3></div>
385
386 <div class="section tokenize-error" id="empty-end-tag"><h3>Empty end tag (<code>&lt;/&gt;</code>) is not
387 allowed.</h3></div>
388
389 <div class="section tokenize-error" id="end-tag-attribute"><h3>End tag cannot have attributes.</h3></div>
390
391 <div class="section tokenize-error" id="invalid-character-reference"><h3>Character reference to
392 <code><var>{text}</var></code> is not allowed.</h3></div>
393
394 <div class="section tokenize-error" id="nestc"><h3>Polytheistic slash (<code>/&gt;</code>) cannot be
395 used for this element.</h3>
396 <p>Polytheistic slash (<code>/&gt;</code>) must not be used
397 for the element. The document is non-conforming.</p>
398
399 <p>The polytheistic slash can only be
400 used for <code>base</code>, <code>link</code>, <code>meta</code>,
401 <code>hr</code>, <code>br</code>, <code>img</code>,
402 <code>embed</code>, <code>param</code>, <code>area</code>,
403 <code>col</code>, and <code>input</code> elements.</p>
404
405 <dl class="switch">
406 <dt><code>&lt;script/&gt;</code></dt>
407 <dd><p>The polytheistic slash cannot be used for <code>script</code>
408 element. Even for an empty <code>script</code> element,
409 there must be an explicit end tag
410 <code class="html example">&lt;/script&gt;</code>.</p>
411
412 <p><strong>NOTE</strong>: Though some user agents interpret
413 polytheistic slash for <code>script</code> element as the
414 closing of the element, such usage is not allowed under
415 the current standard.</p></dd>
416 <dt><code>&lt;basefont/&gt;</code>, <code>&lt;bgsound/&gt;</code>,
417 <code>&lt;frame/&gt;</code>, <code>&lt;keygen/&gt;</code>,
418 <code>&lt;spacer/&gt;</code>, <code>&lt;wbr/&gt;</code></dt>
419 <dd>These elements are themselves non-conforming.</dd>
420 <!-- isindex, image -->
421 <dt><code>&lt;command/&gt;</code>, <code>&lt;event-source/&gt;</code>,
422 <code>&lt;nest/&gt;</code>, or <code>&lt;source/&gt;</code></dt>
423 <dd>Future revision of HTML5 parsing algorithm is expected
424 to allow polytheistic slash for these elements.</dd>
425 <dt><code>&lt;a/&gt;</code>, <code>&lt;p/&gt;</code></dt>
426 <dd>These elements are not always empty and therefore
427 polytheistic slash is not allowed. Use explicit end tag
428 to represent empty element as:
429 <pre class="example html">
430 <code>&lt;p&gt;&lt;/p&gt;</code></pre>
431 </dd>
432 </dl>
433
434 <p>Note that, unlike in XML, the polytheistic slash has
435 no effect in HTML.</p>
436 </div>
437
438 <div class="section tokenize-error" id="no-DOCTYPE-name"><h3>After the string <code>&lt;!DOCTYPE </code>, the
439 document type name must be specified.</h3></div>
440
441 <div class="section tokenize-error" id="no-PUBLIC-literal"><h3>After the keyword <code>PUBLIC</code>, no
442 oublic identifier is specified.</h3></div>
443
444 <div class="section tokenize-error" id="no-refc"><h3>Character reference must be closed by a
445 <code>;</code> character.</h3></div>
446
447 <div class="section tokenize-error" id="no-space-before-DOCTYPE-name"><h3>After the string <code>&lt;!DOCTYPE</code>, there
448 must be at least a white space character before the document type
449 name.</h3></div>
450
451 <div class="section tokenize-error" id="no-space-between-attributes"><h3>Attributes must be separeted by at least a
452 white space character.</h3></div>
453
454 <div class="section tokenize-error" id="no-SYSTEM-literal"><h3>After the keyword <code>SYSTEM</code>, no
455 system identifier is specified.</h3></div>
456
457 <div class="section tokenize-error" id="pio"><h3>Processing instruction
458 (<code>&lt;?<var>...</var>&gt;</code>) is not allowed in HTML
459 document.</h3>
460 <p>Processing instructions (<code>&lt;?<var>...</var>?&gt;</code>),
461 including XML declaration (<code>&lt;?xml <var>...</var>?&gt;</code>)
462 and XML style sheet <abbr title="processing instruction">PI</abbr>
463 (<code>&lt;?xml-stylesheet <var>...</var>?&gt;</code>), are not allowed
464 in the HTML syntax. The document is non-conforming.</p>
465
466 <dl class="switch">
467 <dt><code>&lt;?xbl?&gt;</code> (<abbr>XBL</abbr> Association)</dt>
468 <dd>An <abbr>XBL</abbr> binding cannot be associated by
469 <abbr title="processing instruction">PI</abbr> in <abbr>HTML</abbr>
470 document. Use <code>binding</code> property in <abbr>CSS</abbr>
471 style sheet as:
472 <pre class="html example">
473 <code>&lt;style&gt;
474 p {
475 binding: url(binding.xbl);
476 }
477 &lt;/style&gt;</code></pre>
478 </dd>
479 <dt><code>&lt;?xml?&gt;</code> (XML declaration)</dt>
480 <dd>XML declaration is unnecessary for HTML documents.</dd>
481 <dt><code>&lt;?xml-stylesheet?&gt;</code> (XML style sheet
482 <abbr title="processing instruction">PI</abbr>)</dt>
483 <dd>Use HTML <code>link</code> element with <code>rel</code>
484 attribute set to <code>stylesheet</code> (or,
485 <code>alternate stylesheet</code> for an alternate style
486 sheet).
487 <pre class="example html">
488 <code>&lt;link rel=stylesheet href="path/to/stylesheet.css"&gt;</code></pre>
489 </dd>
490 <dt><code>&lt;?php?&gt;</code> or
491 <code>&lt;? <var>... <abbr>PHP</abbr> code ...</var> ?&gt;</code>
492 (<abbr>PHP</abbr> code)</dt>
493 <dd>The conformance checker does <em>not</em> support
494 checking for PHP source documents.</dd>
495 <dt>Other processing instructions</dt>
496 <dd>Processing instructions cannot be inserted in an HTML
497 document. Use XML document or insert
498 <code>ProcessingInstruction</code> node by scripting.</dd>
499 </dl>
500
501 <p>Web browsers will parse processing instructions as bogus
502 comments. Some legacy Web browsers, such as IE:mac and
503 some mobile Web browsers, will display processing instructions
504 as string.</p>
505 </div>
506
507 <div class="section tokenize-error" id="string-after-DOCTYPE-name"><h3>There is a bogus string after the document type
508 name.</h3></div>
509
510 <div class="section tokenize-error" id="string-after-PUBLIC"><h3>There is a bogus string after the keyword
511 <code>PUBLIC</code>.</h3></div>
512
513 <div class="section tokenize-error" id="string-after-PUBLIC-literal"><h3>There is a bogus string after the public
514 identifier.</h3></div>
515
516 <div class="section tokenize-error" id="string-after-SYSTEM"><h3>There is a bogus string after the keyword
517 <code>SYSTEM</code>.</h3></div>
518
519 <div class="section tokenize-error" id="string-after-SYSTEM-literal"><h3>There is a bogus string after the system
520 identifier.</h3></div>
521
522 <div class="section tokenize-error" id="unclosed-attribute-value"><h3>Attribute value is not closed by a quotation
523 mark.</h3></div>
524
525 <div class="section tokenize-error" id="unclosed-comment"><h3>Comment is not closed by a string
526 <code>--&gt;</code>.</h3></div>
527
528 <div class="section tokenize-error" id="unclosed-DOCTYPE"><h3>The <code>DOCTYPE</code> is not closed by a
529 <code>&gt;</code> character.</h3></div>
530
531 <div class="section tokenize-error" id="unclosed-PUBLIC-literal"><h3>The public identifier literal is not closed by a
532 quotation mark.</h3></div>
533
534 <div class="section tokenize-error" id="unclosed-SYSTEM-literal"><h3>The system identifier literal is not closed by a
535 quotation mark.</h3></div>
536
537 <div class="section tokenize-error" id="unclosed-tag"><h3>Tag is not closed by a <code>&gt;</code>
538 character.</h3></div>
539
540 </section>
541
542 <section id="html5-parse-errors">
543 <h2>HTML5 Parse Errors in Tree Construction Stage</h2>
544
545 <div class="section parse-error" id="after-body"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code> is
546 not allowed after the <code>body</code> is closed.</h3></div>
547
548 <div class="section parse-error" id="after-body:/"><h3>End tag <code>&lt;/<var>{text}</var>&gt;</code> is
549 not allowed after the <code>body</code> is closed.</h3></div>
550
551 <div class="section parse-error" id="after-body:#text"><h3>Non‐white‐space characters are not allowed
552 after the <code>body</code> is closed.</h3></div>
553
554 <div class="section parse-error" id="after-frameset"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code> is
555 not allowed after the <code>frameset</code> is closed.</h3></div>
556
557 <div class="section parse-error" id="after-frameset:/"><h3>End tag <code>&lt;/<var>{text}</var>&gt;</code> is
558 not allowed after the <code>frameset</code> is closed.</h3></div>
559
560 <div class="section parse-error" id="after-frameset:#text"><h3>Non‐white‐space characters are not allowed
561 after the <code>frame</code> is closed.</h3></div>
562
563 <div class="section parse-error" id="after-head"><h3>The <code><var>{text}</var></code> element cannot be
564 inserted between <code>head</code> and <code>body</code>
565 elements.</h3>
566 <p>A start tag appears after the <code>head</code> element is closed
567 but before the <code>body</code> element is opened.
568 The document is non-conforming.</p>
569 </div>
570
571 <div class="section parse-error" id="after-html"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code> is
572 not allowed after the <code>html</code> is closed.</h3></div>
573
574 <div class="section parse-error" id="after-html:/"><h3>End tag <code>&lt;/<var>{text}</var>&gt;</code> is
575 not allowed after the <code>html</code> is closed.</h3></div>
576
577 <div class="section parse-error" id="after-html:#text"><h3>Non‐white‐space characters are not allowed
578 after the <code>html</code> is closed.</h3></div>
579
580 <div class="section parse-error" id="image"><h3>The <code>image</code> element is
581 obsolete.</h3></div>
582
583 <div class="section parse-error" id="in-a:a"><h3>Anchor cannot be nested.</h3>
584 <p>HTML <code>a</code> elements cannot be nested.
585 The document is non-conforming.</p>
586
587 <p>In the HTML syntax, a start tag of the <code>a</code>
588 implies the end tag of any opening <code>a</code> element.</p>
589 </div>
590
591 <div class="section parse-error" id="in-body"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code>
592 is not allowed in the <code>body</code> element.</h3>
593 <p>The start or end tag of an element, which
594 cannot be a descendant of <code>body</code> element, appears
595 in the input stream while the <code>body</code> element has been opened.
596 The document is non-conforming.</p>
597 </div>
598
599 <div class="section parse-error" id="in-body:#eof"><h3>Some element is not closed before the end of
600 file.</h3></div>
601
602 <div class="section parse-error" id="in-button:button"><h3>The <code>button</code> element cannot be
603 nested.</h3></div>
604
605 <div class="section parse-error" id="in-CDATA:#eof"><h3>Element is not closed before the end of
606 file.</h3></div>
607
608 <div class="section parse-error" id="in-form:form"><h3>Start tag <code>&lt;form&gt;</code> is
609 not allowed in a <code>form</code> element.</h3></div>
610
611 <div class="section parse-error" id="in-frameset"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code> is
612 not allowed in a <code>framset</code> element.</h3></div>
613
614 <div class="section parse-error" id="in-frameset:/"><h3>End tag <code>&lt;/<var>{text}</var>&gt;</code> is
615 not allowed in a <code>frameset</code> element.</h3></div>
616
617 <div class="section parse-error" id="in-frameset:#text"><h3>Non‐white‐space characters are not allowed
618 in a <code>frameset</code> element.</h3></div>
619
620 <div class="section parse-error" id="in-head:head"><h3>Start tag <code>&lt;head&gt;</code>
621 is not allowed in the <code>head</code> element.</h3>
622 <p>There is a start tag <code>&lt;head&gt;</code> in the
623 <code>&lt;head&gt;</code> element. The document is non-conforming.</p>
624
625 <p>In an HTML document there must not be more than
626 one <code>head</code> element, therefore no more than one
627 start tag <code>&lt;head&gt;</code> can appear in the input stream.</p>
628 </div>
629
630 <div class="section parse-error" id="in-html:#DOCTYPE"><h3>A <code>DOCTYPE</code> appears after any
631 element or data character has been seen.</h3>
632 <p>A <code>DOCTYPE</code> appears after any element or data character
633 has been seen. The document is non-conforming.</p>
634
635 <p>The <code>DOCTYPE</code> must be placed before any
636 tag, reference, or data character. Only white space characters
637 and comments can be inserted before the <code>DOCTYPE</code>.</p>
638 </div>
639
640 <div class="section parse-error" id="in-nobr:nobr"><h3>The <code>nobr</code> element cannot be
641 nested.</h3></div>
642
643 <div class="section parse-error" id="in-noscript"><h3>The <code><var>{text}</var></code> element is not
644 allowed in a <code>noscript</code> element in the
645 <code>head</code> element.</h3></div>
646
647 <div class="section parse-error" id="in-noscript:/"><h3>An end tag <code>&lt;/<var>{text}</var>&gt;</code>
648 appers before the <code>noscript</code> element is closed.</h3></div>
649
650 <div class="section parse-error" id="in-noscript:#eof"><h3>A <code>noscript</code> element is not closed
651 before the end of file.</h3></div>
652
653 <div class="section parse-error" id="in-noscript:#text"><h3>Non‐white‐space characters are not allowed
654 in a <code>noscript</code> element in the <code>head</code>
655 element.</h3></div>
656
657 <div class="section parse-error" id="in-PCDATA:#eof"><h3>Element is not closed before the end of
658 file.</h3></div>
659
660 <div class="section parse-error" id="in-select"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code>
661 is not allowed in a <code>select</code> element.</h3></div>
662
663 <div class="section parse-error" id="in-select:/"><h3>End tag <code>&lt;/<var>{text}</var>&gt;</code>
664 is not allowed in a <code>select</code> element.</h3></div>
665
666 <div class="section parse-error" id="in-table"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code>
667 is not allowed in a <code>table</code> element.</h3>
668 <p>The start or end tag of an element, which
669 cannot be a child of <code>table</code> element, appears
670 in the input stream while the <code>table</code> element has been opened
671 but no other element has been opened. The document is non-conforming.</p>
672
673 <p>In <code>table</code>, only table related elements
674 are allowed; any other element must be contained in
675 <code>td</code> or <code>th</code> element to form
676 a part of the table, or <code>caption</code> element to create
677 a table caption.</p>
678 </div>
679
680 <div class="section parse-error" id="in-table:/"><h3>End tag <code>&lt;/<var>{text}</var>&gt;</code>
681 is not allowed in a <code>table</code> element.</h3></div>
682
683 <div class="section parse-error" id="in-table:#text"><h3>Non‐white‐space character is not allowed within
684 the <code>table</code> element, outside of the caption and cells.</h3>
685 <p>A non‐white‐space character appears in <code>table</code>.
686 The document is non-conforming.</p>
687
688 <p>In <code>table</code>, only table related elements
689 are allowed; any other element and data character must be contained in
690 <code>td</code> or <code>th</code> element to form
691 a part of the table, or <code>caption</code> element to create
692 a table caption.</p>
693 </div>
694
695 <div class="section parse-error" id="isindex"><h3>The <code>isindex</code> element is
696 obsolete.</h3></div>
697
698 <div class="section parse-error" id="missing-start-tag:tr"><h3>Start tag of <code>tr</code>
699 element is missing.</h3>
700 <p>Start tag of a <code>tr</code> element, which is <em>not</em>
701 optional, is missing. The document is non-conforming.</p>
702
703 <p>In a table section, a <code>&lt;tr&gt;</code> start tag
704 must occur before any <code>&lt;td&gt;</code> or
705 <code>&lt;th&gt;</code> start tag. Though the HTML5 parser
706 implies the <code>&lt;tr&gt;</code> start tag before
707 these start tags, it must be explicitly specified.</p>
708 </div>
709
710 <div class="section parse-error" id="no-DOCTYPE"><h3>This document does not start with a
711 <code>DOCTYPE</code>.</h3>
712 <p>The document does not start with a <code>DOCTYPE</code>.
713 The document is non-conforming.</p>
714
715 <p>An HTML document must start by a <code>DOCTYPE</code>:
716 <pre class="html example">
717 <code>&lt;!DOCTYPE HTML&gt;</code></pre>
718 </p>
719
720 <p>Only white space characters and comments are allowed
721 before the <code>DOCTYPE</code>. XML declaration is <em>not</em>
722 allowed in HTML document.</p>
723 </div>
724
725 <div class="section parse-error" id="not-closed"><h3>Element <code><var>{text}</var></code> is not
726 closed.</h3>
727 <p>End tag of an element is not found before, for example,
728 an end tag of another element appears or
729 the end of the document. The document is non-conforming.</p>
730
731 <p>Only <code>body</code>, <code>colgroup</code>, <code>dd</code>,
732 <code>dt</code>, <code>head</code>, <code>html</code>, <code>li</code>,
733 <code>ol</code>, <code>option</code>, <code>optgroup</code>,
734 <code>p</code>, <code>rb</code>, <code>rp</code>, <code>rt</code>,
735 <code>tbody</code>, <code>td</code>, <code>tfoot</code>,
736 <code>th</code>, <code>thead</code>, <code>tr</code>,
737 <code>ul</code> end tag can be omitted in HTML documents.
738 For any element except for void element, there must be an explicit
739 end tag.</p>
740
741 <dl class="switch">
742 <dt>HTML <code>canvas</code> element</dt>
743 <dd>Though the element is void in earlier versions of Safari,
744 the <code>canvas</code> element is <em>no</em> longer
745 defined as empty. There must be an end tag
746 <code class="html example">&lt;/canvas&gt;</code>.</dd>
747 </dl>
748
749 <p>Note that misnesting tags, such as
750 <code class="bad example">&lt;a&gt;&lt;b&gt;&lt;/a&gt;&lt;/b&gt;</code>, are not
751 allowed and they also cause this error.</p>
752 </div>
753
754 <div class="section parse-error" id="not-first-start-tag"><h3>This <code>&lt;html&gt;</code> tag is not
755 the first start tag.</h3>
756 <p>There is a start tag of the <code>html</code> element
757 that it not the first start tag in the input stream.
758 The document is non-conforming.</p>
759
760 <p>In an HTML document, there cannot be more than one
761 <code>html</code> element and therefore there cannot be
762 more than one <code>&lt;html&gt;</code> tag. In addition,
763 nothing can be placed before the <code>&lt;html&gt;</code> tag
764 except a <code>DOCTYPE</code>, white space characters,
765 and comments.</p>
766 </div>
767
768 <div class="section parse-error" id="not-HTML5"><h3>This document is written in an old version of
769 HTML.</h3>
770 <p>The document contains a <code>DOCTYPE</code> declaration
771 that is different from HTML5 <code>DOCTYPE</code> (i.e.
772 <code class="example html">&lt;!DOCTYPE HTML&gt;</code>).
773 The document is non‐conforming.</p>
774
775 <p>The document might or might not be conformant to
776 some version of HTML. However, conformance to any HTML
777 specification other than HTML5 provides for no practical
778 convenience, since Web borwsers will parse any
779 HTML document (roughly) as defined in HTML5.</p>
780 </div>
781
782 <div class="section parse-error" id="start-tag-not-allowed"><h3>Start tag <code>&lt;<var>{text}</var>&gt;</code> is
783 not allowed here.</h3></div>
784
785 <div class="section parse-error" id="unmatched-end-tag"><h3>Element <code><var>{text}</var></code> is not
786 opened.</h3>
787 <p>An end tag appears though no element with the same name
788 has been opened. The document is non-conforming.</p>
789
790 <p>For any end tag in HTML document, there must be a
791 corresponding start tag.</p>
792
793 <dl class="switch">
794 <dt>HTML <code>base</code>, <code>basefont</code>,
795 <code>bgsound</code>, <code>br</code>, <code>col</code>,
796 <code>embed</code>, <code>frame</code>, <code>hr</code>,
797 <code>image</code>, <code>img</code>, <code>input</code>,
798 <code>isindex</code>, <code>link</code>, <code>meta</code>,
799 <code>param</code>, <code>spacer</code>, or <code>wbr</code> element</dt>
800 <dd>End tag is not allowed for these elements, since
801 those content must always be empty. Remove end tag.</dd>
802 <!-- keygen -->
803 <!-- command, event-source, nest, source -->
804 </dl>
805 </div>
806
807 </section>
808
809 <section id="element-content-model-errors">
810 <h2>Element Content Model Errors</h2>
811
812 <div class="section " id="basehref-after-URL-attribute"><h3>The <code>base</code> element with the
813 <code>href</code> attribute specified cannot be placed after
814 any attribute with a URL.</h3></div>
815
816 <div class="section " id="basetarget-after-hyperlink"><h3>The <code>base</code> element with the
817 <code>target</code> attribute specified cannot be placed after
818 any element that defines a hyperlink.</h3></div>
819
820 <div class="section " id="character-not-allowed"><h3>Data character is not allowed in this
821 context.</h3>
822 <p>A data character appears where it is not allowed in this
823 context. The document is non-conforming.</p>
824
825 <p>Possible causes:
826 <ul>
827 <li><p>A data character cannot be a child
828 of certain sectioning elements such as <code>body</code>,
829 <code>section</code>, and <code>blockquote</code>.</p>
830
831 <p>Any inline-level content must be put
832 in e.g. paragraph element such as <code>p</code>.</p></li>
833 <li><p>Though some elements such as <code>div</code>,
834 <code>li</code>, and <code>td</code> allow
835 <em>either one</em> of block-level or inline-level content
836 is allowed. If there is a block-level content,
837 any inline-level content must be put
838 in e.g. paragraph element such as <code>p</code>.</p></li>
839 </ul>
840 </p>
841 </div>
842
843 <div class="section " id="character-not-allowed:empty"><h3>Non‐white‐space characters are not allowed in
844 an empty element.</h3></div>
845
846 <div class="section " id="child-element-missing"><h3>There must be a <code><var>{text}</var></code>
847 element as a child of this element.</h3>
848 <p>The content model of the element is so defined that it
849 must contain a <code><var>$0</var></code> child element.
850 The document is non-conforming.</p>
851
852 <dl class="switch">
853 <dt>HTML <code>head</code> element</dt>
854 <dd>There must be a <code>title</code> child element.</dd>
855 <dt>HTML <code>html</code> element</dt>
856 <dd>There must be a <code>head</code> child element followed
857 by a <code>body</code> element.</dd>
858 <dt>HTML <code>tr</code> element</dt>
859 <dd><a href="#child-element-missing:td%7Cth">There must be
860 one or more <code>td</code> or <code>th</code> child element.</a></dd>
861 </dl>
862 </div>
863
864 <div class="section content-model-error" id="child-element-missing:td|th"><h3>There must be a <code>td</code>
865 or <code>th</code> element as a child of this element.</h3>
866 <p>The <code>tr</code> element must contain at least one
867 <code>td</code> or <code>th</code> child element. The document
868 is non-conforming.</p>
869 </div>
870
871 <div class="section " id="element-missing:hn"><h3>There must be at least one
872 <code>h<var>n</var></code> element descendant.</h3></div>
873
874 <div class="section content-model-error" id="element-not-allowed"><h3>This element is not allowed in this
875 context.</h3>
876 <p>An element appears where it is not allowed. The document
877 is non-conforming.</p>
878
879 <p>Possible causes:
880 <dl class="switch">
881 <dt>If the element with the error is an inline-level element,
882 such as <code>a</code>, <code>progress</code>, or <code>img</code></dt>
883 <dd><p>An inline-level element cannot be a child
884 of certain sectioning elements such as <code>body</code>,
885 <code>section</code>, and <code>blockquote</code>.</p>
886
887 <p>Any inline-level content must be put
888 in e.g. paragraph element such as <code>p</code>.</p></dd>
889 <dt>If it is a block-level elements, such as <code>aside</code>,
890 <code>div</code>, <code>h<var>n</var></code>,
891 <code>p</code>, or <code>section</code></dt>
892 <dd><dl class="switch">
893 <dt>If the parent element is <code>div</code>,
894 <code>li</code>, <code>td</code>, or <code>th</code></dt>
895 <!-- @@ TODO: more... -->
896 <!-- @@ TODO: <p><ul><li><p> -->
897 <dd><p>The parent element allows <em>either</em>
898 block-level or inline-level content. If there is a
899 block-level content, any inline-level content must be
900 put in e.g. paragraph element such as <code>p</code>.</p>
901 <p>For example, an HTML document fragment
902 <code class="html bad example">&lt;div&gt;&lt;p&gt;Hello!&lt;/p&gt; World!&lt;/div&gt;</code>
903 is non-conforming, since a word <q>World!</q> does not belong
904 to any paragraph. (If not part of any paragraph, what is
905 it!?) A conforming example would be:
906 <pre class="html example">
907 <code>&lt;div&gt;&lt;p&gt;Hello!&lt;/p&gt; &lt;p&gt;World!&lt;/p&gt;&lt;/div&gt;</code></pre>
908 </p></dd>
909 <dt>If the parent element does <em>not</em> allow
910 block-level elements as content</dt>
911 <dd>The element is not allowed to be inserted here.
912 For example, a <code>div</code> element cannot be
913 a child of an <code>h1</code> element.</dd>
914 </dl></dd>
915 <dt>If the element with the error is a <code>noscript</code> element</dt>
916 <dd>The <code>noscript</code> element is allowed only in the context
917 where a block-level or inline-level content is expected
918 and in the <code>head</code> element.
919 It cannot be used in e.g. <code>ul</code>, <code>table</code>,
920 or <code>select</code>.</dd>
921 <dt>If the element with the error is <code>blink</code>,
922 <code>center</code>, or <code>marquee</code> element</dt>
923 <dd>These elements are not part of the HTML standard.
924 Use CSS for styling control.</dd>
925
926 <dt><code>button</code>, <code>datalist</code>,
927 <code>fieldset</code>, <code>form</code>,
928 <code>input</code>, <code>label</code>,
929 <code>optgroup</code>, <code>option</code>, <code>output</code>,
930 <code>rb</code>, <code>rp</code>, <code>rt</code>, <code>ruby</code>,
931 <code>textarea</code>, or <code>textarea</code> element</dt>
932 <!-- rbc, rtc ? -->
933 <dd>These elements are intentionally not supported by the conformance
934 checker <em>yet</em>.</dd>
935 </dl>
936 </p>
937 </div>
938
939 <div class="section " id="element-not-allowed:area"><h3>An <code>area</code> element cannot be used
940 outside of a <code>map</code> element.</h3></div>
941
942 <div class="section " id="element-not-allowed:base"><h3>There is another <code>base</code>
943 element.</h3></div>
944
945 <div class="section " id="element-not-allowed:datatemplate"><h3>In a <code>datatemplate</code> element, only
946 <code>rule</code> elements are allowed.</h3></div>
947
948 <div class="section " id="element-not-allowed:details-legend"><h3>In a <code>details</code> element, only at the
949 beginning of the element a <code>lengend</code> element
950 may be used.</h3></div>
951
952 <div class="section " id="element-not-allowed:empty"><h3>Elements are not allowed in an empty
953 element.</h3></div>
954
955 <div class="section " id="element-not-allowed:figure-legend"><h3>In a <code>figure</code> element, only at the
956 beginning or only at the end of the element a <code>lengend</code> element
957 may be used.</h3></div>
958
959 <div class="section " id="element-not-allowed:flow"><h3>This element is not allowed where flow
960 content is expected.</h3></div>
961
962 <div class="section " id="element-not-allowed:flow-style"><h3>A <code>style</code> element without
963 <code>scoped</code> attribute is not allowed in this context.</h3></div>
964
965 <div class="section " id="element-not-allowed:head-noscript"><h3>This element is not allowed in a
966 <code>noscript</code> element in the <code>head</code> element.</h3></div>
967
968 <div class="section " id="element-not-allowed:head-style"><h3>A <code>style</code> element with
969 <code>scoped</code> attribute is not allowed in the <code>head</code>
970 element.</h3></div>
971
972 <div class="section " id="element-not-allowed:head-title"><h3>There is another <code>title</code>
973 element.</h3></div>
974
975 <div class="section " id="element-not-allowed:minus"><h3>This element is not allowed in this
976 context.</h3></div>
977
978 <div class="section " id="element-not-allowed:meta-charset"><h3>The character encoding declaration must be the
979 first element in the <code>head</code> element.</h3></div>
980
981 <div class="section " id="element-not-allowed:metadata"><h3>This element is not allowed where metadata
982 content is expected.</h3></div>
983
984 <div class="section " id="element-not-allowed:phrasing"><h3>This element is not allowed where phrasing
985 content is expected.</h3></div>
986
987 <div class="section " id="element-not-allowed:root"><h3>This element is not allowed as the root
988 element of a document.</h3>
989 <p>An element that is not allowed as the root element
990 is used as the root element of the document. The document is
991 non-conforming, as far as the conformance checker can tell.</p>
992
993 <dl class="switch">
994 <dt><code>html</code> element in an XHTML document</dt>
995 <dd><p>In <abbr>XHTML</abbr> document, the root <code>html</code>
996 element must have an <code>xmlns</code> attribute as:
997 <pre class="xml example">
998 <code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</code></pre></p></dd>
999 <dt><code>rss</code> element</dt>
1000 <dd><p>The document is written in some version of RSS.</p>
1001 <p>The conformance checker does not support any version
1002 of RSS. Use Atom 1.0 for feed documents.</p></dd>
1003 <dt><code>feed</code> element</dt>
1004 <dd><p>The Atom <code>feed</code> element must be
1005 in the <code>http://www.w3.org/2005/Atom</code>
1006 namespace as:
1007 <pre class="xml example">
1008 <code>&lt;feed xmlns="http://www.w3.org/2005/Atom"&gt;</code></pre>
1009 </p>
1010 <p>The conformance checker does not support Atom 0.3.
1011 Use Atom 1.0 for feed documents.</p></dd>
1012 </dl>
1013 </div>
1014
1015 <div class="section " id="element-not-allowed:root:xml"><h3>This element is not allowed as the root element
1016 of an XML document.</h3></div>
1017
1018 <div class="section " id="element-not-allowed:ruby-base"><h3>This element is not allowed in the <code>ruby</code>
1019 element.</h3></div>
1020
1021 <div class="section " id="element-not-allowed:text"><h3>This element is not allowed in this
1022 context.</h3></div>
1023
1024 <div class="section " id="element-not-defined"><h3>This element is not defined.</h3></div>
1025
1026 <div class="section " id="no-significant-content"><h3>No significant content is contained
1027 in this element.</h3></div>
1028
1029 <div class="section " id="no-significant-content-before"><h3>There is no significant content
1030 before this element.</h3></div>
1031
1032 <div class="section " id="no-significant-content-at-the-end"><h3>No significant content is contained
1033 at the end of this element.</h3></div>
1034
1035 <div class="section " id="ps-element-missing"><h3>There is no <code><var>{text}</var></code>
1036 element before this element.</h3>
1037 <p>There must be an element before another element, but there
1038 is not. The document is non-conforming.</p>
1039
1040 <p>For example, there must be a <code>dt</code> element
1041 before any <code>dd</code> element.</p>
1042 </div>
1043
1044 <div class="section " id="rp:syntax-error"><h3>The content of a <code>rp</code> element must
1045 be a parenthesis.</h3></div>
1046
1047 </section>
1048
1049 <section id="attribute-errors">
1050 <h2>Attribute Errors</h2>
1051
1052 <div class="section " id="attribute-missing"><h3>Required attribute <code><var>{text}</var></code>
1053 is not specified.</h3>
1054 <p>A required attribute is not specified. The document
1055 is non-conforming.</p>
1056
1057 <p>Some attribute is defined as <i>required</i>.
1058 Without required attributes specified, user agents
1059 cannot provide full functionality of the element to the user.</p>
1060
1061 <dl class="switch">
1062 <dt>HTML <code>img</code> element</dt>
1063 <dd>The <code>src</code> attribute must be specified.
1064 Additionally, the <code>alt</code> attribute must be specified
1065 in many cases.</dd>
1066 <dt>HTML <code>link</code> element</dt>
1067 <dd>The <code>rel</code> attribute must be specified.
1068 Note that the <code>rev</code> attribute is obsolete.</dd>
1069 </dl>
1070 </div>
1071
1072 <div class="section " id="attribute-missing:data|type"><h3>For an <code>object</code> at least one of
1073 <code>data</code> and <code>type</code> attributes must be
1074 specified.</h3></div>
1075
1076 <div class="section " id="attribute-missing:href|target"><h3>For a <code>base</code> element, at least one of
1077 <code>href</code> and <code>target</code> attributes must be
1078 specified.</h3></div>
1079
1080 <div class="section " id="attribute-missing:name|http-equiv"><h3>For a <code>meta</code> element with the
1081 <code>content</code> attribute specified, exactly one of
1082 <code>name</code> and <code>http-equiv</code> attributes must be
1083 specified.</h3></div>
1084
1085 <div class="section " id="attribute-missing:name|http-equiv|charset"><h3>For a <code>meta</code> element, exactly one of
1086 <code>name</code>, <code>http-equiv</code>, and <code>charset</code>
1087 attributes must be specified.</h3></div>
1088
1089 <div class="section " id="attribute-not-allowed"><h3>Attribute
1090 <code><var>{local-name}</var></code> is not allowed for
1091 <code><var>{element-local-name}</var></code> element.</h3>
1092 <p>An attribute is specified where it is not allowed.
1093 The document is non-conforming.</p>
1094
1095 <dl>
1096 <dt>HTML <code>meta</code> element</dt>
1097 <dd>For HTML <code>meta</code> element, <em>only one</em> of
1098 <code>name</code>, <code>http-equiv</code>, or <code>charset</code>
1099 attribute is allowed.</dd>
1100 </dl>
1101 </div>
1102
1103 <div class="section " id="attribute-not-allowed:ismap"><h3>The <code>ismap</code> attribute may only be
1104 used for the image contained in an <code>a</code> element.</h3></div>
1105
1106 <div class="section " id="attribute-not-defined"><h3>This attribute is not defined.</h3></div>
1107
1108 <div class="section attribute-error" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute is not
1109 allowed in HTML document.</h3>
1110 <p>The <code>xml:lang</code> attribute is not allowed in
1111 HTML document. The document is non-conforming.</p>
1112
1113 <p>Use of the <code>xml:lang</code> attribute is conforming
1114 <em>only</em> in XML documents.</p>
1115
1116 <p>To specify natural language information in HTML document,
1117 use <code>lang</code> attribute instead.</p>
1118
1119 <p>XHTML 1.0 Appendix C was encouraged to specify both
1120 <code>lang</code> and <code>xml:lang</code> attributes with
1121 the same value. Such a duplication has <em>no effect</em> in practice.
1122 Use only one of <code>lang</code> (in HTML) or <code>xml:lang</code> (in
1123 XML).</p>
1124
1125 <!-- @@ ISSUE: xml:lang in non-HTML element in DOM5 HTML created
1126 from an HTML document? -->
1127 </div>
1128
1129 <div class="section " id="in-XML:charset"><h3>The <code>charset</code> attribute is not
1130 allowed in XML document.</h3>
1131 <p>The <code>charset</code> attribute of a
1132 <code>meta</code> element is not allowed in XML document.
1133 The document is non-conforming.</p>
1134
1135 <p>To specify the character encoding used for serialization,
1136 if necessary, use XML declaration instead:
1137 <pre class="xml example">
1138 <code>&lt;?xml version="1.0" encoding="<var>encoding-name</var>"?&gt;</code></pre>
1139 </p>
1140 </div>
1141
1142 <div class="section " id="in-XML:lang"><h3>The <code>lang</code> attribute is not
1143 allowed in XML document.</h3>
1144 <p>The HTML <code>lang</code> attribute is not allowed in
1145 XML document. The document is non-conforming.</p>
1146
1147 <p>The <code>lang</code> attribute in <code>null</code>
1148 namespace for HTML elements is conforming <em>only</em> in
1149 HTML documents.</p>
1150
1151 <p>To specify natural language information in XML document,
1152 use <code>xml:lang</code> attribute instead.</p>
1153 </div>
1154
1155 <div class="section " id="in-XML:noscript"><h3>A <code>noscript</code> element cannot be
1156 used in XML document.</h3></div>
1157
1158 <div class="section " id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute
1159 in the <code>null</code> namespace is not allowed in
1160 XHTML document. The document is non-conforming.</h3>
1161 <p>The <code>xmlns</code> attribute in the <code>null</code>
1162 namespace is not allowed in XHTML document.</p>
1163
1164 <p>This error should not occur in conformance-checking of
1165 static documents.</p>
1166 </div>
1167
1168 </section>
1169
1170 <section id="attribute-value-errors">
1171 <h2>Attribute Value Errors</h2>
1172
1173 <div class="section " id="boolean:invalid"><h3>Attribute value <code><var>{@}</var></code>
1174 is not allowed. It must be an empty string or a string
1175 <code><var>{local-name}</var></code>.</h3></div>
1176
1177 <div class="section " id="char:syntax-error"><h3>The attribute value must be exactly one
1178 character.</h3></div>
1179
1180 <div class="section " id="charref-in-charset"><h3>A character reference cannot be used to
1181 represent a character encoding name.</h3></div>
1182
1183 <div class="section " id="charset:not-preferred"><h3>Character encoding name
1184 <code><var>{value}</var></code> is not the preferred name of that
1185 character encoding.</h3></div>
1186
1187 <div class="section " id="charset:not-registered"><h3>Character encoding name
1188 <code><var>{value}</var></code> is not a registered name.</h3>
1189 <p>The specified character encoding name is not registered to
1190 <abbr>IANA</abbr>. Use of registered character encoding name
1191 is a good practice to facilitate interoperability.</p>
1192
1193 <dl class="switch">
1194 <dt><code>EUC-TW</code></dt>
1195 <dd><code>EUC-TW</code> is not registered. Unfortunately, there
1196 is no registered name for that character encoding. Use
1197 Big5 encoding with character encoding name <code>Big5</code>
1198 if it is enough to represent the document.</dd>
1199 <dt><code>ISO-2022-JP-1</code></dt>
1200 <dd><code>ISO-2022-JP-1</code> is not registered, nevertheless
1201 this character encoding name is documented in
1202 <a href="urn:ietf:rfc:2237"><abbr>RFC</abbr> 2237</a>. Use
1203 <code>ISO-2022-JP-2</code> instead, since that character encoding
1204 is a superset of ISO-2022-JP-1.</dd>
1205 <dt><code>ISO-2022-JP-3</code>, <code>ISO-2022-JP-3-plane1</code></dt>
1206 <dd>These names are not registered and obsoleted in favor of
1207 <code>ISO-2022-JP-2004</code> and
1208 <code>ISO-2022-JP-2004-plane1</code>.</dd>
1209 <dt><code>ISO-2022-JP-2003</code>,
1210 <code>ISO-2022-JP-2003-plane1</code></dt>
1211 <dd>These names are not registered and corrected to
1212 <code>ISO-2022-JP-2004</code> and
1213 <code>ISO-2022-JP-2004-plane1</code>.</dd>
1214 <dt><code>ISO-2022-JP-2004</code>,
1215 <code>ISO-2022-JP-2004-plane1</code></dt>
1216 <dd>These names are not registered. Unfortunately, there is
1217 no registered name for these character encodings.</dd>
1218 <dt><code>UTF-8N</code></dt>
1219 <dd><code>UTF-8N</code> is not registered. Character encoding
1220 name <code>UTF-8</code> represents UTF-8 encoding with or
1221 without <abbr>BOM</abbr>.</dd>
1222 </dl>
1223
1224 <p><strong>WARNING</strong>: This error might be raised for
1225 a registered character encoding name, since the character encoding
1226 name database of the conformance checker is not complete yet.</p>
1227 </div>
1228
1229 <div class="section " id="charset:private"><h3>Character encoding name
1230 <code><var>{value}</var></code> is a private name.</h3>
1231 <p>The specified character encoding name is a private name and
1232 not registered to <abbr>IANA</abbr>. Use of registered character
1233 encoding name is a good practice to facilitate interoperability.</p>
1234
1235 <dl class="switch">
1236 <dt><code>x-euc-jp</code></dt>
1237 <dd>Use <code>EUC-JP</code> for the Japanese <abbr>EUC</abbr>
1238 character encoding.</dd>
1239 <dt><code>x-sjis</code></dt>
1240 <dd>Use <code>Shift_JIS</code> for standard Shift encoding scheme of
1241 <abbr>JIS</abbr> coded character set, or <code>Windows-31J</code>
1242 for Microsoft standard character set as implemented by
1243 Microsoft Windows.</dd>
1244 </dl>
1245 </div>
1246
1247 <div class="section " id="charset:syntax-error"><h3>The specified value <code><var>{value}</var></code>
1248 is syntactically not a character encoding name.</h3>
1249 <p>The attribute value must be a character encoding name. However,
1250 the specified value is not a character encoding name syntactically.
1251 The document is non‐conforming.</p>
1252 <p>Character encoding name is a string of <abbr>ASCII</abbr>
1253 printable characters, up to 40 characters.</p>
1254 </div>
1255
1256 <div class="section " id="color:syntax-error"><h3>The specified value is not a color
1257 name or hexadecimal color number.</h3></div>
1258
1259 <div class="section " id="coords:number-not-3"><h3>The <code>coords</code> attribute have to
1260 contain three (3) numbers (specified:
1261 <code><var>{text}</var></code>).</h3></div>
1262
1263 <div class="section " id="coords:number-not-4"><h3>The <code>coords</code> attribute have to
1264 contain four (4) numbers (specified:
1265 <code><var>{text}</var></code>).</h3></div>
1266
1267 <div class="section " id="coords:number-lt-6"><h3>The <code>coords</code> attribute have to
1268 contain more than or equal to six (6) numbers (specified:
1269 <code><var>{text}</var></code>).</h3></div>
1270
1271 <div class="section " id="coords:number-not-even"><h3>The <code>coords</code> attribute have to
1272 contain even number of numbers (specified:
1273 <code><var>{text}</var></code>).</h3></div>
1274
1275 <div class="section " id="coords:out-of-range"><h3>The specified value <code><var>{value}</var></code>
1276 is out of range.</h3></div>
1277
1278 <div class="section " id="coords:syntax-error"><h3>The specified value is not valid.</h3></div>
1279
1280 <div class="section " id="datetime:bad-year"><h3>Year number is out of range.</h3></div>
1281
1282 <div class="section " id="datetime:bad-month"><h3>Month number is out of range.</h3></div>
1283
1284 <div class="section " id="datetime:bad-day"><h3>Day number is out of range.</h3></div>
1285
1286 <div class="section " id="datetime:bad-hour"><h3>Hour number is out of range.</h3></div>
1287
1288 <div class="section " id="datetime:bad-minute"><h3>Minute number is out of range.</h3></div>
1289
1290 <div class="section " id="datetime:bad-second"><h3>Second number is out of range.</h3></div>
1291
1292 <div class="section " id="datetime:bad-timezone-hour"><h3>Hour number of the timezone component is out of
1293 range.</h3></div>
1294
1295 <div class="section " id="datetime:bad-timezone-minute"><h3>Minute number of the timezone component is out of
1296 range.</h3></div>
1297
1298 <div class="section " id="datetime:syntax-error"><h3>The attribute value is not a datetime.</h3></div>
1299
1300 <div class="section " id="dateortime:syntax-error"><h3>The attribute value is not a date or
1301 time.</h3></div>
1302
1303 <div class="section " id="enumerated:invalid"><h3>This attribute only allow a limited set of
1304 values and the specified value <code><var>{@}</var></code> is not one
1305 of them.</h3>
1306 <p>For this attribute only several values are allowed and the
1307 value of the attribute is not one of them. The document
1308 is non-conforming.</p>
1309
1310 <dl>
1311 <dt>HTML <code>meta</code> element, <code>http-equiv</code> attribute</dt>
1312 <dd><p>Only values <code>Default-Style</code> and <code>Refresh</code>
1313 are allowed.</p>
1314 <p>Value <code>Content-Type</code> is obsolete; for charset
1315 declaration, the <code>charset</code> attribute can be used as:
1316 <pre class="html example">
1317 <code>&lt;meta charset="<var>charset-name</var>"&gt;</code></pre>
1318 ... where <var>charset-name</var> is a name of the character encoding
1319 of the document, such as <code>utf-8</code>.</p>
1320 <p>Values <code>Content-Style-Type</code> and
1321 <code>Content-Script-Type</code> are currently not allowed.</p>
1322 <p>Value <code>Keywords</code> is not allowed. Use
1323 <code>name</code> attribute instead of <code>http-equiv</code>
1324 attribute.</p>
1325 <p>Values <code>Expires</code>, <code>Pragma</code>,
1326 and <code>Cache-Control</code> are not allowed;
1327 use <em>real</em> HTTP header fields for cache control.</p></dd>
1328 </dl>
1329 </div>
1330
1331 <div class="section attribute-value-error" id="enumerated:invalid:http-equiv:content-type"><h3>Character encoding declaration syntax
1332 <code class="html bad example">&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"&gt;</code>
1333 is obsolete.</h3>
1334 <p>Old long character encoding declaration syntax
1335 <code class="html bad example">&lt;meta http-equiv="Content-Type" content="text/html; charset=<var>charset-name</var>"&gt;</code>
1336 is in use. The document is non‐conforming.</p>
1337
1338 <p>The new character encoding declaration syntax is:
1339 <pre class="html example">
1340 <code>&lt;meta charset="<var>charset-name</var>"&gt;</code></pre>
1341 </p>
1342 </div>
1343
1344 <div class="section " id="enumerated:non-conforming"><h3>Attribute value <code><var>{@}</var></code>
1345 is not allowed.</h3></div>
1346
1347 <div class="section " id="duplicate-http-equiv"><h3>There is another pragma
1348 <code><var>{value}</var></code>.</h3></div>
1349
1350 <div class="section attribute-value-error" id="duplicate-ID"><h3>This identifier has already been
1351 assigned to another element.</h3></div>
1352
1353 <div class="section " id="duplicate-token"><h3>The token <code><var>{value}</var></code>
1354 appears in the attribute value twice.</h3></div>
1355
1356 <div class="section " id="empty-attribute-value"><h3>The attribute value must not be empty.</h3></div>
1357
1358 <div class="section " id="float:out-of-range"><h3>The specified value is out of range.</h3></div>
1359
1360 <div class="section " id="float:syntax-error"><h3>The attribute value is not a real
1361 number.</h3></div>
1362
1363 <div class="section " id="fragment-points-itself"><h3>A fragment identifier references the element
1364 itself.</h3></div>
1365
1366 <div class="section " id="fragment-points-nothing"><h3>A fragment identifier references no
1367 node.</h3></div>
1368
1369 <div class="section " id="hashref:syntax-error"><h3>A hash−name reference must start with a
1370 <code>#</code> character.</h3></div>
1371
1372 <div class="section " id="id-ne-name"><h3>The <code>id</code> attribute value is
1373 different from the <code>name</code> attribute value.</h3></div>
1374
1375 <div class="section " id="integer:syntax-error"><h3>The attribute value is not an integer.</h3></div>
1376
1377 <div class="section " id="link-type:bad-context"><h3>The link type <code><var>{value}</var></code>
1378 cannot be specified for this element.</h3>
1379 <p>The specified link type cannot be used for the element.
1380 The document is non-conforming.</p>
1381
1382 <p>Link types are associated with limited set of elements.
1383 They cannot be used with other elements.</p>
1384
1385 <p>For example, link type <code>bookmark</code>
1386 can be used with <code>a</code> or <code>area</code> element,
1387 while it cannot be used with <code>link</code> element.</p>
1388 </div>
1389
1390 <div class="section attribute-value-error" id="invalid-attribute-value"><h3>Attribute value <code><var>{@}</var></code>
1391 is not an allowed value.</h3></div>
1392
1393 <div class="section " id="length:syntax-error"><h3>The attribute value is not a length
1394 value.</h3></div>
1395
1396 <div class="section " id="link-type:non-conforming"><h3>The link type <code><var>{value}</var></code>
1397 is non-conforming.</h3>
1398 <p>The specified link type is non-conforming, and therefore
1399 the document is non-conforming.</p>
1400
1401 <dl class="switch">
1402 <dt>Link type <code>contents</code></dt>
1403 <dd>Use link type <code>index</code>.</dd>
1404 <dt>Link type <code>copyright</code></dt>
1405 <dd>Use link type <code>license</code>.</dd>
1406 <dt>Link type <code>home</code></dt>
1407 <dd>Use link type <code>index</code>.</dd>
1408 <dt>Link type <code>previous</code></dt>
1409 <dd>Use link type <code>prev</code>.</dd>
1410 <dt>Link type <code>start</code></dt>
1411 <dd>Use link type <code>first</code>.</dd>
1412 <dt>Link type <code>toc</code> or <code>top</code></dt>
1413 <dd>Use link type <code>index</code>.</dd>
1414 </dl>
1415 </div>
1416
1417 <div class="section " id="meta-content-type-syntax-error"><h3>The specified value is not a valid as a long
1418 character encoding declaration.</h3></div>
1419
1420 <div class="section " id="mismatched-charset-name"><h3>The specified character encoding name
1421 <code><var>{value}</var></code> is different from the actual document
1422 character encoding <code><var>{text}</var></code>.</h3>
1423 <p>The specified character encoding name is different from
1424 the character encoding of the document. The document
1425 is non‐conforming.</p>
1426 </div>
1427
1428 <div class="section " id="mismatched-charset-name-not-checked"><h3>Whether the specified character encoding name
1429 <code><var>{value}</var></code> matches to the actual character encoding
1430 name cannot be checked since the input is not a byte stream.</h3></div>
1431
1432 <div class="section " id="mode:syntax-error"><h3>The attribute value is not a valid mode
1433 name.</h3></div>
1434
1435 <div class="section " id="nninteger:out-of-range"><h3>The specified value is out of range.</h3></div>
1436
1437 <div class="section " id="nninteger:syntax-error"><h3>The attribute value is not a non‐negative
1438 integer.</h3></div>
1439
1440 <div class="section " id="no-referenced-map"><h3>The <code>usemap</code> attribute references
1441 no image map.</h3></div>
1442
1443 <div class="section " id="no-referenced-menu"><h3>The <code>contextmenu</code> attribute references
1444 no menu.</h3></div>
1445
1446 <div class="section " id="refresh:syntax-error"><h3>the specified value is not a valid as part
1447 of a <code>Refresh</code> pragma.</h3></div>
1448
1449 <div class="section " id="repeat:syntax-error"><h3>The attribute value is not an integer or
1450 a string <code>template</code>.</h3></div>
1451
1452 <div class="section attribute-value-error" id="reserved-browsing-context-name"><h3>Browsing context name
1453 <code><var>{@}</var></code> is reserved.</h3>
1454 <p>The specified browsing context name is reserved.
1455 The document is non-conforming.</p>
1456
1457 <p>Names of browsing contexts starting with <code>_</code>
1458 (<code>U+005F</code> <code class="charname">LOW LINE</code>)
1459 are reserved so that it must not be used.</p>
1460
1461 <p>Old version of HTML, non-HTML markup languages, and
1462 Web browsers define or implements special reserved
1463 browsing context names <code>_blank</code>,
1464 <code>_main</code>, and <code>_replace</code>.
1465 However, they are <em>not</em> conforming attribute values.</p>
1466 </div>
1467
1468 <div class="section " id="Reserved-Prefixes-and-Namespace-Names:Name"><h3>Namespace name <code><var>{text}</var></code>
1469 is reserved and cannot be used for an arbitrary prefix.</h3></div>
1470
1471 <div class="section " id="Reserved-Prefixes-and-Namespace-Names:Prefix"><h3>Namespace prefix <code><var>{text}</var></code>
1472 is reserved and cannot be used for an arbitrary namespace name.</h3></div>
1473
1474 <div class="section " id="link-type:proposed"><h3>Link type <code><var>{value}</var></code>
1475 is proposed but not accepted yet; it <em>should not</em> be
1476 used until it has been accepted.</h3>
1477 <p>The link type is in the <i>proposed</i> status; it
1478 <em>should not</em> be used until it has been
1479 accepted.</p>
1480
1481 <p><strong>Warning</strong>: The data served to the
1482 conforming checker might be out of date; it might have already
1483 been accepted or rejected. The document might or might not be
1484 conforming depending on the status. See WHATWG Wiki
1485 for the latest information.</p>
1486 </div>
1487
1488 <div class="section " id="sizes:syntax-error"><h3>The specified value <code><var>{value}</var></code>
1489 is not a valid value.</h3></div>
1490
1491 <div class="section " id="space-in-ID"><h3>White space characters are not allowed
1492 in the <code>id</code> attribute.</h3></div>
1493
1494 <div class="section " id="template:not-template"><h3>The node referenced by the <code>template</code>
1495 attribute is not a template.</h3></div>
1496
1497 <div class="section " id="window-name:empty"><h3>Browsing context name must not be empty.</h3></div>
1498
1499 <div class="section " id="window-name:reserved"><h3>Browsing context name
1500 <code><var>{value}</var></code> is reserved.</h3></div>
1501
1502 <div class="section " id="word-not-allowed"><h3>The word <code><var>{value}</var></code> is not
1503 allowed in this attribute.</h3></div>
1504
1505 </section>
1506
1507 <section id="table-model-errors">
1508 <h2>Table Model Errors</h2>
1509
1510 <div class="section table-model-error" id="table:colspan-creates-column-with-no-anchored-cell"><h3>This <code>colspan</code> attribute
1511 results in creating a table column that does not contain
1512 any cell anchored to it.</h3></div>
1513
1514 <div class="section table-model-error" id="table:no-cell-in-last-row"><h3>The table has no cell (<code>td</code> or
1515 <code>th</code>) in the last row.</h3></div>
1516
1517 <div class="section table-model-error" id="table:rowspan-extends-table"><h3>This <code>rowspan</code> attribute
1518 results in creating a table row that does not contain
1519 any cell anchored to it.</h3>
1520 <p>The <code>rowspan</code> attribute value of the cell
1521 is so specified that it extends a table in the row axis.
1522 However, the extended row does not contain any cell by itself.
1523 The document is non-conforming.</p>
1524
1525 <p>For example, the table below is non-conforming:
1526 <pre class="html bad example">
1527 <code>&lt;table&gt;
1528 &lt;tbody&gt;
1529 &lt;tr&gt;&lt;td rowspan=2&gt;&lt;/td&gt;&lt;/tr&gt;
1530 &lt;/tbody&gt;
1531 &lt;/table&gt;</code></pre>
1532 ... since the second row contains only
1533 a cell that spans between first and second rows.</p>
1534 </div>
1535
1536 </section>
1537
1538 <section id="imt-warnings">
1539 <h2>Internet Media Type Errors</h2>
1540
1541 <div class="section " id="IMT:syntax-error"><h3>The specified value is not an Internet Media
1542 Type.</h3></div>
1543
1544 <div class="section should" id="s:IMT:obsolete-subtype"><h3><code><var>{@}</var></code>: An <em>obsolete</em>
1545 subtype is used.</h3></div>
1546
1547 <div class="section should" id="s:IMT:private-subtype"><h3><code><var>{@}</var></code>: A private
1548 (<code>x-</code> or <code>x.</code>) subtype is used.</h3></div>
1549
1550 <div class="section should" id="s:IMT:unregistered-subtype"><h3><code><var>{@}</var></code>: The subtype is
1551 not registered to IANA.</h3></div>
1552
1553 </section>
1554
1555 <section id="uri-errors">
1556 <h2>URI (or IRI) Errors</h2>
1557
1558 <div class="section must" id="m:URI::syntax-error"><h3>The specified value is syntactically not an IRI
1559 reference.</h3>
1560 <p>The specified value does not satisfy the syntactical requirements
1561 for IRI references. The document is non-conforming.</p>
1562
1563 <p>Possible causes:
1564 <ul>
1565 <li>The string might contain one or more white space characters.
1566 Especially, the <code> </code> (<code>U+0020</code>
1567 <code class="charname">SPACE</code>) character cannot be
1568 used in IRI references.</li>
1569 </ul>
1570 </p>
1571 </div>
1572
1573 </section>
1574
1575 <section id="uri-shoulds">
1576 <h2>URI (or IRI) Should-level Errors</h2>
1577
1578 <div class="section should" id="s:URI::dot-segment"><h3>A dot-segment (<code>.</code> or
1579 <code>..</code>) occurs in an absolute reference.</h3>
1580 <p>Dot-segment (<code>.</code> or <code>..</code>) should
1581 not occur in an absolute reference.</p>
1582
1583 <p>In relative references, dot-segments are used to represent
1584 the current (<code>.</code>) or the parent (<code>..</code>)
1585 hierarchy of the path. Though they are also allowed
1586 in absolute references, it should be resolved to the
1587 canonical form before it has been published.</p>
1588 </div>
1589
1590 <div class="section should" id="s:URI::empty-path"><h3>This IRI does not end with
1591 a <code>/</code>.</h3></div>
1592
1593 <div class="section should" id="s:URI::lowercase-hexadecimal-digit"><h3>A lowercase hexadecimal digit is used
1594 in percent-encoding.</h3>
1595 <p>The hexadecimal digit in percent-encoding string in the IRI
1596 is in lowercase. Though the IRI <em>is</em> conforming,
1597 it should be in uppercase.</p>
1598 </div>
1599
1600 <div class="section should" id="s:URI::percent-encoded-unreserved"><h3>An unreserved character is
1601 percent-encoded.</h3>
1602 <p>An unreserved character is percent-encoded in the IRI.
1603 Though it <em>is</em> conforming, it should be in the
1604 decoded (or bare) form.</p>
1605 </div>
1606
1607 <div class="section should" id="s:URI::uppercase-scheme-name"><h3>URI scheme name is in uppercase.</h3>
1608 <p>The scheme part of the IRI is written in uppercase letter.</p>
1609
1610 <p>Uppercase scheme names are not required to be processed
1611 correctly.</p>
1612 <!-- @@
1613 RFC 3986 3.1.
1614 > Although schemes are case-
1615 insensitive, the canonical form is lowercase and documents that
1616 specify schemes must do so with lowercase letters.
1617
1618 > An implementation ... should only produce lowercase scheme names for
1619 consistency.
1620 -->
1621 </div>
1622
1623 </section>
1624
1625 <section id="cache-manifest-errors">
1626 <h2>Cache Manifest Errors</h2>
1627
1628 <div class="section must" id="m:not-manifest"><h3>This document is not a cache manifest.</h3>
1629 <p>The specified document is <em>not</em> a cache manifest.
1630 The document is non-conforming.</p>
1631
1632 <p>An entity labeled as Internet media type
1633 <code>text/cache-manifest</code> must contain a cache manifest.</p>
1634
1635 <p>A cache manifest must start with a line whose content is
1636 <code class="manifest example">CACHE MANIFEST</code>
1637 (exactly one space character between
1638 <code>CACHE</code> and <code>MANIFEST</code>).</p>
1639 </div>
1640 </section>
1641
1642 <section id="information">
1643 <h2>Stability Information</h2>
1644
1645 <div class="section " id="deprecated:attr"><h3>This attribute is deprecated.</h3></div>
1646
1647 <div class="section " id="deprecated:element"><h3>This element is deprecated.</h3></div>
1648
1649 <div class="section " id="status:cr:element"><h3>This element is in the
1650 <strong>call for implementation</strong> stage.</h3>
1651 <p>The element is in the call for implementation stage.</p>
1652
1653 <p>Usually, using the element is safe. However, it is a new feature
1654 so that it might not be implemented correctly. If it is found that
1655 the feature is hard or impossible to implement, the feature
1656 might be revised, or in some case it might be dropped.</p>
1657
1658 <p>Elements defined by Atom 1.0 (IETF Proposed Standard), and XBL 2.0
1659 (W3C Candidate Recommendation) belong to this class.</p>
1660 </div>
1661
1662 <div class="section " id="status:lc:element"><h3>This element is in the <strong>last
1663 call for comments</strong> stage.</h3>
1664 <p>The element is in the last call for comments stage.</p>
1665
1666 <p>The element is relatively mature, though the standardization
1667 is not done yet. It may be used for experiments. Since it is a new
1668 feature, it might not be implemented correctly or at all. If it is
1669 found that the feature is hard or impossible to implement, the feature
1670 might be revised or might be dropped.</p>
1671
1672 <p>Elements defined by Web Forms 2.0 as well as some elements
1673 defined by HTML5 belong to this class.</p>
1674 </div>
1675
1676 <div class="section " id="status:wd:element"><h3>This element is documented in a <strong>working
1677 draft</strong>.</h3>
1678 <p>The element is documented in a working or editor's draft
1679 and not yet completed.</p>
1680
1681 <p>The element should not be used for any practical purpose.
1682 The feature might be drastically changed later or might be
1683 entirely removed.</p>
1684
1685 <p>Most of new elements defined by HTML5 belong to this class.</p>
1686 </div>
1687
1688 <div class="section " id="status:non-standard:element"><h3>This element is <strong>not part of any
1689 standard</strong> the conformance checker knows.</h3>
1690 <p>The element is not part of any standard or draft the conformance
1691 checker is aware of.</p>
1692
1693 <p>The element should not be used for any practical purpose unless
1694 there is really a standard that defines the element.</p>
1695 </div>
1696
1697 <div class="section " id="status:cr:attr"><h3>This attribute is in the
1698 <strong>call for implementation</strong> stage.</h3>
1699 <p>The attribute is in the call for implementation stage.</p>
1700
1701 <p>Usually, using the attribute is safe. However, it is a new feature
1702 so that it might not be implemented correctly. If it is found that
1703 the feature is hard or impossible to implement, the feature
1704 might be revised, or in some case it might be dropped.</p>
1705 </div>
1706
1707 <div class="section " id="status:lc:attr"><h3>This attribute is in the <strong>last
1708 call for comments</strong> stage.</h3>
1709 <p>The attribute is in the last call for comments stage.</p>
1710
1711 <p>The attribute is relatively mature, though the standardization
1712 is not done yet. It may be used for experiments. Since it is a new
1713 feature, it might not be implemented correctly or at all. If it is
1714 found that the feature is hard or impossible to implement, the feature
1715 might be revised or might be dropped.</p>
1716 </div>
1717
1718 <div class="section " id="status:wd:attr"><h3>This attribute is documented in a <strong>working
1719 draft</strong>.</h3>
1720 <p>The attribute is documented in a working or editor's draft
1721 and not yet completed.</p>
1722
1723 <p>The attribute should not be used for any practical purpose.
1724 The feature might be drastically changed later or might be
1725 entirely removed.</p>
1726 </div>
1727
1728 <div class="section " id="status:non-standard:attr"><h3>This attribute is <strong>not part of any
1729 standard</strong> the conformance checker knows.</h3>
1730 <p>The attribute is not part of any standard or draft the conformance
1731 checker is aware of.</p>
1732
1733 <p>The attribute should not be used for any practical purpose unless
1734 there is really a standard that defines the attribute.</p>
1735 </div>
1736 </section>
1737
1738 <section id="unsupported-messages">
1739 <h2><i>Unsupported</i> Messages</h2>
1740
1741 <div class="section " id="unknown-element"><h3>Conformance checking for element
1742 <code><var>{local-name}</var></code> is not supported; <em>it might or
1743 might not be conforming</em>.</h3>
1744 <p>The conformant checker does not support the element.
1745 It cannot determine whether the document is conforming or not.</p>
1746 </div>
1747
1748 <div class="section " id="unknown-attribute"><h3>Conformance checking for attribute
1749 <code><var>{local-name}</var></code> of element
1750 <code><var>{element-local-name}</var></code> is not supported;
1751 <em>it might or might not be conforming</em>.</h3>
1752 <p>The conformant checker does not support the attribute.
1753 It cannot determine whether the document is conforming or not.</p>
1754 </div>
1755
1756 <div class="section " id="unknown-link-type"><h3>Link type <code><var>{value}</var></code> is not
1757 standardized or registered at the time of the release of the conformance
1758 checker; <em>it is non-conforming unless it now has been
1759 registered</em>.</h3>
1760 <p>The <code>rel</code> attribute is defined as a list of link types.
1761 Some common link types are defined in the HTML5 specification.
1762 Additional link types can be registered to the WHATWG Wiki.
1763 use of any other link type is non-conforming.</p>
1764
1765 <p>The specified link type is not part of the standard or registry
1766 when the database used by the conformance cheker is created.
1767 The link type might have been added to the registry since then.
1768 In such case it might be conforming. Otherwise, the
1769 document is non-conforming.</p>
1770
1771 <dl>
1772 <dt>Link types <code>shortcut icon</code></dt>
1773 <dd>Link type <code>shortcut</code> is not registered.
1774 Use only <code>icon</code> for linking to so-called favicon.</dd>
1775 </dl>
1776 </div>
1777
1778 <div class="section " id="event-handler"><h3>Conformance checking for event handler attribute
1779 is not supported; <em>it might or might not be conforming.</em></h3></div>
1780
1781 <div class="section " id="media-query"><h3>Conformance checking for media query
1782 is not supported; <em>it might or might not be conforming.</em></h3></div>
1783
1784 <div class="section " id="XML-script-lang"><h3>Conformance checking for script
1785 language <code><var>{text}</var></code> is not supported;
1786 <em>it might or might not be conforming.</em></h3></div>
1787
1788 <div class="section " id="XML-style-lang"><h3>Conformance checking for style
1789 language <code><var>{text}</var></code> is not supported;
1790 <em>it might or might not be conforming.</em></h3></div>
1791
1792 </section>
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990 <section id="levels">
1991 <h2>Error Levels</h2>
1992
1993 <table id="levels-table">
1994 <thead>
1995 <tr><th scope="col">Level</th>
1996 <th scope="col">Conforming?</th>
1997 <th scope="col">Description</th>
1998 </tr>
1999 </thead>
2000 <tbody>
2001 <tr class="level-m" id="level-m">
2002 <th scope="row"><em class="rfc2119">MUST</em>‐level error</th>
2003 <td>Non‐conforming.</td>
2004 <td>A violation to a hard requirement of the specification.
2005 The document is non‐conforming.</td>
2006 </tr>
2007 <tr class="level-s" id="level-s">
2008 <th scope="row"><em class="rfc2119">SHOULD</em>‐level error</th>
2009 <td>Non‐conforming, but <em>in some case</em>
2010 conforming.</td>
2011 <td>A violation to a requirement of the specification.
2012 The violation might be legitimize in some case. Otherwise,
2013 the document is non‐conforming.</td>
2014 </tr>
2015 <tr class="level-w" id="level-w">
2016 <th scope="row">Warning</th>
2017 <td>Conforming.</td>
2018 <td>A warning is an advice from the conformance checker to avoid
2019 to solve a problem in a confusing or possibly wrong way.
2020 It does not affect to the conformance of the document, and
2021 may sometimes be inappropriate.</td>
2022 </tr>
2023 <tr class="level-i" id="level-i">
2024 <th scope="row">Information</th>
2025 <td>Conforming.</td>
2026 <td>An informational message just provides an additional information
2027 on the feature used in the document or the status of the retrieval
2028 or so on.
2029 It does not affect to the conformance of the document.</td>
2030 </tr>
2031 <tr class="level-u" id="level-u">
2032 <th scope="row">Not supported</th>
2033 <td><em>Unknown</em>.</td>
2034 <td>Some feature that is not supported by the conformance checker
2035 is used in the document.</td>
2036 </tr>
2037 </tbody>
2038 </table>
2039 </section>
2040
2041 <section id="license">
2042 <h2>License of This Document</h2>
2043
2044 <p>Copyright <time>2007</time>‐<time>2008</time>
2045 <a href="http://suika.fam.cx/~wakaba/who?" rel="author" xml:lang="ja">Wakaba</a>
2046 <code class="mail">&lt;<a href="mailto:w@suika.fam.cx">w@suika.fam.cx</a>&gt;</code>.</p>
2047
2048 <p>This document is free software; you can redistribute it
2049 and/or modify it under the same terms as Perl itself.</p>
2050 </section>
2051
2052 <!-- $Date: 2008/08/15 08:36:41 $ -->
2053 </body>
2054 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24