/[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.2 - (hide annotations) (download)
Mon Jul 16 08:38:48 2007 UTC (16 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.1: +77 -23 lines
++ ChangeLog	16 Jul 2007 08:38:44 -0000
	* Makefile (all): |cc-msg.en.txt| is added to the list of
	dependency.
	(cc-msg.en.txt): New rule.

	* mkcatalog.pl: New Perl script.

	* cc-msg.en.txt: Now this file is generated by
	the rule described in |Makefile|.

	* cc.cgi (HTML mode): Set |charset| as |ISO-8859-1|
	if not specified, for now.
	(get_text): Replace |<var>$/n/</var>|, not just |$/n/|,
	to variable.

	* error-description-source.xml: All entries
	in |cc-msg.en.txt| are now described as XML data.

	* mkdescription.pl: Print the result by |inner_html| DOM
	attribute.  Put |level| attribute value, if any, before |name|
	attribute value.  Allow missing of |desc| attribute.
	Ignore any |catalog| element.

2007-07-16  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.2 <section id="html5-tokenize-error">
12     <h2>HTML5 Parse Errors in Tokenization Stage</h2>
13 wakaba 1.1
14     <div class="section tokenize-error" id="duplicate-attribute"><h3>There are two attributes with same name.</h3>
15     <p>Attributes must be unique in an element. Specifying
16     attributes with same name more than once is non-conforming.</p>
17    
18     <p>The <code>motion</code> attribute is not part of the HTML standard.
19     Use <code>img</code> element with animation GIF instead.</p>
20     </div>
21    
22     <div class="section tokenize-error" id="nestc"><h3>Void element syntax (<code>/&gt;</code>) cannot be
23     used for this element.</h3>
24     <p>The void element syntax <code>/&gt;</code> syntax can only be
25     used for <code>base</code>, <code>link</code>, <code>meta</code>,
26     <code>hr</code>, <code>br</code>, <code>img</code>,
27     <code>embed</code>, <code>param</code>, <code>area</code>,
28     <code>col</code>, and <code>input</code> elements.
29     For any other elements, using that syntax is non-conforming.</p>
30    
31     <p>Unlike XML, the void element syntax (<code>/&gt;</code>) has
32     no effect in HTML.</p>
33     </div>
34    
35     </section>
36    
37 wakaba 1.2 <section id="html5-parse-errors">
38     <h2>HTML5 Parse Errors in Tree Construction Stage</h2>
39    
40     <div class="section parse-error" id="after-head"><h3>The <code><var>$0</var></code> element cannot be
41     inserted between <code>head</code> and <code>body</code> elements.</h3>
42     <p>A start tag occurs after the <code>head</code> element is closed
43     but before the <code>body</code> element is opened.
44     The document is non-conforming.</p>
45     </div>
46    
47     <div class="section parse-error" id="no-DOCTYPE"><h3>This document does not start with the
48     <code>DOCTYPE</code> declaration.</h3></div>
49    
50     <div class="section parse-error" id="not-closed"><h3>Element <code><var>$0</var></code> is not
51     closed.</h3></div>
52    
53     <div class="section parse-error" id="not-HTML5"><h3>This document is written in an old version of
54     HTML.</h3></div>
55    
56     <div class="section parse-error" id="unmatched-end-tag"><h3>Element <code><var>$0</var></code> is not
57     opened.</h3></div>
58    
59     </section>
60    
61 wakaba 1.1 <section id="element-content-model-errors">
62     <h2>Element Content Model Errors</h2>
63    
64     <div class="section content-model-error" id="character-not-allowed"><h3>Data character is not allowed in this
65     context.</h3>
66     <p>A data character occurs where it is not allowed in this
67     context. The document is non-conforming.</p>
68    
69     <p>Possible causes:
70     <dl>
71     <dt>If the erred element is an inline-level element (such
72     as <code>a</code> or <code>span</code>)</dt>
73     <dd><p>A data character cannot be a child
74     of certain sectioning elements such as <code>body</code>,
75     <code>section</code>, and <code>blockquote</code>.</p>
76    
77     <p>Any inline-level content must be put
78     in e.g. paragraph element such as <code>p</code>.</p></dd>
79     <dt>If the erred element is a block-level element (such as
80     <code>div</code> or <code>h<var>n</var></code>)</dt>
81     <dd><p>Though some elements such as <code>div</code>,
82     <code>li</code>, and <code>td</code> allow
83     <em>either one</em> of block-level or inline-level content
84     is allowed. If there is a block-level content,
85     any inline-level content must be put
86     in e.g. paragraph element such as <code>p</code>.</p></dd>
87     </dl>
88     </p>
89     </div>
90    
91     <div class="section content-model-error" id="child-element-missing"><h3>There must be a <code><var>$0</var></code>
92     element as a child of this element.</h3>
93     <p>The content model of the element is so defined that it
94     must contain a <code><var>$0</var></code> child element.
95     Without such an element, the document is non-conforming.</p>
96    
97     <p>For example:
98     <ul>
99     <li>The <code>head</code> element must contain exactly one
100     <code>title</code> child element.</li>
101     <li><a href="#child-element-missing:td%7Cth">The <code>tr</code>
102     element must contain one or more <code>td</code> or <code>th</code>
103     child element.</a></li>
104     </ul>
105     </p>
106     </div>
107    
108     <div class="section content-model-error" id="child-element-missing:td|th"><h3>There must be a <code>td</code>
109     or <code>th</code> element as a child of this element.</h3>
110     <p>The <code>tr</code> element must contain at least one
111     <code>td</code> or <code>th</code> child element. Without
112     such an element, the document is non-conforming.</p>
113     </div>
114    
115     <div class="section content-model-error" id="element-not-allowed"><h3>This element is not allowed in this
116     context.</h3>
117     <p>An element occurs where it is not allowed. The document
118     is non-conforming.</p>
119    
120     <p>Possible causes:
121     <dl>
122     <dt>If the erred element is an inline-level element (such
123     as <code>a</code> or <code>span</code>)</dt>
124     <dd><p>An inline-level element cannot be a child
125     of certain sectioning elements such as <code>body</code>,
126     <code>section</code>, and <code>blockquote</code>.</p>
127    
128     <p>Any inline-level content must be put
129     in e.g. paragraph element such as <code>p</code>.</p></dd>
130     <dt>If the erred element is a block-level element (such as
131     <code>div</code> or <code>h<var>n</var></code>)</dt>
132     <dd><p>Though some elements such as <code>div</code>,
133     <code>li</code>, and <code>td</code> allow
134     <em>either one</em> of block-level or inline-level content
135     is allowed. If there is a block-level content,
136     any inline-level content must be put
137     in e.g. paragraph element such as <code>p</code>.</p></dd>
138     <dt>If the erred element is the root <code>html</code> element</dt>
139     <dd><p>In an XHTML document, the root <code>html</code>
140     element must have an <code>xmlns</code> attribute
141     whose value is set to
142     <code>http://www.w3.org/1999/xhtml</code>.</p></dd>
143     </dl>
144     </p>
145     </div>
146    
147 wakaba 1.2 </section>
148    
149     <section id="attribute-value-errors">
150     <h2>Attribute Value Errors</h2>
151    
152     <div class="section attribute-error" id="enumerated:invalid"><h3>This attribute only allow a limited set of
153     values and the specified value is not one of them.</h3></div>
154    
155     </section>
156    
157     <section id="table-model-errors">
158     <h2>Table Model Errors</h2>
159    
160     <div class="section table-model-error" id="table:no-cell-in-last-row"><h3>The table has no cell (<code>td</code> or
161     <code>th</code>) in the last row.</h3></div>
162    
163     </section>
164    
165     <section id="imt-warnings">
166     <h2>Internet Media Type Warnings</h2>
167 wakaba 1.1
168 wakaba 1.2 <div class="section should" id="s:IMT:obsolete-subtype"><h3>An <em>obsolete</em> subtype is used.</h3></div>
169    
170     <div class="section should" id="s:IMT:private-subtype"><h3>A private (<code>x-</code> or <code>x.</code>)
171     subtype is used.</h3></div>
172    
173     <div class="section should" id="s:IMT:unregistered-subtype"><h3>The subtype is not registered to IANA.</h3></div>
174    
175     </section>
176    
177     <section id="uri-errors">
178     <h2>URI (or IRI) Errors</h2>
179    
180     <div class="section must" id="m:URI::syntax-error"><h3>This string is not an IRI syntactically.</h3></div>
181    
182     </section>
183    
184     <section id="uri-errors">
185     <h2>URI (or IRI) Errors</h2>
186    
187     <div class="section should" id="s:URI::empty-path"><h3>This IRI should explicitly end with
188     <code>/</code>.</h3></div>
189 wakaba 1.1
190     </section>
191    
192     <section id="unsupported-messages">
193     <h2><i>Unsupported</i> Messages</h2>
194    
195     <div class="section unsupported" id="unsupported:attribute"><h3>This attribute is not supported by the
196     conformance checker; <em>it might or might not be conforming</em>.</h3>
197     <p>The conformant checker does not support the attribute.
198     It cannot determine whether the document is conforming or not.</p>
199     </div>
200    
201     <div class="section unsupported" id="unsupported:element"><h3>This element is not supported by the
202     conformance checker; <em>it might or might not be conforming</em>.</h3>
203     <p>The conformant checker does not support the element.
204     It cannot determine whether the document is conforming or not.</p>
205     </div>
206    
207     <div class="section unsupported" id="unsupported:link-type"><h3>The link type <code>$0</code> is not standardized
208     or registered at the time of the release of the conformance checker;
209     <em>it is non-conforming unless it has now been registered</em>.</h3>
210     <p>The <code>rel</code> attribute is defined as a list of link types.
211     Some common link types are defined in the HTML5 specification.
212     Additional link types can be registered to the WHATWG Wiki.
213     use of any other link type is non-conforming.</p>
214    
215     <p>The specified link type is not part of the standard or registry
216     when the database used by the conformance cheker is created.
217     The link type might have been added to the registry since then.
218     In such case it might be conforming. Otherwise, the
219     document is non-conforming.</p>
220     </div>
221    
222     </section>
223    
224 wakaba 1.2 <d:catalog>
225     manakaiCompatMode:quirks;;Quirks Mode
226     manakaiCompatMode:limited quirks;;Limited Quirks Mode
227     manakaiCompatMode:no quirks;;No Quirks Mode
228    
229     manakaiIsHTML:1;;HTML Document
230     manakaiIsHTML:0;;XML Document
231     </d:catalog>
232    
233 wakaba 1.1 <section id="license">
234     <h2>License of This Document</h2>
235    
236     <p>Copyright 2007 <a href="http://suika.fam.cx/~wakaba/who?">Wakaba</a></p>
237     <p>This library is free software; you can redistribute it
238     and/or modify it under the same terms as Perl itself.</p>
239     </section>
240    
241 wakaba 1.2 <!-- $Date: 2007/07/01 10:02:24 $ -->
242 wakaba 1.1 </body>
243     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24