summaryrefslogtreecommitdiffstats
path: root/htdocs/dev/tests
diff options
context:
space:
mode:
authorot <ot@localhost>2005-12-09 01:25:12 +0000
committerot <ot@localhost>2005-12-09 01:25:12 +0000
commit9b5a85e9366eca75682bf64ea76944b1ea9b572a (patch)
treec288f52d94207feea564cac2270d1fdc376801be /htdocs/dev/tests
parent7c241db4d115e7cf97d5dac38f6384c14011e802 (diff)
downloadmarkup-validator-9b5a85e9366eca75682bf64ea76944b1ea9b572a.zip
markup-validator-9b5a85e9366eca75682bf64ea76944b1ea9b572a.tar.gz
markup-validator-9b5a85e9366eca75682bf64ea76944b1ea9b572a.tar.bz2
adding test case for doc served with no character encoding
Diffstat (limited to 'htdocs/dev/tests')
-rw-r--r--htdocs/dev/tests/.htaccess4
-rwxr-xr-xhtdocs/dev/tests/index.html8
-rwxr-xr-xhtdocs/dev/tests/nocharset.html22
3 files changed, 32 insertions, 2 deletions
diff --git a/htdocs/dev/tests/.htaccess b/htdocs/dev/tests/.htaccess
new file mode 100644
index 0000000..778ad29
--- /dev/null
+++ b/htdocs/dev/tests/.htaccess
@@ -0,0 +1,4 @@
+<Files nocharset.html>
+RemoveCharset .html
+# note - this only works in apache 2.0.24 and later
+</Files>
diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html
index 7728833..4ec955f 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.53 2005-06-02 06:06:16 ot Exp $"
---><!--#set var="date" value="\$Date: 2005-06-02 06:06:16 $"
+<!--#set var="revision" value="\$Id: index.html,v 1.54 2005-12-09 01:25:12 ot Exp $"
+--><!--#set var="date" value="\$Date: 2005-12-09 01:25:12 $"
--><!--#set var="title" value="The W3C Markup Validation Service: Tests"
--><!--#set var="relroot" value="../../"
--><!--#include virtual="../../header.html" -->
@@ -201,6 +201,10 @@ All these documents should validate, without "pretty print" for the document typ
<h3 id="encodings">Various Encodings</h3>
<ul>
+ <li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nocharset.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nocharset.html;ss">with v.w.o</a> -
+ <a href="nocharset.html">view</a>:
+ XHTML 1.0 Strict, no charset</li>
<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>,
diff --git a/htdocs/dev/tests/nocharset.html b/htdocs/dev/tests/nocharset.html
new file mode 100755
index 0000000..f1c37e9
--- /dev/null
+++ b/htdocs/dev/tests/nocharset.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<head>
+ <title>test XHTML 1.0 Strict document</title>
+ <meta name="revision"
+ content="$Id: nocharset.html,v 1.1 2005-12-09 01:25:12 ot Exp $" />
+</head>
+<body>
+
+<p>
+This is a test XHTML 1.0 Strict document, served with no character encoding declaration.
+</p>
+
+<p>
+See: <a href="./">W3C HTML Validation Service: Tests</a>
+</p>
+
+</body>
+
+</html>
+