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 |
wakaba |
1.3 |
<div class="section parse-error" id="after-html"><h3>Tag <code><<var>$0</var>></code> |
15 |
|
|
is not allowed after the end tag <code></html></code>.</h3> |
16 |
|
|
<p>The start or end tag of an element appears after the |
17 |
|
|
<code>html</code> element has been closed. The document is |
18 |
|
|
non-conforming.</p> |
19 |
|
|
|
20 |
|
|
<p>Any content of the document other than comments |
21 |
|
|
must be put into the <code>html</code> element.</p> |
22 |
|
|
</div> |
23 |
|
|
|
24 |
|
|
<div class="section tokenize-error" id="bare-ero"><h3>The <code>&</code> character must |
25 |
|
|
introduce a reference.</h3> |
26 |
|
|
<p>An <code>&</code> (<code>U+0026</code> |
27 |
|
|
<code class="charname">AMPERSAND</code>) character which |
28 |
|
|
is not part of any reference appears in the input stream. |
29 |
|
|
The document is non-conforming.</p> |
30 |
|
|
|
31 |
|
|
<p>The <code>&</code> character must |
32 |
|
|
be the first character of a reference: |
33 |
|
|
<dl> |
34 |
|
|
<dt>Named entity reference</dt> |
35 |
|
|
<dd><pre class="html example"> |
36 |
|
|
<code>&<var>entity-name</var>;</code></pre> |
37 |
|
|
where <var>entity-name</var> is the name of the |
38 |
|
|
character entity to be referenced.</dd> |
39 |
|
|
<dt>Numeric character reference</dt> |
40 |
|
|
<dd><pre class="html example"> |
41 |
|
|
<code>&#<var>d</var>;</code></pre> |
42 |
|
|
where <var>d</var> is the decimal representation of |
43 |
|
|
the code position of the character to be referenced.</dd> |
44 |
|
|
<dt>Hexadecimal character reference</dt> |
45 |
|
|
<dd><pre class="html example"> |
46 |
|
|
<code>&#x<var>h</var>;</code></pre> |
47 |
|
|
where <var>h</var> is the hexadecimal representation |
48 |
|
|
of the code position of the character to be referenced.</dd> |
49 |
|
|
</dl> |
50 |
|
|
</p> |
51 |
|
|
|
52 |
|
|
<p>To represent <code>&</code> as a data character, use |
53 |
|
|
named entity reference: |
54 |
|
|
<pre class="html example"> |
55 |
|
|
<code>&amp;</code></pre> |
56 |
|
|
</p> |
57 |
|
|
</div> |
58 |
|
|
|
59 |
wakaba |
1.4 |
<div class="section tokenize-error" id="bare-stago"><h3>A <code><</code> character is not followed |
60 |
|
|
by tag name or by a <code>!</code> character.</h3> |
61 |
|
|
<p>A <code><</code> (<code>U+003C</code> <code class="charname">LESS-THAN |
62 |
|
|
SIGN</code>) character which is not part of any markup appears |
63 |
|
|
in the input stream.</p> |
64 |
|
|
|
65 |
|
|
<p>The <code><</code> character as a data character must |
66 |
|
|
be escaped as: |
67 |
|
|
<pre class="html example"> |
68 |
|
|
<code><lt;</code></pre> |
69 |
|
|
</p> |
70 |
|
|
</div> |
71 |
|
|
|
72 |
wakaba |
1.3 |
<div class="section tokenize-error" id="bare-nero"><h3>The decimal representation of the code position |
73 |
|
|
of a character must be specified after <code>&#</code>.</h3> |
74 |
|
|
<p>An <code>&</code> (<code>U+0026</code> |
75 |
|
|
<code class="charname">AMPERSAND</code>) character immediately |
76 |
|
|
followed by a <code>#</code> (<code>U+0023</code> |
77 |
|
|
<code>NUMBER SIGN</code>) character which |
78 |
|
|
is not part of any reference appears in the input stream. |
79 |
|
|
The document is non-conforming.</p> |
80 |
|
|
|
81 |
|
|
<p>The string <code>&#</code> must be the first two characters |
82 |
|
|
<code>NUMBER SIGN</code>) character must be the first two characters |
83 |
|
|
of a reference: |
84 |
|
|
<dl> |
85 |
|
|
<dt>Numeric character reference</dt> |
86 |
|
|
<dd><pre class="html example"> |
87 |
|
|
<code>&#<var>d</var>;</code></pre> |
88 |
|
|
where <var>d</var> is the decimal representation of |
89 |
|
|
the code point of the character to be referenced.</dd> |
90 |
|
|
<dt>Hexadecimal character reference</dt> |
91 |
|
|
<dd><pre class="html example"> |
92 |
|
|
<code>&#x<var>h</var>;</code></pre> |
93 |
|
|
where <var>h</var> is the hexadecimal representation |
94 |
|
|
of the code point of the character to be referenced.</dd> |
95 |
|
|
</dl> |
96 |
|
|
</p> |
97 |
|
|
|
98 |
|
|
<p>To represent <code>&#</code> as data characters, use |
99 |
|
|
named entity reference: |
100 |
|
|
<pre class="html example"> |
101 |
|
|
<code>&amp;#</code></pre> |
102 |
|
|
</p> |
103 |
|
|
</div> |
104 |
|
|
|
105 |
|
|
<div class="section tokenize-error" id="bare-hcro"><h3>The hexadecimal representation of the code position |
106 |
|
|
of a character must be specified after <code>&#x</code>.</h3> |
107 |
|
|
<p>The string <code>&#x</code> or <code>&#X</code> which |
108 |
|
|
is not part of any reference appears in the input stream. |
109 |
|
|
The document is non-conforming.</p> |
110 |
|
|
|
111 |
|
|
<p>The string <code>&#x</code> or <code>&#X</code> must |
112 |
|
|
be the first three characters of a hexadecimal reference: |
113 |
|
|
<pre class="html example"> |
114 |
|
|
<code>&#x<var>h</var>;</code></pre> |
115 |
|
|
where <var>h</var> is the hexadecimal representation |
116 |
|
|
of the code point of the character to be referenced.</p> |
117 |
|
|
|
118 |
|
|
<p>To represent <code>&#x</code> as data characters, use |
119 |
|
|
named entity reference: |
120 |
|
|
<pre class="html example"> |
121 |
|
|
<code>&amp;#x</code></pre> |
122 |
|
|
</p> |
123 |
|
|
</div> |
124 |
|
|
|
125 |
wakaba |
1.4 |
<div class="section tokenize-error" id="dash-in-comment"><h3>There is a <code>--</code> sequence |
126 |
|
|
in a comment.</h3> |
127 |
|
|
<p>There is a <code>-</code> (<code>U+002D</code> |
128 |
|
|
<code class="charname">HYPHEN-MINUS</code>) character |
129 |
|
|
at the end of the comment or a <code>--</code> sequence |
130 |
|
|
in the comment. The document is non-conforming.</p> |
131 |
|
|
|
132 |
|
|
<p>Comments cannot contain a string <code>--</code>, as in XML. |
133 |
|
|
Unlike SGML, there cannot be more than one comments |
134 |
|
|
(where <i>comment</i> is an SGML term) in the comment |
135 |
|
|
declaration.</p> |
136 |
|
|
</div> |
137 |
|
|
|
138 |
wakaba |
1.1 |
<div class="section tokenize-error" id="duplicate-attribute"><h3>There are two attributes with same name.</h3> |
139 |
wakaba |
1.3 |
<p>There are more than one attributes with the same |
140 |
|
|
name in a tag. The document is non-conforming.</p> |
141 |
wakaba |
1.1 |
|
142 |
|
|
<p>The <code>motion</code> attribute is not part of the HTML standard. |
143 |
|
|
Use <code>img</code> element with animation GIF instead.</p> |
144 |
|
|
</div> |
145 |
|
|
|
146 |
|
|
<div class="section tokenize-error" id="nestc"><h3>Void element syntax (<code>/></code>) cannot be |
147 |
|
|
used for this element.</h3> |
148 |
wakaba |
1.3 |
<p>Void element syntax (<code>/></code>) must not be used |
149 |
|
|
for the element. The document is non-conforming.</p> |
150 |
|
|
|
151 |
|
|
<p>The void element syntax can only be |
152 |
wakaba |
1.1 |
used for <code>base</code>, <code>link</code>, <code>meta</code>, |
153 |
|
|
<code>hr</code>, <code>br</code>, <code>img</code>, |
154 |
|
|
<code>embed</code>, <code>param</code>, <code>area</code>, |
155 |
wakaba |
1.3 |
<code>col</code>, and <code>input</code> elements.</p> |
156 |
wakaba |
1.1 |
|
157 |
wakaba |
1.3 |
<p>Note that, unlike in XML, the void element syntax has |
158 |
wakaba |
1.1 |
no effect in HTML.</p> |
159 |
|
|
</div> |
160 |
|
|
|
161 |
|
|
</section> |
162 |
|
|
|
163 |
wakaba |
1.2 |
<section id="html5-parse-errors"> |
164 |
|
|
<h2>HTML5 Parse Errors in Tree Construction Stage</h2> |
165 |
|
|
|
166 |
|
|
<div class="section parse-error" id="after-head"><h3>The <code><var>$0</var></code> element cannot be |
167 |
|
|
inserted between <code>head</code> and <code>body</code> elements.</h3> |
168 |
wakaba |
1.3 |
<p>A start tag appears after the <code>head</code> element is closed |
169 |
wakaba |
1.2 |
but before the <code>body</code> element is opened. |
170 |
|
|
The document is non-conforming.</p> |
171 |
|
|
</div> |
172 |
|
|
|
173 |
wakaba |
1.4 |
<div class="section parse-error" id="DOCTYPE-in-the-middle"><h3>A <code>DOCTYPE</code> appears after any |
174 |
|
|
element or data character has been seen.</h3> |
175 |
|
|
<p>A <code>DOCTYPE</code> appears after any element or data character |
176 |
|
|
has been seen. The document is non-conforming.</p> |
177 |
|
|
|
178 |
|
|
<p>The <code>DOCTYPE</code> must be placed before any |
179 |
|
|
tag, reference, or data character. Only white space characters |
180 |
|
|
and comments can be inserted before the <code>DOCTYPE</code>.</p> |
181 |
|
|
</div> |
182 |
|
|
|
183 |
|
|
<div class="section parse-error" id="in-body"><h3>Tag <code><<var>$0</var>></code> |
184 |
|
|
is not allowed in <code>body</code>.</h3> |
185 |
|
|
<p>The start or end tag of an element, which |
186 |
|
|
cannot be a descendant of <code>body</code> element, appears |
187 |
|
|
in the input stream while the <code>body</code> element has been opened. |
188 |
|
|
The document is non-conforming.</p> |
189 |
|
|
</div> |
190 |
|
|
|
191 |
wakaba |
1.3 |
<div class="section parse-error" id="in-table"><h3>Tag <code><<var>$0</var>></code> |
192 |
|
|
is not allowed in <code>table</code>.</h3> |
193 |
wakaba |
1.4 |
<p>The start or end tag of an element, which |
194 |
|
|
cannot be a child of <code>table</code> element, appears |
195 |
|
|
in the input stream while the <code>table</code> element has been opened |
196 |
|
|
but no other element has been opened. The document is non-conforming.</p> |
197 |
wakaba |
1.3 |
|
198 |
|
|
<p>In <code>table</code>, only table related elements |
199 |
|
|
are allowed; any other element must be contained in |
200 |
|
|
<code>td</code> or <code>th</code> element to form |
201 |
|
|
a part of the table, or <code>caption</code> element to create |
202 |
|
|
a table caption.</p> |
203 |
|
|
</div> |
204 |
|
|
|
205 |
|
|
<div class="section parse-error" id="in-table:#character"><h3>Data character is not allowed in |
206 |
|
|
<code>table</code>.</h3> |
207 |
|
|
<p>A data character appears in <code>table</code>. The document |
208 |
|
|
is non-conforming.</p> |
209 |
|
|
|
210 |
|
|
<p>In <code>table</code>, only table related elements |
211 |
|
|
are allowed; any other element and data character must be contained in |
212 |
|
|
<code>td</code> or <code>th</code> element to form |
213 |
|
|
a part of the table, or <code>caption</code> element to create |
214 |
|
|
a table caption.</p> |
215 |
|
|
</div> |
216 |
|
|
|
217 |
|
|
<div class="section parse-error" id="missing-start-tag:tr"><h3>Start tag of <code>tr</code> |
218 |
|
|
element is missing.</h3> |
219 |
|
|
<p>Start tag of a <code>tr</code> element, which is <em>not</em> |
220 |
|
|
optional, is missing. The document is non-conforming.</p> |
221 |
|
|
|
222 |
|
|
<p>In a table section, a <code><tr></code> start tag |
223 |
|
|
must occur before any <code><td></code> or |
224 |
|
|
<code><th></code> start tag. Though the HTML5 parser |
225 |
|
|
implies the <code><tr></code> start tag before |
226 |
|
|
these start tags, it must be explicitly specified.</p> |
227 |
|
|
</div> |
228 |
|
|
|
229 |
wakaba |
1.2 |
<div class="section parse-error" id="no-DOCTYPE"><h3>This document does not start with the |
230 |
wakaba |
1.3 |
<code>DOCTYPE</code>.</h3> |
231 |
|
|
<p>The document does not start with a <code>DOCTYPE</code>. |
232 |
|
|
The document is non-conforming.</p> |
233 |
|
|
|
234 |
|
|
<p>An HTML document must start by a <code>DOCTYPE</code>: |
235 |
|
|
<pre class="html example"> |
236 |
|
|
<code><!DOCTYPE HTML></code></pre> |
237 |
|
|
</p> |
238 |
|
|
|
239 |
|
|
<p>Only white space characters and comments are allowed |
240 |
|
|
before the <code>DOCTYPE</code>.</p> |
241 |
|
|
</div> |
242 |
wakaba |
1.2 |
|
243 |
|
|
<div class="section parse-error" id="not-closed"><h3>Element <code><var>$0</var></code> is not |
244 |
wakaba |
1.3 |
closed.</h3> |
245 |
|
|
<p>End tag of an element is not found before, for example, |
246 |
|
|
an end tag of another element appears or |
247 |
|
|
the end of the document. The document is non-conforming.</p> |
248 |
|
|
</div> |
249 |
wakaba |
1.2 |
|
250 |
|
|
<div class="section parse-error" id="not-HTML5"><h3>This document is written in an old version of |
251 |
wakaba |
1.3 |
HTML.</h3> |
252 |
|
|
<p>The document contains a <code>DOCTYPE</code> declaration |
253 |
|
|
that is different from HTML5 <code>DOCTYPE</code> (i.e. <code><!DOCTYPE |
254 |
|
|
HTML></code>). The document is non-conforming.</p> |
255 |
|
|
|
256 |
|
|
<p>The document might or might not be conformant to |
257 |
|
|
some version of HTML. However, conformance to any HTML |
258 |
|
|
specification other than HTML5 provides for no practical |
259 |
|
|
convenience, since Web borwsers will parse any |
260 |
|
|
HTML document (roughly) as defined in HTML5.</p> |
261 |
|
|
</div> |
262 |
wakaba |
1.2 |
|
263 |
|
|
<div class="section parse-error" id="unmatched-end-tag"><h3>Element <code><var>$0</var></code> is not |
264 |
wakaba |
1.4 |
opened.</h3> |
265 |
|
|
<p>An end tag appears though no element with the same name |
266 |
|
|
has been opened. The document is non-conforming.</p> |
267 |
|
|
|
268 |
|
|
<p>For any end tag in HTML document, there must be a |
269 |
|
|
corresponding start tag.</p> |
270 |
|
|
</div> |
271 |
wakaba |
1.2 |
|
272 |
|
|
</section> |
273 |
|
|
|
274 |
wakaba |
1.1 |
<section id="element-content-model-errors"> |
275 |
|
|
<h2>Element Content Model Errors</h2> |
276 |
|
|
|
277 |
|
|
<div class="section content-model-error" id="character-not-allowed"><h3>Data character is not allowed in this |
278 |
|
|
context.</h3> |
279 |
wakaba |
1.3 |
<p>A data character appears where it is not allowed in this |
280 |
wakaba |
1.1 |
context. The document is non-conforming.</p> |
281 |
|
|
|
282 |
|
|
<p>Possible causes: |
283 |
|
|
<dl> |
284 |
|
|
<dt>If the erred element is an inline-level element (such |
285 |
|
|
as <code>a</code> or <code>span</code>)</dt> |
286 |
|
|
<dd><p>A data character cannot be a child |
287 |
|
|
of certain sectioning elements such as <code>body</code>, |
288 |
|
|
<code>section</code>, and <code>blockquote</code>.</p> |
289 |
|
|
|
290 |
|
|
<p>Any inline-level content must be put |
291 |
|
|
in e.g. paragraph element such as <code>p</code>.</p></dd> |
292 |
|
|
<dt>If the erred element is a block-level element (such as |
293 |
|
|
<code>div</code> or <code>h<var>n</var></code>)</dt> |
294 |
|
|
<dd><p>Though some elements such as <code>div</code>, |
295 |
|
|
<code>li</code>, and <code>td</code> allow |
296 |
|
|
<em>either one</em> of block-level or inline-level content |
297 |
|
|
is allowed. If there is a block-level content, |
298 |
|
|
any inline-level content must be put |
299 |
|
|
in e.g. paragraph element such as <code>p</code>.</p></dd> |
300 |
|
|
</dl> |
301 |
|
|
</p> |
302 |
|
|
</div> |
303 |
|
|
|
304 |
|
|
<div class="section content-model-error" id="child-element-missing"><h3>There must be a <code><var>$0</var></code> |
305 |
|
|
element as a child of this element.</h3> |
306 |
|
|
<p>The content model of the element is so defined that it |
307 |
|
|
must contain a <code><var>$0</var></code> child element. |
308 |
wakaba |
1.3 |
The document is non-conforming.</p> |
309 |
wakaba |
1.1 |
|
310 |
|
|
<p>For example: |
311 |
|
|
<ul> |
312 |
|
|
<li>The <code>head</code> element must contain exactly one |
313 |
|
|
<code>title</code> child element.</li> |
314 |
|
|
<li><a href="#child-element-missing:td%7Cth">The <code>tr</code> |
315 |
|
|
element must contain one or more <code>td</code> or <code>th</code> |
316 |
|
|
child element.</a></li> |
317 |
|
|
</ul> |
318 |
|
|
</p> |
319 |
|
|
</div> |
320 |
|
|
|
321 |
|
|
<div class="section content-model-error" id="child-element-missing:td|th"><h3>There must be a <code>td</code> |
322 |
|
|
or <code>th</code> element as a child of this element.</h3> |
323 |
|
|
<p>The <code>tr</code> element must contain at least one |
324 |
wakaba |
1.3 |
<code>td</code> or <code>th</code> child element. The document |
325 |
|
|
is non-conforming.</p> |
326 |
wakaba |
1.1 |
</div> |
327 |
|
|
|
328 |
|
|
<div class="section content-model-error" id="element-not-allowed"><h3>This element is not allowed in this |
329 |
|
|
context.</h3> |
330 |
wakaba |
1.3 |
<p>An element appears where it is not allowed. The document |
331 |
wakaba |
1.1 |
is non-conforming.</p> |
332 |
|
|
|
333 |
wakaba |
1.3 |
<p><strong>Note</strong>: The conformance checker does |
334 |
|
|
<em>not</em> support form elements yet.</p> |
335 |
|
|
|
336 |
wakaba |
1.1 |
<p>Possible causes: |
337 |
|
|
<dl> |
338 |
|
|
<dt>If the erred element is an inline-level element (such |
339 |
|
|
as <code>a</code> or <code>span</code>)</dt> |
340 |
|
|
<dd><p>An inline-level element cannot be a child |
341 |
|
|
of certain sectioning elements such as <code>body</code>, |
342 |
|
|
<code>section</code>, and <code>blockquote</code>.</p> |
343 |
|
|
|
344 |
|
|
<p>Any inline-level content must be put |
345 |
|
|
in e.g. paragraph element such as <code>p</code>.</p></dd> |
346 |
|
|
<dt>If the erred element is a block-level element (such as |
347 |
|
|
<code>div</code> or <code>h<var>n</var></code>)</dt> |
348 |
|
|
<dd><p>Though some elements such as <code>div</code>, |
349 |
|
|
<code>li</code>, and <code>td</code> allow |
350 |
|
|
<em>either one</em> of block-level or inline-level content |
351 |
|
|
is allowed. If there is a block-level content, |
352 |
|
|
any inline-level content must be put |
353 |
|
|
in e.g. paragraph element such as <code>p</code>.</p></dd> |
354 |
|
|
<dt>If the erred element is the root <code>html</code> element</dt> |
355 |
|
|
<dd><p>In an XHTML document, the root <code>html</code> |
356 |
|
|
element must have an <code>xmlns</code> attribute |
357 |
|
|
whose value is set to |
358 |
|
|
<code>http://www.w3.org/1999/xhtml</code>.</p></dd> |
359 |
|
|
</dl> |
360 |
|
|
</p> |
361 |
|
|
</div> |
362 |
|
|
|
363 |
wakaba |
1.2 |
</section> |
364 |
|
|
|
365 |
wakaba |
1.3 |
<section id="attribute-errors"> |
366 |
|
|
<h2>Attribute Errors</h2> |
367 |
|
|
|
368 |
|
|
<div class="section attribute-error" id="attribute-missing"><h3>Required attribute <code><var>$0</var></code> |
369 |
|
|
is not specified.</h3> |
370 |
|
|
<p>A required attribute is not specified. The document |
371 |
|
|
is non-conforming.</p> |
372 |
|
|
|
373 |
|
|
<p>Some attribute is defined as <i>required</i>. |
374 |
|
|
For example, any <code>img</code> element must have |
375 |
|
|
<code>alt</code> and <code>src</code> attributes specified. |
376 |
|
|
Without required attributes specified, user agents |
377 |
|
|
cannot provide the full functionality of the element |
378 |
|
|
to the user.</p> |
379 |
|
|
</div> |
380 |
|
|
|
381 |
|
|
<div class="section attribute-error" id="in-HTML:xml:lang"><h3>The <code>xml:lang</code> attribute is not |
382 |
|
|
allowed in HTML document.</h3> |
383 |
|
|
<p>The <code>xml:lang</code> attribute is not allowed in |
384 |
|
|
HTML document. The document is non-conforming.</p> |
385 |
|
|
|
386 |
wakaba |
1.4 |
<p>The <code>lang</code> attribute in the <code>null</code> |
387 |
|
|
namespace for HTML elements is defined as conforming <em>only</em> for |
388 |
wakaba |
1.3 |
XML document.</p> |
389 |
|
|
|
390 |
|
|
<p>To specify natural language information in HTML document, |
391 |
|
|
use <code>lang</code> attribute instead.</p> |
392 |
|
|
<!-- @@ ISSUE: xml:lang in non-HTML element in DOM5 HTML created |
393 |
|
|
from an HTML document? --> |
394 |
|
|
</div> |
395 |
|
|
|
396 |
|
|
<div class="section attribute-error" id="in-XML:charset"><h3>The <code>charset</code> attribute is not |
397 |
|
|
allowed in XML document.</h3> |
398 |
|
|
<p>The <code>charset</code> attribute of a |
399 |
|
|
<code>meta</code> element is not allowed in XML document. |
400 |
|
|
The document is non-conforming.</p> |
401 |
|
|
|
402 |
|
|
<p>To specify the character encoding used for serialization, |
403 |
|
|
if necessary, use XML declaration instead: |
404 |
|
|
<pre class="xml example"> |
405 |
|
|
<code><?xml version="1.0" encoding="<var>encoding-name</var>"?></code></pre> |
406 |
|
|
</p> |
407 |
|
|
</div> |
408 |
|
|
|
409 |
|
|
<div class="section attribute-error" id="in-XML:lang"><h3>The <code>lang</code> attribute is not |
410 |
|
|
allowed in XML document.</h3> |
411 |
|
|
<p>The HTML <code>lang</code> attribute is not allowed in |
412 |
|
|
XML document. The document is non-conforming.</p> |
413 |
|
|
|
414 |
|
|
<p>The <code>lang</code> attribute in <code>null</code> |
415 |
wakaba |
1.4 |
namespace for HTML elements is defined as conforming <em>only</em> for |
416 |
wakaba |
1.3 |
HTML document.</p> |
417 |
|
|
|
418 |
|
|
<p>To specify natural language information in XML document, |
419 |
|
|
use <code>xml:lang</code> attribute instead.</p> |
420 |
|
|
</div> |
421 |
|
|
|
422 |
|
|
<div class="section attribute-error" id="in-XML:xmlns"><h3>The <code>xmlns</code> attribute |
423 |
|
|
in the <code>null</code> namespace is not allowed in |
424 |
|
|
XHTML document. The document is non-conforming.</h3> |
425 |
|
|
<p>The <code>xmlns</code> attribute in the <code>null</code> |
426 |
|
|
namespace is not allowed in XHTML document.</p> |
427 |
|
|
|
428 |
|
|
<p>This error should not occur in conformance-checking |
429 |
|
|
static documents.</p> |
430 |
|
|
</div> |
431 |
|
|
|
432 |
|
|
</section> |
433 |
|
|
|
434 |
wakaba |
1.2 |
<section id="attribute-value-errors"> |
435 |
|
|
<h2>Attribute Value Errors</h2> |
436 |
|
|
|
437 |
wakaba |
1.3 |
<div class="section attribute-value-error" id="enumerated:invalid"><h3>This attribute only allow a limited set of |
438 |
wakaba |
1.2 |
values and the specified value is not one of them.</h3></div> |
439 |
|
|
|
440 |
wakaba |
1.3 |
<div class="section attribute-value-error" id="duplicate-ID"><h3>This identifier has already been |
441 |
|
|
assigned to another element.</h3></div> |
442 |
|
|
|
443 |
wakaba |
1.4 |
<div class="section attribute-value-error" id="link-type:bad-context"><h3>The link type <code><var>$0</var></code> |
444 |
|
|
cannot be specified for this element.</h3> |
445 |
|
|
<p>The specified link type cannot be used for the element. |
446 |
|
|
The document is non-conforming.</p> |
447 |
|
|
|
448 |
|
|
<p>Link types are associated with limited set of elements. |
449 |
|
|
They cannot be used with other elements.</p> |
450 |
|
|
|
451 |
|
|
<p>For example, link type <code>bookmark</code> |
452 |
|
|
can be used with <code>a</code> or <code>area</code> element, |
453 |
|
|
while it cannot be used with <code>link</code> element.</p> |
454 |
|
|
</div> |
455 |
|
|
|
456 |
|
|
<div class="section attribute-value-error" id="link-type:non-conforming"><h3>The link type <code><var>$0</var></code> |
457 |
|
|
is non-conforming.</h3> |
458 |
|
|
<p>The specified link type is non-conforming. The entire document |
459 |
|
|
is non-conforming.</p> |
460 |
|
|
|
461 |
|
|
<p>For example, in place of non-conforming link type <code>copyright</code> |
462 |
|
|
you must use link type <code>license</code>.</p> |
463 |
|
|
</div> |
464 |
|
|
|
465 |
wakaba |
1.3 |
<div class="section attribute-value-error" id="reserved-browsing-context-name"><h3>This browsing context name is reserved.</h3></div> |
466 |
|
|
|
467 |
wakaba |
1.2 |
</section> |
468 |
|
|
|
469 |
wakaba |
1.4 |
<section id="attribute-value-warnings"> |
470 |
|
|
<h2>Attribute Value Warnings</h2> |
471 |
|
|
|
472 |
|
|
<div class="section attribute-value-warning should" id="s:link-type:proposed"><h3>Link type <code><var>$0</var></code> |
473 |
|
|
is proposed but not accepted yet; it <em>should not</em> be |
474 |
|
|
used until it has been accepted.</h3> |
475 |
|
|
<p>The link type is in the <i>proposed</i> status; it |
476 |
|
|
<em>should not</em> be used until it has been |
477 |
|
|
accepted.</p> |
478 |
|
|
|
479 |
|
|
<p><strong>Warning</strong>: The data served to the |
480 |
|
|
conforming checker might be out of date; it might have already |
481 |
|
|
been accepted or rejected, depending on which the document |
482 |
|
|
might be conforming or non-conforming. See WHATWG Wiki |
483 |
|
|
for the latest information.</p> |
484 |
|
|
</div> |
485 |
|
|
|
486 |
|
|
</section> |
487 |
|
|
|
488 |
wakaba |
1.2 |
<section id="table-model-errors"> |
489 |
|
|
<h2>Table Model Errors</h2> |
490 |
|
|
|
491 |
wakaba |
1.3 |
<div class="section table-model-error" id="table:colspan-creates-column-with-no-anchored-cell"><h3>This <code>colspan</code> attribute |
492 |
|
|
results in creating a table column that does not contain |
493 |
|
|
any cell anchored to it.</h3></div> |
494 |
|
|
|
495 |
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 |
496 |
|
|
<code>th</code>) in the last row.</h3></div> |
497 |
|
|
|
498 |
|
|
</section> |
499 |
|
|
|
500 |
|
|
<section id="imt-warnings"> |
501 |
|
|
<h2>Internet Media Type Warnings</h2> |
502 |
wakaba |
1.1 |
|
503 |
wakaba |
1.2 |
<div class="section should" id="s:IMT:obsolete-subtype"><h3>An <em>obsolete</em> subtype is used.</h3></div> |
504 |
|
|
|
505 |
|
|
<div class="section should" id="s:IMT:private-subtype"><h3>A private (<code>x-</code> or <code>x.</code>) |
506 |
|
|
subtype is used.</h3></div> |
507 |
|
|
|
508 |
|
|
<div class="section should" id="s:IMT:unregistered-subtype"><h3>The subtype is not registered to IANA.</h3></div> |
509 |
|
|
|
510 |
|
|
</section> |
511 |
|
|
|
512 |
|
|
<section id="uri-errors"> |
513 |
|
|
<h2>URI (or IRI) Errors</h2> |
514 |
|
|
|
515 |
|
|
<div class="section must" id="m:URI::syntax-error"><h3>This string is not an IRI syntactically.</h3></div> |
516 |
|
|
|
517 |
|
|
</section> |
518 |
|
|
|
519 |
wakaba |
1.3 |
<section id="uri-warnings"> |
520 |
|
|
<h2>URI (or IRI) Warnings</h2> |
521 |
|
|
|
522 |
|
|
<div class="section should" id="s:URI::dot-segment"><h3>Dot-segment (<code>.</code> or |
523 |
|
|
<code>..</code>) should not occur in an absolute reference.</h3> |
524 |
|
|
<p>Dot-segment (<code>.</code> or <code>..</code>) should |
525 |
|
|
not occur in an absolute reference.</p> |
526 |
|
|
|
527 |
|
|
<p>In relative references, dot-segments are used to represent |
528 |
|
|
the current (<code>.</code>) or the parent (<code>..</code>) |
529 |
|
|
hierarchy of the path. Though they are also allowed |
530 |
|
|
in absolute references, it should be resolved to the |
531 |
|
|
canonical form before it has been published.</p> |
532 |
|
|
</div> |
533 |
wakaba |
1.2 |
|
534 |
|
|
<div class="section should" id="s:URI::empty-path"><h3>This IRI should explicitly end with |
535 |
|
|
<code>/</code>.</h3></div> |
536 |
wakaba |
1.1 |
|
537 |
wakaba |
1.4 |
<div class="section should" id="s:URI::lowercase-hexadecimal-digit"><h3>Hexadecimal digit in percent-encoding |
538 |
|
|
should be in lowercase.</h3> |
539 |
|
|
<p>Hexadecimal digit in percent-encoding string in the IRI |
540 |
|
|
is in lowercase. Though the IRI <em>is</em> conforming, |
541 |
|
|
it should be in uppercase.</p> |
542 |
|
|
</div> |
543 |
|
|
|
544 |
|
|
<div class="section should" id="s:URI::percent-encoded-unreserved"><h3>An unreserved character is |
545 |
|
|
percent-encoded.</h3> |
546 |
|
|
<p>An unreserved character is percent-encoded in the IRI. |
547 |
|
|
Though it <em>is</em> conforming, it should be in the |
548 |
|
|
decoded (or bare) form.</p> |
549 |
|
|
</div> |
550 |
|
|
|
551 |
wakaba |
1.1 |
</section> |
552 |
|
|
|
553 |
|
|
<section id="unsupported-messages"> |
554 |
|
|
<h2><i>Unsupported</i> Messages</h2> |
555 |
|
|
|
556 |
|
|
<div class="section unsupported" id="unsupported:attribute"><h3>This attribute is not supported by the |
557 |
|
|
conformance checker; <em>it might or might not be conforming</em>.</h3> |
558 |
|
|
<p>The conformant checker does not support the attribute. |
559 |
|
|
It cannot determine whether the document is conforming or not.</p> |
560 |
|
|
</div> |
561 |
|
|
|
562 |
|
|
<div class="section unsupported" id="unsupported:element"><h3>This element is not supported by the |
563 |
|
|
conformance checker; <em>it might or might not be conforming</em>.</h3> |
564 |
|
|
<p>The conformant checker does not support the element. |
565 |
|
|
It cannot determine whether the document is conforming or not.</p> |
566 |
|
|
</div> |
567 |
|
|
|
568 |
wakaba |
1.4 |
<div class="section unsupported" id="unsupported:link-type"><h3>The link type <code><var>$0</var></code> is not |
569 |
|
|
standardized or registered at the time of the release of the conformance |
570 |
|
|
checker; <em>it is non-conforming unless it has now been |
571 |
|
|
registered</em>.</h3> |
572 |
wakaba |
1.1 |
<p>The <code>rel</code> attribute is defined as a list of link types. |
573 |
|
|
Some common link types are defined in the HTML5 specification. |
574 |
|
|
Additional link types can be registered to the WHATWG Wiki. |
575 |
|
|
use of any other link type is non-conforming.</p> |
576 |
|
|
|
577 |
|
|
<p>The specified link type is not part of the standard or registry |
578 |
|
|
when the database used by the conformance cheker is created. |
579 |
|
|
The link type might have been added to the registry since then. |
580 |
|
|
In such case it might be conforming. Otherwise, the |
581 |
|
|
document is non-conforming.</p> |
582 |
|
|
</div> |
583 |
|
|
|
584 |
wakaba |
1.4 |
<div class="section unsupported" id="unsupported:event-handler"><h3>Conformance checking for event handler attribute |
585 |
|
|
is not supported; <em>it might or might not be conforming.</em></h3></div> |
586 |
|
|
|
587 |
|
|
<div class="section unsupported" id="unsupported:language-tag"><h3>Conformance checking for language tag |
588 |
|
|
is not supported; <em>it might or might not be conforming.</em></h3></div> |
589 |
|
|
|
590 |
|
|
<div class="section unsupported" id="unsupported:media-query"><h3>Conformance checking for media query |
591 |
|
|
is not supported; <em>it might or might not be conforming.</em></h3></div> |
592 |
|
|
|
593 |
|
|
<div class="section unsupported" id="unsupported:script"><h3>Conformance checking for script |
594 |
|
|
language <code><var>$0</var></code> is not supported; |
595 |
|
|
<em>it might or might not be conforming.</em></h3></div> |
596 |
|
|
|
597 |
|
|
<div class="section unsupported" id="unsupported:style"><h3>Conformance checking for style |
598 |
|
|
language <code><var>$0</var></code> is not supported; |
599 |
|
|
<em>it might or might not be conforming.</em></h3></div> |
600 |
|
|
|
601 |
wakaba |
1.1 |
</section> |
602 |
|
|
|
603 |
wakaba |
1.3 |
|
604 |
wakaba |
1.2 |
|
605 |
wakaba |
1.1 |
<section id="license"> |
606 |
|
|
<h2>License of This Document</h2> |
607 |
|
|
|
608 |
|
|
<p>Copyright 2007 <a href="http://suika.fam.cx/~wakaba/who?">Wakaba</a></p> |
609 |
|
|
<p>This library is free software; you can redistribute it |
610 |
|
|
and/or modify it under the same terms as Perl itself.</p> |
611 |
|
|
</section> |
612 |
|
|
|
613 |
wakaba |
1.4 |
<!-- $Date: 2007/07/16 10:55:11 $ --> |
614 |
wakaba |
1.1 |
</body> |
615 |
|
|
</html> |