1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
|
<!--#set var="revision" value="\$Id: index.html,v 1.78 2007-05-31 02:32:14 ot Exp $"
--><!--#set var="date" value="\$Date: 2007-05-31 02:32:14 $"
--><!--#set var="title" value="The W3C Markup Validation Service: Tests"
--><!--#set var="relroot" value="../../"
--><!--#include virtual="../../header.html" -->
<div class="doc">
<h2>Markup Validator's test collection</h2>
<h3 id="TableOfContents">Table of contents</h3>
<div id="toc">
<ol>
<li><a href="#valid">Valid Document</a> (all should pass validation)
<ul>
<li><a href="#doctypes">Document types support</a></li>
<li><a href="#valid_notcat">Document types outside the main catalogue</a></li>
<li><a href="#valid_warn">Valid Documents, with Warnings</a></li>
<li><a href="#wrong_mime">Valid Documents served with a wrong media type</a></li>
</ul>
</li>
<li><a href="#invalid">Invalid documents</a>
<ul>
<li><a href="#invalid_misc">Miscellaneous invalid docs</a></li>
<li><a href="#nonconform">DTD-Valid but not conformant</a></li>
<li><a href="#invalid_bug">Documents that are invalid, which the validator passes as OK</a></li>
</ul>
</li>
<li><a href="#well-formed">Docs that should be Well Formed</a></li>
<li><a href="#encodings">Various Encodings</a></li>
<li><a href="#errors">Error conditions & strange cases</a></li>
<li><a href="#ui">User Interface tests</a></li>
<li><a href="#regress">Bugs and Regression Tests</a></li>
</ol>
</div>
<p id="skip">
This page lists a few test documents and test scenarios for the W3C Markup Validator
make sure everything works fine after making changes to
<a href="../../">the validator</a>. If you can think of interesting
test cases that aren't on this page,
<a href="../../feedback.html">let us know</a>.
</p>
<h3 id="valid">Valid Documents</h3>
<h4 id="doctypes">Document types support</h4>
<p>
Below is a list of sample documents for a number of document types the validator is supposed to be supporting.
The first validate link will attempt validation with the current instance, for test purposes. The v.w.o instance
can be taken as reference/comparison.
</p>
<ul>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html20.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html20.html;ss">with v.w.o</a> -
<a href="html20.html">view</a>:
HTML 2.0
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html20-strict.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html20-strict.html;ss">with v.w.o</a> -
<a href="html20-strict.html">view</a>:
HTML 2.0 Strict
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html40-strict.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html40-strict.html;ss">with v.w.o</a> -
<a href="html40-strict.html">view</a>:
HTML 4.0 Strict
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html40-transitional.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html40-transitional.html;ss">with v.w.o</a> -
<a href="html40-transitional.html">view</a>:
HTML 4.0 Transitional
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html40-frameset.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html40-frameset.html;ss">with v.w.o</a> -
<a href="html40-frameset.html">view</a>:
HTML 4.0 Frameset
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.html;ss">with v.w.o</a> -
<a href="html401-strict.html">view</a>:
HTML 4.01 Strict
</li>
<li>
<a href="../../check?uri=http://www.w3.org/TR/1999/PR-html40-19990824/">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/TR/1999/PR-html40-19990824/">with v.w.o</a> -
<a href="http://www.w3.org/TR/1999/PR-html40-19990824/">view</a>:
HTML 4.01 Transitional - (from the HTML 4.01 PR)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2329-html401-transitional_iframe.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2329-html401-transitional_iframe.html;ss">with v.w.o</a> -
<a href="2329-html401-transitional_iframe.html">view</a>:
HTML 4.01 Transitional - with iframe element (test for <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=2329">Bug 2329</a>)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/iso-html.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/iso-html.html;ss">with v.w.o</a> -
<a href="iso-html.html">view</a>:
ISO-HTML (aka ISO/IEC 15445:2000)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict.html;ss">with v.w.o</a> -
<a href="xhtml1-strict.html">view</a>:
XHTML 1.0 Strict
<br />
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-minimal.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-minimal.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-minimal.html">view</a>:
XHTML 1.0 Strict (from XHTML Spec)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic10.xhtml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic10.xhtml;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic10.xhtml">view</a>:
XHTML Basic 1.0
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic11.xhtml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic11.xhtml;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic11.xhtml">view</a>:
XHTML Basic 1.1
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml11-minimal.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml11-minimal.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml11-minimal.html">view</a>:
XHTML 1.1
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-mathml2-fpi.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-mathml2-fpi.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-mathml2-fpi.html">view</a>:
XHTML/MathML2
(with FPI)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.mathml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.mathml;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.mathml">view</a>:
MathML 2.0
(minimal test document)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/application-xhtml_xml.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/application-xhtml_xml.xhtml">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/application-xhtml_xml.xhtml">view</a>:
XHTML 1.1 served as application/xhtml+xml
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil10-minimal.smi">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil10-minimal.smi">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil10-minimal.smi">view</a>:
SMIL 1.0 minimal document
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20.smi">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20.smi">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20.smi">view</a>:
SMIL 2.0
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/SMIL21.smil">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/SMIL21.smil">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/SMIL21.smil">view</a>:
SMIL 2.1
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/SMIL21_Mobile.smil">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/SMIL21_Mobile.smil">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/SMIL21_Mobile.smil">view</a>:
SMIL 2.1 Mobile
</li>
<li>
<a href="../../check?uri=http://www.w3.org/TR/XHTMLplusMathMLplusSVG/sample.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/TR/XHTMLplusMathMLplusSVG/sample.xhtml">with v.w.o</a> -
<a href="http://www.w3.org/TR/XHTMLplusMathMLplusSVG/sample.xhtml">view</a>:
XHTML + MathML + SVG
(from the 9 August 2002 WD)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.xhtml">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.xhtml">view</a>:
XHTML-Print
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.svg">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.svg">with v.w.o</a> -
<a href="REC-SVG-1_0-minimal.svg">view</a>:
SVG 1.0 Rec. minimal document
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/svg11.svg">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/svg11.svg">with v.w.o</a> -
<a href="svg11.svg">view</a>:
SVG 1.1 Rec. minimal document
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/svg_tiny_1_1.svg">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/svg_tiny_1_1.svg">with v.w.o</a> -
<a href="svg_tiny_1_1.svg">view</a>:
SVG Tiny 1.1
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml_rdfa.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml_rdfa.xhtml">with v.w.o</a> -
<a href="xhtml_rdfa.xhtml">view</a>:
XHTML + RDFa
</li>
</ul>
<h4 id="valid_notcat">Document types outside the main catalogue</h4>
<p>Below is a number of other types of documents that the validator does not have in its "hardcoded" catalogue, but should support anyway.
All these documents should validate, without "pretty print" for the document type</p>
<ul>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml_customdtd.html">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml_customdtd.html">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml_customdtd.html">view</a>:
HTML4.0 plus blink ("Custom" SGML DTD)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_fpi.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_fpi.xhtml">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_fpi.xhtml">view</a>:
RDDL (with FPI)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_si.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_si.xhtml">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_si.xhtml">view</a>:
RDDL (no FPI)
</li>
</ul>
<h4 id="valid_warn">Valid Documents, with Warnings</h4>
<ul>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2342-opensp_type_X.html">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2342-opensp_type_X.html">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2342-opensp_type_X.html">view</a>:
Reference to a non-existing ID
(opensp message type X, See <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=2342">bug 2342</a>).
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nonSGML-chars.html">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nonSGML-chars.html">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nonSGML-chars.html">view</a>:
Non-SGML Chars
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/ampersand-as-data_html401.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/ampersand-as-data_html401.html;ss">with v.w.o</a> -
<a href="ampersand-as-data_html401.html">view</a>:
HTML 4.01 Document with Ampersand as data <br />
(OK in SGML, not XML :see <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=798">Bug798: Ampersand as data in XHTML</a>)
</li>
</ul>
<h4 id="wrong_mime">Valid Documents served with a wrong media type</h4>
<ul>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.xhtml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.xhtml;ss">with v.w.o</a> -
<a href="html401-strict.xhtml">view</a>:
HTML 4.01 Strict served with an XHTML mime type
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.html">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.html">with v.w.o</a> -
<a href="REC-SVG-1_0-minimal.html">View</a> SVG 1.0 Rec. minimal document served as text/html</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.html">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.html">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.html">view</a>:
XHTML-Print served as text/html
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html">view</a>:
MathML 2.0 as text/html </li>
</ul>
<h3 id="invalid">Invalid Documents</h3>
<h4 id="invalid_misc">Miscellaneous invalid docs</h4>
<ul>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html">view</a>:
XHTML, no DOCTYPE, no xmlns (thus invalid)
</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-bogus-element.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-bogus-element.html;ss">with v.w.o</a> -
<a href="xhtml1-bogus-element.html">view</a>:
XHTML1, bogus element (foo element not in DTD)</li>
<li><a href="../../check?uri=http://www.w3.org/2001/01/xml-latin1.html;ss;sp;noatt">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/2001/01/xml-latin1.html;ss;sp;noatt">with v.w.o</a> -
<a href="http://www.w3.org/2001/01/xml-latin1.html">view</a>:
us-ascii xhtml document with a latin1 character </li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/error_pls_warning.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/error_pls_warning.html;ss">with v.w.o</a> -
<a href="error_pls_warning.html">view</a>:
Invalid document (img without alt, invalid <a href="http://www.w3.org/TR/html401/struct/objects.html#adef-alt">per</a>).
<br />
Also has non-sgml character (testing for warning output)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/no-newlines.html;ss;sp;noatt">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/no-newlines.html;ss;sp;noatt">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/no-newlines.html">view</a>:
invalid frames document (noframes in forbidden location). Also test for absence of newlines</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2329-html401-strict_iframe.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2329-html401-strict_iframe.html;ss">with v.w.o</a> -
<a href="2329-html401-strict_iframe.html">view</a>:
HTML 4.01 Strict - with iframe element (test for <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=2329">Bug 2329</a>)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-blank-1st-line.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-blank-1st-line.html;ss">with v.w.o</a> -
<a href="xhtml1-blank-1st-line.html">view</a>:
XHTML1, blank first line (<a href="http://lists.w3.org/Archives/Public/www-validator/2000JanMar/0144.html">should be marked as invalid</a>)</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/ampersand-as-data.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/ampersand-as-data.html;ss">with v.w.o</a> -
<a href="ampersand-as-data.html">view</a>:
Bug <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=798">798: Ampersand as data in XHTML</a> (OK in SGML, not XML)
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.xhtml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.xhtml;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.xhtml">view</a>
XHTML with bogus XML Decl, served as application/xhtml+xml (missing final "?")
</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.html">view</a>
XHTML with bogus XML Decl, served as text/html (missing final "?")</a></li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi.html">view</a>
bogus FPI #1: lowercase "doctype".</a>
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20-profile-doctype.smi">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20-profile-doctype.smi">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20-profile-doctype.smi">view</a>:
SMIL 2.0 with bogus xmlns and missing space between attributes
</li>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/errors_sorting.smi">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/errors_sorting.smi">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/errors_sorting.smi">view</a>:
SMIL 2.0 with bogus xmlns, xml ill-formedness and bogus elements (used to test sorting of errors)
</li>
</ul>
<h5>Various often-invalid site</h5>
<p>The following sites/pages are often invalid, but do <strong>not</strong> rely on the results.</p>
<ul>
<li><a href="../../check?uri=http://www.yahoo.com/">Yahoo!</a></li>
<li><a href="../../check?uri=http://www.microsoft.com/">Microsoft</a></li>
<li><a href="../../check?uri=http://www.netscape.com/">Netscape</a></li>
<li><a href="../../check?uri=http://www.w3.org/TR/1998/REC-xml-19980210.xml">XML 1.0</a></li>
</ul>
<h4 id="nonconform">DTD-Valid but not conformant</h4>
<p>For those, we will need to change the message, or hordes of SGML zombies will come down upon us ;)...</p>
<ul>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-missing-xmlns.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-missing-xmlns.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-missing-xmlns.html">view</a>:
XHTML 1.0 Strict missing xmlns attribute (valid)
</li>
</ul>
<h4 id="invalid_bug">Documents that are invalid, which the validator passes as OK</h4>
<p>Wrong diagnosis</p>
<ul>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi2.html;ss">bogus FPI #2: HTML 4.01 "Strict"</a></li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi3.html;ss">bogus FPI #3: XHTML 1.1 "Strict"</a></li>
</ul>
<h3 id="well-formed">Docs that should be Well Formed</h3>
<p>well formed but no doctype. The validator could mark them as well formed, but not mention validity?</p>
<ul>
<li><a href="../../check?uri=http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml;ss">with v.w.o</a> -
<a href="http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml">View</a>:
XML output from OpenOffice 5.2
("Build/Tag number OpenOffice605"), many namespaces
</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg">View</a>:
Very minimal SVG document, no document type.
</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.xhtml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.xhtml;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.xhtml">View</a>:
XHTML document without doctype, served as XML.
</li>
</ul>
<h3 id="encodings">Various Encodings</h3>
<ul>
<li><a href="../../check?uri=http://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html">UTF-8 sample text (correct)</a>,
<a href='http://www.w3.org/2001/06/utf-8-test/'>more positive tests</a></li>
<li><a href="../../check?uri=http://www.w3.org/2001/06/utf-8-wrong/UTF-8-test.html">UTF-8 stress test (wrong cases)</a>,
<a href='http://www.w3.org/2001/06/utf-8-wrong/'>more negative tests</a></li>
<li><a href="../../check?uri=http://www.w3.org/Press/1998/XSL-WD.html.ja">iso-2022-jp encoded document</a></li>
<li><a href="../../check?uri=http://www.vir.si/">windows-1250 encoded document (Slovenian)</a></li>
<li><a href="../../check?uri=http://www.w3.org/TR/ruby/">utf-8 encoded document</a></li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/plane20-char.xml">XML file with a "Plane 20" character (bogus).</a></li>
</ul>
<h3 id="errors">Error conditions & strange cases</h3>
<p>This should be split in UI testing and regression tests</p>
<p>The following documents trip up the parser pretty badly - finds errors way beyond the last line</p>
<ul>
<li>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_fpi.html">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_fpi.html">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/rddl_fpi.html">view</a>:
RDDL (with FPI, served as text/html - example of a custom XML language wrongly served as text/html)
</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/shorttags.html">SHORTTAGS and -wunclosed..</a></li>
<li><a href="../../check?uri=http://www.w3.org/1999/09/SVG-access/computer.svg">image/svg</a> (is this a bug? I think this media type is not allowed any more)</li>
<li><a href="../../check?uri=http://www.oasis-open.org/committees/xmltest/xmlconf-19990712.xml;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.oasis-open.org/committees/xmltest/xmlconf-19990712.xml;ss">with v.w.o</a> -
<a href="http://www.oasis-open.org/committees/xmltest/xmlconf-19990712.xml">view</a>:
dereference relative URIs for DTDs </li>
</ul>
<h3 id="ui">User Interface tests</h3>
<p>The following tests do not test the binary "validity" results, but the proper handling of options, errors, various outputs, etc.
"validate" links use this instance, with validator.w3.org links added for reference comparison</p>
<ul>
<li><a href="../../check?uri=file%3A///etc/passwd">validate</a> -
<a href="http://validator.w3.org/check?uri=file%3A///etc/passwd">with v.w.o</a> -
a file: URL </li>
<li>
<a href="../../check/referer">validate</a> -
<a href="http://validator.w3.org/check/referer">with v.w.o</a> -
/check/referer (deprecated)
</li>
<li>
<a href="../../check/referer;verbose=1">validate</a> -
<a href="http://validator.w3.org/check/referer;verbose=1">with v.w.o</a> -
/check/referer;verbose=1 (unsupported)
</li>
<li>
<a href="../../check/referer;verbose=1;No200=1">validate</a> -
<a href="http://validator.w3.org/check/referer;verbose=1;No200=1">with v.w.o</a> -
/check/referer;verbose=1;No200=1 (unsupported)
</li>
<li>
<a href="../../check?uri=referer">validate</a> -
<a href="http://validator.w3.org/check?uri=referer">with v.w.o</a> -
/check?uri=referer (supported, should validate this test collection)
</li>
<li>
<a href="../../check?uri=referer;verbose=1">validate</a> -
<a href="http://validator.w3.org/check?uri=referer;verbose=1">with v.w.o</a> -
/check?uri=referer;verbose=1 (supported, should validate this test collection)
</li>
<li>
<a href="../../check?uri=referer&verbose=1">validate</a> -
<a href="http://validator.w3.org/check?uri=refererr&verbose=1">with v.w.o</a> -
/check?uri=refererr&verbose=1 (supported, should validate this test collection)
</li>
<li>
<a href="../../check?uri=referer;verbose=1;No200=1">validate</a> -
<a href="http://validator.w3.org/check?uri=referer;verbose=1;No200=1">with v.w.o</a> -
/check?uri=referer;verbose=1;No200=1 (supported, should validate this test collection)
</li>
<li>
<a href="../../check?uri=http://www.w3.org/MarkUp">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/MarkUp">with v.w.o</a> -
Directory Redirect (should mention the redirect and validate the redirection target
</li>
<li>
<a href="../../check">validate</a> -
<a href="http://validator.w3.org/check">with v.w.o</a> -
script invoked with no parameters (gives an error)
</li>
<li>
<a href="../../check?uri=">validate</a> -
<a href="http://validator.w3.org/check?uri=">with v.w.o</a> -
uri parameter is empty
</li>
<li>
<a href="../../check?uri=www.w3.org/">validate</a> -
<a href="http://validator.w3.org/check?uri=www.w3.org/">with v.w.o</a> -
uri is missing http:// (silent fix)
</li>
<li>
<a href="../../check?uri=http://www.w3.org/bogus">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/bogus">with v.w.o</a> -
404 not found
</li>
<li>
<a href="../../check?uri=http://www.w3.org/bogus;No200=1">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/bogus;no200=1">with v.w.o</a> -
404 not found, with "validate error pages" ON
</li>
<li>
<a href="../../check?uri=http://validator.w3.org/sgml-lib/sgml.soc">validate</a> -
<a href="http://validator.w3.org/check?uri=http://validator.w3.org/sgml-lib/sgml.soc">with v.w.o</a> -
text/plain resource (refuses to validate)
</li>
<li>
<a href="../../check?uri=http://validator.w3.org:8000/">validate</a> -
<a href="http://validator.w3.org/check?uri=http://validator.w3.org:8000/">with v.w.o</a> -
httpd on a non-standard port (should be working transparently if :8000 server is running)
</li>
</ul>
<h3 id="regress">Bugs and Regression Tests</h3>
<p>These should be tied to a bug report on either mailing-list and/or bugzilla whenever possible.</p>
<ul>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml_mathml_svg_newlines.xhtml">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml_mathml_svg_newlines.xhtml">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml_mathml_svg_newlines.xhtml">view</a>:
XHTML+Math+SVG document with non-unix newlines,
(See <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=3992">Bug 3992: non-unix newlines confuse the parser</a>)
</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/long-lines.html">Long Lines</a> (cause a core)</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/trailing-nul.html">A trailing ASCII NUL character</a> (trips up HTML::Parser (not really))</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/colons.html">Undeclared namespace prefixes</a> (colons ":" in element names (trips up parsing of onsgmls output))</li>
</ul>
<div id="suites">
<h2>Other Test Suites</h2>
<ul><li><a href="http://www.nist.gov/xml/">NIST's XML, DOM test suites</a></li></ul>
</div>
<div class="doc">
<!--#include virtual="../../footer.html" -->
|