/[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.1 - (hide annotations) (download) (as text)
Sun Jul 1 10:02:24 2007 UTC (19 years ago) by wakaba
Branch: MAIN
File MIME type: text/xml
++ ChangeLog	1 Jul 2007 10:02:07 -0000
	* cc.cgi: Return 404 if |PATH_INFO| is different from |/|.
	Link to |error-description|.

	* error-description-source.xml: New.

	* mkdescription.pl: New.

2007-07-01  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     <section id="html5-parse-errors">
15     <h2>HTML5 Parse Errors</h2>
16    
17     <d:item name="after head"
18     class="parse-error">
19     <d:message xml:lang="en">The <code><var>$0</var></code> element cannot be
20     inserted between <code>head</code> and <code>body</code> elements.</d:message>
21     <d:desc xml:lang="en">
22     <p>A start tag occurs after the <code>head</code> element is closed
23     but before the <code>body</code> element is opened.
24     The document is non-conforming.</p>
25     </d:desc>
26     </d:item>
27    
28     <d:item name="duplicate attribute"
29     class="tokenize-error">
30     <d:message xml:lang="en">There are two attributes with same name.</d:message>
31     <d:desc xml:lang="en">
32     <p>Attributes must be unique in an element. Specifying
33     attributes with same name more than once is non-conforming.</p>
34    
35     <p>The <code>motion</code> attribute is not part of the HTML standard.
36     Use <code>img</code> element with animation GIF instead.</p>
37     </d:desc>
38     </d:item>
39    
40     <d:item name="nestc"
41     class="tokenize-error">
42     <d:message xml:lang="en">Void element syntax (<code>/></code>) cannot be
43     used for this element.</d:message>
44     <d:desc xml:lang="en">
45     <p>The void element syntax <code>/></code> syntax can only be
46     used for <code>base</code>, <code>link</code>, <code>meta</code>,
47     <code>hr</code>, <code>br</code>, <code>img</code>,
48     <code>embed</code>, <code>param</code>, <code>area</code>,
49     <code>col</code>, and <code>input</code> elements.
50     For any other elements, using that syntax is non-conforming.</p>
51    
52     <p>Unlike XML, the void element syntax (<code>/></code>) has
53     no effect in HTML.</p>
54     </d:desc>
55     </d:item>
56    
57     </section>
58    
59     <section id="element-content-model-errors">
60     <h2>Element Content Model Errors</h2>
61    
62     <d:item name="character not allowed"
63     class="content-model-error">
64     <d:message xml:lang="en">Data character is not allowed in this
65     context.</d:message>
66     <d:desc xml:lang="en">
67     <p>A data character occurs where it is not allowed in this
68     context. The document is non-conforming.</p>
69    
70     <p>Possible causes:
71     <dl>
72     <dt>If the erred element is an inline-level element (such
73     as <code>a</code> or <code>span</code>)</dt>
74     <dd><p>A data character cannot be a child
75     of certain sectioning elements such as <code>body</code>,
76     <code>section</code>, and <code>blockquote</code>.</p>
77    
78     <p>Any inline-level content must be put
79     in e.g. paragraph element such as <code>p</code>.</p></dd>
80     <dt>If the erred element is a block-level element (such as
81     <code>div</code> or <code>h<var>n</var></code>)</dt>
82     <dd><p>Though some elements such as <code>div</code>,
83     <code>li</code>, and <