/[suikacvs]/test/html-webhacc/error-description-source.xml
Suika

Contents of /test/html-webhacc/error-description-source.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download) (as text)
Sun Nov 4 09:15:02 2007 UTC (18 years, 8 months ago) by wakaba
Branch: MAIN
Changes since 1.11: +129 -33 lines
File MIME type: text/xml
++ ChangeLog	4 Nov 2007 09:14:24 -0000
2007-11-04  Wakaba  <wakaba@suika.fam.cx>

	* cc-interface.en.html (i): |text/cache-manifest| is added.

	* cc-style.css: New rules for manifest dump.

	* cc.cgi: Support for |text/cache-manifest|.

	* error-description-soruce.en.xml (#cache-manifest-errors): New
	section.

1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:d="http://suika.fam.cx/~wakaba/archive/2007/wdcc-desc/"
4 id="error-description">
5 <head>
6 <title xml:lang="en">Description of Errors &#x2014;
7 Web Document Conformance Checker (BETA)</title>
8 <link rel="stylesheet" href="cc-style"/>
9 <link rel="license" href="#license"/>
10 </head>
11 <body>
12 <h1>Description of Errors</h1>
13
14 <section id="html5-tokenize-error">
15 <h2>HTML5 Parse Errors in Tokenization Stage</h2>
16
17 <d:item name="after html"
18 class="parse-error">
19 <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>
20 is not allowed after the end tag <code>&lt;/html></code>.</d:message>
21 <d:desc xml:lang="en">
22 <p>The start or end tag of an element appears after the
23 <code>html</code> element has been closed. The document is
24 non-conforming.</p>
25
26 <p>Any content of the document other than comments
27 must be put into the <code>html</code> element.</p>
28 </d:desc>
29 </d:item>
30
31 <d:item name="after body"
32 class="parse-error">
33 <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>
34 is not allowed after the end tag <code>&lt;/body></code>.</d:message>
35 <d:desc xml:lang="en">
36 <p>The start or end tag of an element appears after the
37 <code>body</code> element has been closed. The document is
38 non-conforming.</p>
39
40 <p>Any content of the document other than <code>head</code>
41 contents and comments must be put into the <code>body</code>
42 element.</p>
43 </d:desc>
44 </d:item>
45
46 <d:item name="bare ero"
47 class="tokenize-error">
48 <d:message xml:lang="en">The <code>&amp;</code> character must
49 introduce a reference.</d:message>
50 <d:desc xml:lang="en">
51 <p>An <code>&amp;</code> (<code>U+0026</code>
52 <code class="charname">AMPERSAND</code>) character which
53 is not part of any reference appears in the input stream.
54 The document is non-conforming.</p>
55
56 <p><strong>Any <code>&amp;</code> character in URI (or IRI)
57 must be escaped as <code>&amp;amp;</code>.</strong></p>
58
59 <p>The <code>&amp;</code> character must
60 be the first character of a reference:
61 <dl>
62 <dt>Named entity reference</dt>
63 <dd><pre class="html example"><code>&amp;<var>entity-name</var>;</code></pre>
64 where <var>entity-name</var> is the name of the
65 character entity to be referenced.</dd>
66 <dt>Numeric character reference</dt>
67 <dd><pre class="html example"><code>&amp;#<var>d</var>;</code></pre>
68 where <var>d</var> is the decimal representation of
69 the code position of the character to be referenced.</dd>
70 <dt>Hexadecimal character reference</dt>
71 <dd><pre class="html example"><code>&amp;#x<var>h</var>;</code></pre>
72 where <var>h</var> is the hexadecimal representation
73 of the code position of the character to be referenced.</dd>
74 </dl>
75 </p>
76
77 <p>To represent <code>&amp;</code> as a data character, use
78 named entity reference:
79 <pre class="html example"><code>&amp;amp;</code></pre>
80 </p>
81 </d:desc>
82 </d:item>
83
84 <d:item name="bare etago"
85 class="tokenize-error">
86 <d:message xml:lang="en">A <code>&lt;/</code> string is not followed
87 by a tag name.</d:message><!-- </ EOF -->
88 <d:desc xml:lang="en">
89 <p>There is a <code>&lt;</code> (<code>U+003C</code>
90 <code class="charname">LESS-THAN SIGN</code>) character
91 immediately followed by a <code>/</code> (<code>U+005F</code>
92 <code>SOLIDUS</code>) character, which is not part
93 of any end tag, in the input stream. The document
94 is non-conforming.</p>
95
96 <p>The <code>&lt;/</code> sequence immediately followed
97 by an <abbr title="End of file pseudo-character">EOF</abbr> is
98 interpreted as a string data of <code>&lt;/</code>.</p>
99
100 <p>The <code>&lt;/</code> sequence as string data must
101 be escaped as:
102 <pre class="html example"><code>&amp;lt;/</code></pre>
103 </p>
104 </d:desc>
105 </d:item>
106
107 <d:item name="bare stago"
108 class="tokenize-error">
109 <d:message xml:lang="en">A <code>&lt;</code> character is not followed
110 by tag name or by a <code>!</code> character.</d:message>
111 <d:desc xml:lang="en">
112 <p>A <code>&lt;</code> (<code>U+003C</code>
113 <code class="charname">LESS-THAN SIGN</code>) character which is not part
114 of any markup appears in the input stream.</p>
115
116 <p>The <code>&lt;</code> character as a data character must
117 be escaped as:
118 <pre class="html example"><code>&amp;lt;</code></pre>
119 </p>
120 </d:desc>
121 </d:item>
122
123 <d:item name="bare nero"
124 class="tokenize-error">
125 <d:message xml:lang="en">The decimal representation of the code position
126 of a character must be specified after <code>&amp;#</code>.</d:messag