/[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.25 - (hide annotations) (download)
Fri Aug 15 08:36:41 2008 UTC (15 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.24: +219 -25 lines
++ ChangeLog	15 Aug 2008 08:33:38 -0000
	* error-description-source.xml: Missing entries for Whatpm::HTML
	error types are added.  Error entries used by Whatpm::HTML
	are marked as "HTML::Parser".

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

++ html/WebHACC/Language/ChangeLog	15 Aug 2008 08:36:35 -0000
	* HTML.pm: Set flags for encoding layer errors appropriately.
	Save link to the document root for the parsed document
	for garbage collection safety.

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

++ html/WebHACC/ChangeLog	15 Aug 2008 08:35:36 -0000
	* Output.pm: |fieldset| end tag no longer necessary.

	* Result.pm: Link to "#parse-errors" if there are
	encoding layer errors.

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

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24