diff options
author | ot <ot@localhost> | 2008-02-04 03:18:54 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2008-02-04 03:18:54 +0000 |
commit | 43f77809016e4dcce444bf356dea955ded48c42a (patch) | |
tree | 1017b2aa4fea2986f3fa2517efaa61075f372f60 /htdocs/dev/tests | |
parent | 59ea2ac9b457714bf66a61778df76359b641c56c (diff) | |
download | markup-validator-43f77809016e4dcce444bf356dea955ded48c42a.zip markup-validator-43f77809016e4dcce444bf356dea955ded48c42a.tar.gz markup-validator-43f77809016e4dcce444bf356dea955ded48c42a.tar.bz2 |
adding a few tests for XHTML 1.0 appendix C
Diffstat (limited to 'htdocs/dev/tests')
-rwxr-xr-x | htdocs/dev/tests/index.html | 29 | ||||
-rwxr-xr-x | htdocs/dev/tests/xhtml1-appc-empty.html | 25 | ||||
-rwxr-xr-x | htdocs/dev/tests/xhtml1-appc-emptycontent.html | 23 | ||||
-rwxr-xr-x | htdocs/dev/tests/xhtml1-appc-xmldecl.html | 25 |
4 files changed, 99 insertions, 3 deletions
diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index e5bea40..2269780 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.101 2008-01-17 08:08:17 ot Exp $" ---><!--#set var="date" value="\$Date: 2008-01-17 08:08:17 $" +<!--#set var="revision" value="\$Id: index.html,v 1.102 2008-02-04 03:18:53 ot Exp $" +--><!--#set var="date" value="\$Date: 2008-02-04 03:18:53 $" --><!--#set var="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -386,7 +386,30 @@ All these documents should validate, without "pretty print" for the document typ sample HTML 4 document using the (valid, but problematic) shorttags features </li> </ul> - +<h4 id="appc">Valid XHTML 1.0 documents not conforming to HTML compatibility Guidelines</h4> +<p>The XHTML 1.0 spec states: <q cite="http://www.w3.org/TR/xhtml1/#media">XHTML Documents which follow the guidelines set forth in Appendix C, "HTML Compatibility Guidelines" may be labeled with the Internet Media Type "text/html" [RFC2854], as they are compatible with most HTML browsers. </q>. It's really unclear as to whether this is a real conformance issue, but regardless there is demand for sending at least warnings when a text/html XHTML 1.0 document does not follow these guidelines.</p> +<ul> +<li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-appc-xmldecl.html;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-appc-xmldecl.html;ss">with v.w.o</a> - + <a href="xhtml1-appc-xmldecl.html">view</a>: + C1: XML Declaration +</li> +<li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-appc-empty.html;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-appc-empty.html;ss">with v.w.o</a> - + <a href="xhtml1-appc-empty.html">view</a>: + C2: empty elements and minimized form +</li> +<li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-appc-emptycontent.html;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-appc-emptycontent.html;ss">with v.w.o</a> - + <a href="xhtml1-appc-emptycontent.html">view</a>: + C3: Element Minimization and Empty Element Content +</li> +</ul> + + <h4 id="wrong_mime">Valid Documents served with a wrong media type</h4> <ul> <li> diff --git a/htdocs/dev/tests/xhtml1-appc-empty.html b/htdocs/dev/tests/xhtml1-appc-empty.html new file mode 100755 index 0000000..4d035c4 --- /dev/null +++ b/htdocs/dev/tests/xhtml1-appc-empty.html @@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<?xml-stylesheet href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" type="text/css"?> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + +<head> + <title>test XHTML 1.0 Strict document</title> + <link rev="made" href="mailto:gerald@w3.org" /> + <meta name="revision" + content="$Id: xhtml1-appc-empty.html,v 1.1 2008-02-04 03:18:54 ot Exp $" /> +</head> + +<body> + +<p> +This is a test XHTML 1.0 Strict document. +Per <a href="http://www.w3.org/TR/xhtml1/#C_2" title="XHTML 1.0: The Extensible HyperText Markup Language (Second Edition)">XHTML1 spec, appendix C2 empty elements should be using the minimized syntax.</a> +The following is thus not allowed per the HTML compatibility Guidelines <br></br> +</p> + + +</body> + +</html> + diff --git a/htdocs/dev/tests/xhtml1-appc-emptycontent.html b/htdocs/dev/tests/xhtml1-appc-emptycontent.html new file mode 100755 index 0000000..f8da1c5 --- /dev/null +++ b/htdocs/dev/tests/xhtml1-appc-emptycontent.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<?xml-stylesheet href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" type="text/css"?> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + +<head> + <title>test XHTML 1.0 Strict document</title> + <link rev="made" href="mailto:gerald@w3.org" /> + <meta name="revision" + content="$Id: xhtml1-appc-emptycontent.html,v 1.1 2008-02-04 03:18:54 ot Exp $" /> +</head> + +<body> + +<p> +This is a test XHTML 1.0 Strict document. +Per <a href="http://www.w3.org/TR/xhtml1/#C_3" title="XHTML 1.0: The Extensible HyperText Markup Language (Second Edition)">XHTML1 spec, appendix C3 non-empty-type elements should not be using the minimized syntax.</a> +The following is thus not allowed per the HTML compatibility Guidelines: </p> <p /> + +</body> + +</html> + diff --git a/htdocs/dev/tests/xhtml1-appc-xmldecl.html b/htdocs/dev/tests/xhtml1-appc-xmldecl.html new file mode 100755 index 0000000..8462963 --- /dev/null +++ b/htdocs/dev/tests/xhtml1-appc-xmldecl.html @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<?xml-stylesheet href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" type="text/css"?> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + +<head> + <title>test XHTML 1.0 Strict document</title> + <link rev="made" href="mailto:gerald@w3.org" /> + <meta name="revision" + content="$Id: xhtml1-appc-xmldecl.html,v 1.1 2008-02-04 03:18:54 ot Exp $" /> +</head> + +<body> + +<p> +This is a test XHTML 1.0 Strict document. +Per <a href="http://www.w3.org/TR/xhtml1/#C_1" title="XHTML 1.0: The Extensible HyperText Markup Language (Second Edition)">XHTML1 spec, appendix C1: For compatibility with these types of legacy browsers, you may want to avoid using processing instructions and XML declarations. +</p> + + +</body> + +</html> + |