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
|
<!--#set var="revision" value="\$Id: index.html,v 1.53.2.1 2006/10/18 06:10:56 ot Exp $"
--><!--#set var="date" value="\$Date: 2006/10/18 06:10:56 $"
--><!--#set var="title" value="The W3C Markup Validation Service: Tests"
--><!--#set var="relroot" value="../../"
--><!--#include virtual="../../header.html" -->
<h2>Markup Validator's test collection</h2>
<h3 id="TableOfContents">Table of contents</h3>
<div id="toc">
<ol>
<li><a href="#doctypes">Document types support</a></li>
<li><a href="#invalid">Docs that are probably invalid</a></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="doctypes">Document types support</h3>
<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://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/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.html;ss">validate</a> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic10.html;ss">with v.w.o</a> -
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-basic10.html">view</a>:
XHTML Basic 1.0
</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.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
(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-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
</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>
</ul>
<h4>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>
<h3 id="invalid">Docs that are probably invalid</h3>
<p><strong>we must FIX THIS!</strong> It's not reliable any more...</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>
<h3 id="well-formed">Docs that should be Well Formed</h3>
<ul>
<li><a href="../../check?uri=http://www.w3.org/Protocols/rfc2616/rfc2616.html">XHTML sans DOCTYPE</a> (DanC's HTMLized RFC 2616;well-formed, but not valid!)</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-mathml2.html;ss">XHTML/MathML2</a>
(from the <a href="http://www.w3.org/TR/2000/CR-MathML2-20001113/chapter2.html#N1783">MathML 2.0 spec</a>)</li>
<li><a href="../../check?uri=http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml;ss">XML output from OpenOffice 5.2</a>
("Build/Tag number OpenOffice605"), many namespaces</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>
<ul>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">XHTML, no DOCTYPE, no xmlns</a> (invalid)</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi.html;ss">bogus FPI #1: lowercase "doctype".</a></li>
<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>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.html;ss">bogus XML Decl (missing final "?")</a></li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-blank-1st-line.html;ss">XHTML1, blank first line</a>
(<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/xhtml1-bogus-element.html;ss">XHTML1, bogus element</a></li>
<li><a href="../../check?uri=http://www.w3.org/2001/01/xml-latin1.html;ss;sp;noatt">us-ascii xml document with a latin1 character</a> (should be invalid)</li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/no-newlines.html;ss;sp;noatt">no newlines</a></li>
<li><a href="../../check?uri=file%3A///etc/passwd">a file: URL</a></li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nonSGML-chars.html">Non-SGML Chars.</a></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></li>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.svg">SVG 1.0 Rec. minimal document</a></li>
<li><a href="../../check?uri=http://www.oasis-open.org/committees/xmltest/xmlconf-19990712.xml;ss">xmlconf-19990712.xml</a></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/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/catalog">validate</a> -
<a href="http://validator.w3.org/check?uri=http://validator.w3.org/sgml-lib/catalog">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/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> (also good as a test for warnings in otherwise valid result)
</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>
<h3>Mixed bag</h3>
<p>Don't know where to put these yet</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>
<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>
<!--#include virtual="../../footer.html" -->
</body>
</html>
|