diff options
author | ot <ot@localhost> | 2007-06-26 09:03:10 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-06-26 09:03:10 +0000 |
commit | 31fb60499565202332ad15b814c4c4dc28ae69e6 (patch) | |
tree | df0b62cc6bbf9612c2d5fc521ecf8cf15e12db47 /htdocs/dev/tests | |
parent | d61ca5b4f65238379ab2151896ed25f9f1fa5cb0 (diff) | |
download | markup-validator-31fb60499565202332ad15b814c4c4dc28ae69e6.zip markup-validator-31fb60499565202332ad15b814c4c4dc28ae69e6.tar.gz markup-validator-31fb60499565202332ad15b814c4c4dc28ae69e6.tar.bz2 |
adding a number of test cases for documents without doctype. sgml or xml, well-formed or not
Diffstat (limited to 'htdocs/dev/tests')
-rwxr-xr-x | htdocs/dev/tests/index.html | 54 | ||||
-rw-r--r-- | htdocs/dev/tests/sgml-nodoctype-syntaxnotok.html | 2 |
2 files changed, 44 insertions, 12 deletions
diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index 334369e..11b6fc5 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.78 2007-05-31 02:32:14 ot Exp $" ---><!--#set var="date" value="\$Date: 2007-05-31 02:32:14 $" +<!--#set var="revision" value="\$Id: index.html,v 1.79 2007-06-26 09:03:09 ot Exp $" +--><!--#set var="date" value="\$Date: 2007-06-26 09:03:09 $" --><!--#set var="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -21,6 +21,7 @@ <li><a href="#invalid">Invalid documents</a> <ul> <li><a href="#invalid_misc">Miscellaneous invalid docs</a></li> + <li><a href="#invalid_nodoctype">Missing Doctype</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> @@ -299,12 +300,6 @@ All these documents should validate, without "pretty print" for the document typ <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>: @@ -372,6 +367,7 @@ All these documents should validate, without "pretty print" for the document typ <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> @@ -383,7 +379,33 @@ All these documents should validate, without "pretty print" for the document typ <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="invalid_nodoctype">Missing Doctype</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/xml-nodoctype-notwf.xml;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-notwf.xml;ss">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-notwf.xml">view</a>: + XML, no DOCTYPE, not well-formed (marked as invalid - FIXME) + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxok.html;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxok.html;ss">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxok.html">view</a>: + SGML-ish document without html root. Served as text/html. No DOCTYPE. Correct SGML syntax. Would pass as well-formed XML if it were XML... + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxnotok.html;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxnotok.html;ss">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxnotok.html">view</a>: + SGML-ish document without html root. Served as text/html. No DOCTYPE. Bogus SGML syntax. + </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> @@ -407,22 +429,30 @@ All these documents should validate, without "pretty print" for the document typ <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://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-wf.xml">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-wf.xml">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-wf.xml">view</a>: + Basic XML document, well formed. No doctype. Currently checked only for xmlwf. Passes. + </li> + <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 + ("Build/Tag number OpenOffice605"), many namespaces. Currently checked only for xmlwf. Passes. </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. + Very minimal SVG document, no document type. Currently checked only for xmlwf. Passes. </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. + XHTML document without doctype, served as XML. Fallback to XHTML 1.0, and invalid. </li> </ul> diff --git a/htdocs/dev/tests/sgml-nodoctype-syntaxnotok.html b/htdocs/dev/tests/sgml-nodoctype-syntaxnotok.html new file mode 100644 index 0000000..6ffe57e --- /dev/null +++ b/htdocs/dev/tests/sgml-nodoctype-syntaxnotok.html @@ -0,0 +1,2 @@ +<foo> +<a href="12" trget=2>hello</>>& &&a>
\ No newline at end of file |