diff options
author | ot <ot@localhost> | 2006-05-02 04:12:04 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2006-05-02 04:12:04 +0000 |
commit | 63d89aee458c50a39bab9eec7a39e20e5520a4ae (patch) | |
tree | eb830ca0e7eb810238b9d3dd5d2eb370456d0107 | |
parent | 90837d5a3f27ee8ebcdc7f40fbc8d0ae308ef09d (diff) | |
download | markup-validator-63d89aee458c50a39bab9eec7a39e20e5520a4ae.zip markup-validator-63d89aee458c50a39bab9eec7a39e20e5520a4ae.tar.gz markup-validator-63d89aee458c50a39bab9eec7a39e20e5520a4ae.tar.bz2 |
adding new bogus FPI tests, a couple of FPI/SI mismatch tests
-rw-r--r-- | htdocs/dev/tests/bogus-fpi4.html | 20 | ||||
-rw-r--r-- | htdocs/dev/tests/bogus-fpi5.xhtml | 15 | ||||
-rwxr-xr-x | htdocs/dev/tests/fpi_mismatch1.html | 15 | ||||
-rwxr-xr-x | htdocs/dev/tests/fpi_mismatch2.html | 15 | ||||
-rwxr-xr-x | htdocs/dev/tests/index.html | 80 |
5 files changed, 128 insertions, 17 deletions
diff --git a/htdocs/dev/tests/bogus-fpi4.html b/htdocs/dev/tests/bogus-fpi4.html new file mode 100644 index 0000000..0d5e77a --- /dev/null +++ b/htdocs/dev/tests/bogus-fpi4.html @@ -0,0 +1,20 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<HTML> + <HEAD> + <TITLE>W3C Markup Validator test - Bogus FPI 4 - HTML 4.01 "Strict"</TITLE> + </HEAD> + <BODY> + <P>This document uses a <strong>wrong</strong> DOCTYPE public identifier. </P> + <P><strong>incorrect</strong>: </P> +<pre> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +</pre> + <P><strong>correct</strong>: </P> +<pre> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +</pre> + </BODY> +</HTML> diff --git a/htdocs/dev/tests/bogus-fpi5.xhtml b/htdocs/dev/tests/bogus-fpi5.xhtml new file mode 100644 index 0000000..f87de48 --- /dev/null +++ b/htdocs/dev/tests/bogus-fpi5.xhtml @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html> + <head> + <title>test document with a bogus FPI</title> + <meta name="revision" + content="$Id: bogus-fpi5.xhtml,v 1.1 2006-05-02 04:12:04 ot Exp $" + /> + </head> + <body> + <p>This is a test document with a bogus FPI. (but with correct system identifier)</p> + <p>There is no "Strict" in the FPI for XHTML 1.1.</p> + </body> +</html> + diff --git a/htdocs/dev/tests/fpi_mismatch1.html b/htdocs/dev/tests/fpi_mismatch1.html new file mode 100755 index 0000000..3937c7a --- /dev/null +++ b/htdocs/dev/tests/fpi_mismatch1.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html> +<head> + <title>W3C Markup Validator test document - FPI/SI mismatch 1</title> +</head> +<body> + +<p> +This is a test HTML 4.01 Strict document (as declared in its FPI) but with an FPI/SI mismatch (the SI is that of +XHTML 1.0 Strict) +</p> + +</html> + diff --git a/htdocs/dev/tests/fpi_mismatch2.html b/htdocs/dev/tests/fpi_mismatch2.html new file mode 100755 index 0000000..9a318a3 --- /dev/null +++ b/htdocs/dev/tests/fpi_mismatch2.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" +"http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> + <title>W3C Markup Validator test document - FPI/SI mismatch 2</title> +</head> +<body> + +<p> +This is a test HTML 4.01 Strict document (as declared in its FPI) but with an FPI/SI mismatch (the SI is that of +HTML 4.01 Transitional) +</p> + +</html> + diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index eb1d61c..d615388 100755 --- a/htdocs/dev/tests/index.html +++ b/htdocs/dev/tests/index.html @@ -1,5 +1,5 @@ -<!--#set var="revision" value="\$Id: index.html,v 1.57 2006-03-16 01:16:09 ot Exp $" ---><!--#set var="date" value="\$Date: 2006-03-16 01:16:09 $" +<!--#set var="revision" value="\$Id: index.html,v 1.58 2006-05-02 04:12:04 ot Exp $" +--><!--#set var="date" value="\$Date: 2006-05-02 04:12:04 $" --><!--#set var="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -10,6 +10,7 @@ <div id="toc"> <ol> <li><a href="#doctypes">Document types support</a></li> + <li><a href="#doctype_FPI_SI">DOCTYPEs detection, FPIs, SIs</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> @@ -99,7 +100,13 @@ <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 + XHTML 1.1 served as text/html (validates but should send a warning, <a href="http://www.w3.org/TR/xhtml-media-types/#summary">per</a>) + </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/xhtml-mathml2-fpi.html;ss">validate</a> - @@ -115,12 +122,7 @@ 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> - @@ -174,9 +176,57 @@ All these documents should validate, without "pretty print" for the document typ </li> </ul> - - - +<h3 id="doctype_FPI_SI">DOCTYPEs detection, FPIs, SIs</h3> +<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</a> (invalid)</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" + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi2.html;ss">validate</a> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi2.html;ss">with v.w.o</a> + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi2.html">view</a>: + bogus FPI #2: HTML 4.01 "Strict" + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi3.xhtml;ss">validate</a> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi3.xhtml;ss">with v.w.o</a> + <a href="uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi3.xhtml">view</a>: bogus FPI #3: XHTML 1.1 "Strict" + </li> <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi4.html;ss">validate</a> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi4.html;ss">with v.w.o</a> + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi4.html">view</a>: + bogus FPI #4: HTML 4.01 "Strict" (with correct System Identifier) (validates - should send warning) + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi5.xhtml;ss">validate</a> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi5.xhtml;ss">with v.w.o</a> + <a href="uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-fpi5.xhtml">view</a>: bogus FPI #5: XHTML 1.1 "Strict" + (with correct System Identifier) (validates - should send warning about ) + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/fpi_mismatch1.xhtml;ss">validate</a> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/fpi_mismatch1.xhtml;ss">with v.w.o</a> + <a href="uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/fpi_mismatch1.xhtml">view</a>: FPI/SI mismatch 1: HTML 4.01 Strict - XHTML 1.0 Strict + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/fpi_mismatch2.xhtml;ss">validate</a> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/fpi_mismatch2.xhtml;ss">with v.w.o</a> + <a href="uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/fpi_mismatch2.xhtml">view</a>: FPI/SI mismatch 2: HTML 4.01 Strict - HTML 4.01 Transitional + </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> + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.html;ss">bogus XML Decl (missing final "?")</a> + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/bogus-xmlpi.html">view</a>: + bogus XML Decl (missing final "?") + </li> +</ul> <h3 id="invalid">Docs that are probably invalid</h3> @@ -226,11 +276,7 @@ All these documents should validate, without "pretty print" for the document typ <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> |