diff options
author | ot <ot@localhost> | 2008-05-05 01:52:14 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2008-05-05 01:52:14 +0000 |
commit | 1ef2f17e8e8ac9f16b3152ad70dd5a6b163f07c0 (patch) | |
tree | 68387e3c3d4a2344e5d478e9cd3bb06724ab604c | |
parent | 65d0fdfa9691f2385a33bd3dd98563595454fa3e (diff) | |
download | markup-validator-1ef2f17e8e8ac9f16b3152ad70dd5a6b163f07c0.zip markup-validator-1ef2f17e8e8ac9f16b3152ad70dd5a6b163f07c0.tar.gz markup-validator-1ef2f17e8e8ac9f16b3152ad70dd5a6b163f07c0.tar.bz2 |
adding a couple of test cases of XHTML documents (could be identified by the namespace)
without doctype. One is served as text/html, another with application/xhtml+xml
How the validator should handle these is not very well defined (?)
-rwxr-xr-x | htdocs/dev/tests/index.html | 16 | ||||
-rwxr-xr-x | htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.html | 10 | ||||
-rwxr-xr-x | htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.xhtml | 11 | ||||
-rw-r--r-- | misc/testsuite/catalog.xml | 12 |
4 files changed, 47 insertions, 2 deletions
diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index 831c26e..1358eb2 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.104 2008-02-12 06:59:53 ot Exp $" ---><!--#set var="date" value="\$Date: 2008-02-12 06:59:53 $" +<!--#set var="revision" value="\$Id: index.html,v 1.105 2008-05-05 01:52:13 ot Exp $" +--><!--#set var="date" value="\$Date: 2008-05-05 01:52:13 $" --><!--#set var="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -566,6 +566,18 @@ All these documents should validate, without "pretty print" for the document typ XHTML, no DOCTYPE, no xmlns (thus invalid) </li> <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-has-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-has-xmlns.html;ss">with v.w.o</a> - + <a href="xhtml1-missing-doctype-has-xmlns.html">view</a>: + XHTML, no DOCTYPE, has xmlns (served as text/html) + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-has-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-has-xmlns.xhtml;ss">with v.w.o</a> - + <a href="xhtml1-missing-doctype-has-xmlns.xhtml">view</a>: + XHTML, no DOCTYPE, has xmlns (served as application/xhtml+xml) + </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="xml-nodoctype-notwf.xml">view</a>: diff --git a/htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.html b/htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.html new file mode 100755 index 0000000..f6754b2 --- /dev/null +++ b/htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.html @@ -0,0 +1,10 @@ +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>xhtml1-missing-doctype-and-xmlns.html</title> + </head> + <body> + <p>This is a simple XHTML doc without a doctype, but has + an xmlns attribute on its root element. + </p> + </body> +</html> diff --git a/htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.xhtml b/htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.xhtml new file mode 100755 index 0000000..ebfbc1e --- /dev/null +++ b/htdocs/dev/tests/xhtml1-missing-doctype-has-xmlns.xhtml @@ -0,0 +1,11 @@ +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>xhtml1-missing-doctype-and-xmlns.html</title> + </head> + <body> + <p>This is a simple XHTML doc without a doctype, but has + an xmlns attribute on its root element. It is served as application/xhtml+xml. + </p> +<img /> + </body> +</html> diff --git a/misc/testsuite/catalog.xml b/misc/testsuite/catalog.xml index 30ae02b..f49c9ec 100644 --- a/misc/testsuite/catalog.xml +++ b/misc/testsuite/catalog.xml @@ -748,6 +748,18 @@ <Validity>Fail</Validity> </expect> </test> + <test> + <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-has-xmlns.html</uri> + <html:p>XHTML, no DOCTYPE, has xmlns (served as application/xhtml+xml)</html:p> + <expect> + </expect> + </test> + <test> + <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-has-xmlns.xhtml</uri> + <html:p>XHTML, no DOCTYPE, has xmlns (served as application/xhtml+xml)</html:p> + <expect> + </expect> + </test> <test> <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-notwf.xml</uri> |