/[pub]/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.3 - (hide annotations) (download) (as text)
Mon Jul 16 10:55:11 2007 UTC (19 years ago) by wakaba
Branch: MAIN
Changes since 1.2: +339 -17 lines
File MIME type: text/xml
++ ChangeLog	16 Jul 2007 10:55:08 -0000
	* cc.cgi (table stuff): Set |is_header| property
	of table cells explicitly since otherwise newer JSON.pm
	generates broken output.
	(get_text): Return the reduced type name as well.  Use
	it as fragment of detail document.

	* error-description-source.xml: More error descriptions
	are added.

	* mkdescription.pl: Remove |catalog| element from
	the result description document.

	* table.cgi: Set |is_header| property
        of table cells explicitly since otherwise newer JSON.pm
        generates broken output.

2007-07-16  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.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 wakaba 1.2 <section id="html5-tokenize-error">
15     <h2>HTML5 Parse Errors in Tokenization Stage</h2>
16 wakaba 1.1
17 wakaba 1.3 <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="bare ero"
32     class="tokenize-error">
33     <d:message xml:lang="en">The <code>&amp;</code> character must
34     introduce a reference.</d:message>
35     <d:desc xml:lang="en">
36     <p>An <code>&amp;</code> (<code>U+0026</code>
37     <code class="charname">AMPERSAND</code>) character which
38     is not part of any reference appears in the input stream.
39     The document is non-conforming.</p>
40    
41     <p>The <code>&amp;</code> character must
42     be the first character of a reference:
43     <dl>
44     <dt>Named entity reference</dt>
45     <dd><pre class="html example"><code>&amp;<var>entity-name</var>;</code></pre>
46     where <var>entity-name</var> is the name of the
47     character entity to be referenced.</dd>
48     <dt>Numeric character reference</dt>
49     <dd><pre class="html example"><code>&amp;#<var>d</var>;</code></pre>
50     where <var>d</var> is the decimal representation of
51     the code position of the character to be referenced.</dd>
52     <dt>Hexadecimal character reference</dt>
53     <dd><pre class="html example"><code>&amp;#x<var>h</var>;</code></pre>
54     where <var>h</var> is the hexadecimal representation
55     of the code position of the character to be referenced.</dd>
56     </dl>
57     </p>
58    
59     <p>To represent <code>&amp;</code> as a data character, use
60     named entity reference:
61     <pre class="html example"><code>&amp;amp;</code></pre>
62     </p>
63     </d:desc>
64     </d:item>
65    
66     <d:item name="bare nero"
67     class="tokenize-error">
68     <d:message xml:lang="en">The decimal representation of the code position
69     of a character must be specified after <code>&amp;#</code>.</d:message>
70     <d:desc xml:lang="en">
71     <p>An <code>&amp;</code> (<code>U+0026</code>
72     <code class="charname">AMPERSAND</code>) character immediately
73     followed by a <code>#</code> (<code>U+0023</code>
74     <code>NUMBER SIGN</code>) character which
75     is not part of any reference appears in the input stream.
76     The document is non-conforming.</p>
77    
78     <p>The string <code>&amp;#</code> must be the first two characters
79     <code>NUMBER SIGN</code>) character must be the first two characters
80     of a reference:
81     <dl>
82     <dt>Numeric character reference</dt>
83     <dd><pre class="html example"><code>&amp;#<var>d</var>;</code></pre>
84     where <var>d</var> is the decimal representation of
85     the code point of the character to be referenced.</dd>
86     <dt>Hexadecimal character reference</dt>
87     <dd><pre class="html example"><code>&amp;#x<var>h</var>;</code></pre>
88     where <var>h</var> is the hexadecimal representation
89     of the code point of the character to be referenced.</dd>
90     </dl>
91     </p>
92    
93     <p>To represent <code>&amp;#</code> as data characters, use
94     named entity reference:
95     <pre class="html example"><code>&amp;amp;#</code></pre>
96     </p>
97     </d:desc>
98     </d:item>
99    
100     <d:item name="bare hcro"
101     class="tokenize-error">
102     <d:message xml:lang="en">The hexadecimal representation of the code position
103     of a character must be specified after <code>&amp;#x</code>.</d:message>
104     <d:desc xml:lang="en">
105     <p>The string <code>&amp;#x</code> or <code>&amp;#X</code> which
106     is not part of any reference appears in the input stream.
107     The document is non-conforming.</p>
108    
109     <p>The string <code>&amp;#x</code> or <code>&amp;#X</code> must
110     be the first three characters of a hexadecimal reference:
111     <pre class="html example"><code>&amp;#x<var>h</var>;</code></pre>
112     where <var>h</var> is the hexadecimal representation
113     of the code point of the character to be referenced.</p>
114    
115     <p>To represent <code>&amp;#x</code> as data characters, use
116     named entity reference:
117     <pre class="html example"><code>&amp;amp;#x</code></pre>
118     </p>
119     </d:desc>
120     </d:item>
121    
122 wakaba 1.1 <d:item name="duplicate attribute"
123     class="tokenize-error">
124     <d:message xml:lang="en">There are two attributes with same name.</d:message>
125     <d:desc xml:lang="en">
126 wakaba 1.3 <p>There are more than one attributes with the same
127     name in a tag. The document is non-conforming.</p>
128 wakaba 1.1
129     <p>The <code>motion</code> attribute is not part of the HTML standard.
130     Use <code>img</code> element with animation GIF instead.</p>
131     </d:desc>
132     </d:item>
133    
134     <d:item name="nestc"
135     class="tokenize-error">
136     <d:message xml:lang="en">Void element syntax (<code>/></code>) cannot be
137     used for this element.</d:message>
138     <d:desc xml:lang="en">
139 wakaba 1.3 <p>Void element syntax (<code>/></code>) must not be used
140     for the element. The document is non-conforming.</p>
141    
142     <p>The void element syntax can only be
143 wakaba 1.1 used for <code>base</code>, <code>link</code>, <code>meta</code>,
144     <code>hr</code>, <code>br</code>, <code>img</code>,
145     <code>embed</code>, <code>param</code>, <code>area</code>,
146 wakaba 1.3 <code>col</code>, and <code>input</code> elements.</p>
147 wakaba 1.1
148 wakaba 1.3 <p>Note that, unlike in XML, the void element syntax has
149 wakaba 1.1 no effect in HTML.</p>
150     </d:desc>
151     </d:item>
152    
153     </section>
154    
155 wakaba 1.2 <section id="html5-parse-errors">
156     <h2>HTML5 Parse Errors in Tree Construction Stage</h2>
157    
158     <d:item name="after head"
159     class="parse-error">
160     <d:message xml:lang="en">The <code><var>$0</var></code> element cannot be
161     inserted between <code>head</code> and <code>body</code> elements.</d:message>
162     <d:desc xml:lang="en">
163 wakaba 1.3 <p>A start tag appears after the <code>head</code> element is closed
164 wakaba 1.2 but before the <code>body</code> element is opened.
165     The document is non-conforming.</p>
166     </d:desc>
167     </d:item>
168    
169 wakaba 1.3 <d:item name="in table"
170     class="parse-error">
171     <d:message xml:lang="en">Tag <code>&lt;<var>$0</var>&gt;</code>
172