diff options
author | ot <ot@localhost> | 2006-03-16 01:05:06 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2006-03-16 01:05:06 +0000 |
commit | 4f4b64ce8abb043e6d111e9cbdef91c3b157bae5 (patch) | |
tree | 20e892ba5875b080e17d9778861babc1eb42cdda /htdocs/dev/tests | |
parent | e06cef81a3368ea84309189816fc4fcaedf4facb (diff) | |
download | markup-validator-4f4b64ce8abb043e6d111e9cbdef91c3b157bae5.zip markup-validator-4f4b64ce8abb043e6d111e9cbdef91c3b157bae5.tar.gz markup-validator-4f4b64ce8abb043e6d111e9cbdef91c3b157bae5.tar.bz2 |
adding a few test documents triggering WXX global-scope warnings
Diffstat (limited to 'htdocs/dev/tests')
-rw-r--r-- | htdocs/dev/tests/.htaccess | 3 | ||||
-rw-r--r-- | htdocs/dev/tests/html_xmlns.html.utf8 | 15 | ||||
-rwxr-xr-x | htdocs/dev/tests/index.html | 44 | ||||
-rw-r--r-- | htdocs/dev/tests/texthtml_nocharset.html | 15 | ||||
-rw-r--r-- | htdocs/dev/tests/texthtml_nodoctype.html.utf8 | 17 | ||||
-rw-r--r-- | htdocs/dev/tests/texthtml_unknownparsemode.html.utf8 | 31 | ||||
-rw-r--r-- | htdocs/dev/tests/textxml_html401.xml | 15 | ||||
-rw-r--r-- | htdocs/dev/tests/textxml_nocharset.xml | 15 |
8 files changed, 153 insertions, 2 deletions
diff --git a/htdocs/dev/tests/.htaccess b/htdocs/dev/tests/.htaccess index d5a194f..116c41b 100644 --- a/htdocs/dev/tests/.htaccess +++ b/htdocs/dev/tests/.htaccess @@ -6,4 +6,7 @@ RemoveCharset .html RemoveCharset .html # note - this only works in apache 2.0.24 and later </Files> +<Files ~ "textxml_nocharset(\.xml)?"> +ForceType text/xml +</Files> diff --git a/htdocs/dev/tests/html_xmlns.html.utf8 b/htdocs/dev/tests/html_xmlns.html.utf8 new file mode 100644 index 0000000..efb9bbb --- /dev/null +++ b/htdocs/dev/tests/html_xmlns.html.utf8 @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html xmlns="http://www.example.org"> +<head> +<title>test for html resource using namespaces - W10</title> + </head> +<body> +<p>This test document corresponds to validator warning W10: +<code> +</code> +</p> +</body> + +</html> + diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index 1f284af..6a358bd 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.55 2005-12-09 03:50:19 ot Exp $" ---><!--#set var="date" value="\$Date: 2005-12-09 03:50:19 $" +<!--#set var="revision" value="\$Id: index.html,v 1.56 2006-03-16 01:05:06 ot Exp $" +--><!--#set var="date" value="\$Date: 2006-03-16 01:05:06 $" --><!--#set var="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -179,6 +179,8 @@ All these documents should validate, without "pretty print" for the document typ <h3 id="invalid">Docs that are probably invalid</h3> + + <h4>Sample invalid documents</h4> <p><strong>we must FIX THIS!</strong> It's not reliable any more...</p> @@ -325,6 +327,44 @@ All these documents should validate, without "pretty print" for the document typ </ul> <h3 id="regress">Bugs and Regression Tests</h3> + + + <h4>global document warnings</h4> + <p>This section holds documents which should trigger global warnings - mime type, charset, document type issues.</p> + + <ul> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/textxml_nocharset.xml">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/textxml_nocharset.xml">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/textxml_nocharset.xml">view</a>: +text/xml resource with no charset - W01 + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_nocharset.html">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_nocharset.html">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_nocharset.html">view</a>: +text/html resource with no charset - W04 + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/textxml_html401.xml">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/textxml_html401.xml">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/textxml_html401.xml">view</a>: +text/xml resource with no charset - W07 + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_unknownparsemode.html.utf8">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_unknownparsemode.html.utf8">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_unknownparsemode.html.utf8">view</a>: + text/html Document using Custom DTD, unsure of SGML/XML parse mode - W08 + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_nodoctype.html.utf8">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_nodoctype.html.utf8">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/texthtml_nodoctype.html.utf8">view</a>: + text/html Document lacking DOCTYPE - W09 + </li> + </ul> + <p>These should be tied to a bug report on either mailing-list and/or bugzilla whenever possible.</p> <ul> diff --git a/htdocs/dev/tests/texthtml_nocharset.html b/htdocs/dev/tests/texthtml_nocharset.html new file mode 100644 index 0000000..0a16656 --- /dev/null +++ b/htdocs/dev/tests/texthtml_nocharset.html @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!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" xml:lang="en" lang="en"> + <head> + <title>test for text/html resource with no charset - W04</title> + </head> +<body> +<p>This test document corresponds to validator warning W04: +<code> +No Character Encoding Found! Falling back to (UTF-8). +</code> +</p> +</body> +</html> diff --git a/htdocs/dev/tests/texthtml_nodoctype.html.utf8 b/htdocs/dev/tests/texthtml_nodoctype.html.utf8 new file mode 100644 index 0000000..c46ea47 --- /dev/null +++ b/htdocs/dev/tests/texthtml_nodoctype.html.utf8 @@ -0,0 +1,17 @@ +<html> +<head> +<title>test for text/html Document lacking DOCTYPE - W09</title> + +</head> + +<body lang="en"> +<p>This test document corresponds to validator warning W09: +<code> +No DOCTYPE found! Attempting validation with HTML 4.01 Transitional. +</code> +(and parsing error 344) +</p> + +</body> +</html> + diff --git a/htdocs/dev/tests/texthtml_unknownparsemode.html.utf8 b/htdocs/dev/tests/texthtml_unknownparsemode.html.utf8 new file mode 100644 index 0000000..d7c0bee --- /dev/null +++ b/htdocs/dev/tests/texthtml_unknownparsemode.html.utf8 @@ -0,0 +1,31 @@ +<!DOCTYPE html SYSTEM "http://www.w3.org/Style/HTML40-plus-blink.dtd"> +<!-- + The above is a "custom" DTD, because the text below uses + <blink>, which isn't actually an HTML element. Including + <blink> is meant as a *joke*. Adding it to a DTD doesn't make + it any more standard or any more meaningful. DON'T CREATE + CUSTOM DTDs! +--> +<html> +<head> +<title>test for text/html Document using Custom DTD, unknown parse mode - W08</title> + +</head> + +<body lang="en"> +<p>This test document corresponds to validator warning W08: +<code> +Unknown Parse Mode! +</code> +</p> + +<p>This document is a subset of the <a href="http://www.w3.org/Style/">W3C Style</a> +homepage, using <a href="http://www.w3.org/Style/customdtd">Custom DTD</a> +allowing <blink>The nonstandard blink element</blink>. +</p> + +<p>It is valid against that particular DTD</p> + +</body> +</html> + diff --git a/htdocs/dev/tests/textxml_html401.xml b/htdocs/dev/tests/textxml_html401.xml new file mode 100644 index 0000000..bcc0f96 --- /dev/null +++ b/htdocs/dev/tests/textxml_html401.xml @@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<head> +<title>test for text/xml resource with no charset - W07</title> + </head> +<body> +<p>This test document corresponds to validator warning W07: +<code> +Contradictory Parse Modes Detected! +</code> +</p> +</body> + +</html> + diff --git a/htdocs/dev/tests/textxml_nocharset.xml b/htdocs/dev/tests/textxml_nocharset.xml new file mode 100644 index 0000000..8063feb --- /dev/null +++ b/htdocs/dev/tests/textxml_nocharset.xml @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!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" xml:lang="en" lang="en"> + <head> + <title>test for text/xml resource with no charset - W01</title> + </head> +<body> +<p>This test document corresponds to validator warning W01: +<code> +Missing "charset" attribute for "text/xml" document. +</code> +</p> +</body> +</html> |