diff options
author | ot <ot@localhost> | 2008-01-17 08:08:17 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2008-01-17 08:08:17 +0000 |
commit | 68a39d805cb15ead3a3f7691c00c1287aa2f2528 (patch) | |
tree | 0dd1c4cbdcb7007eb2c046b58b1e8674535848a2 | |
parent | 8a6ad96a0d44dce4647037b9030191bbf4367a11 (diff) | |
download | markup-validator-68a39d805cb15ead3a3f7691c00c1287aa2f2528.zip markup-validator-68a39d805cb15ead3a3f7691c00c1287aa2f2528.tar.gz markup-validator-68a39d805cb15ead3a3f7691c00c1287aa2f2528.tar.bz2 |
tests for Bug 4848: warn about incorrect public/system identifiers combinations
-rwxr-xr-x | htdocs/dev/tests/4848-html40-transitional_FPI-SI-mismatch.html | 22 | ||||
-rwxr-xr-x | htdocs/dev/tests/4848-xhtml1-strict_FPI-SI-mismatch.xhtml | 21 | ||||
-rwxr-xr-x | htdocs/dev/tests/index.html | 17 |
3 files changed, 58 insertions, 2 deletions
diff --git a/htdocs/dev/tests/4848-html40-transitional_FPI-SI-mismatch.html b/htdocs/dev/tests/4848-html40-transitional_FPI-SI-mismatch.html new file mode 100755 index 0000000..0b6c33b --- /dev/null +++ b/htdocs/dev/tests/4848-html40-transitional_FPI-SI-mismatch.html @@ -0,0 +1,22 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html> + +<head> + <title>test HTML 4.01 Transitional document</title> + <meta name="revision" + content="$Id: 4848-html40-transitional_FPI-SI-mismatch.html,v 1.1 2008-01-17 08:08:17 ot Exp $"> +</head> + +<body> + +<p> +This is a test HTML 4.01 Transitional document. In the Doctype declaration, the System Identifier is the wrong one (refers to XHTML1…). +</p> + + + +</body> + +</html> + diff --git a/htdocs/dev/tests/4848-xhtml1-strict_FPI-SI-mismatch.xhtml b/htdocs/dev/tests/4848-xhtml1-strict_FPI-SI-mismatch.xhtml new file mode 100755 index 0000000..1afa98b --- /dev/null +++ b/htdocs/dev/tests/4848-xhtml1-strict_FPI-SI-mismatch.xhtml @@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dt"> +<?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> + <meta name="revision" + content="$Id: 4848-xhtml1-strict_FPI-SI-mismatch.xhtml,v 1.1 2008-01-17 08:08:17 ot Exp $" /> +</head> + +<body> + +<p> +This is a test XHTML 1.0 Strict document. In the Doctype declaration, the System Identifier is 404. +</p> + +</body> + +</html> + diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index 5eb8b91..e5bea40 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.100 2007-12-19 05:44:04 ot Exp $" ---><!--#set var="date" value="\$Date: 2007-12-19 05:44:04 $" +<!--#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="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -366,6 +366,19 @@ All these documents should validate, without "pretty print" for the document typ <a href="texthtml_unknownparsemode.html">view</a>: document served as <code>text/html</code>, using a custom DTD and for which parse mode is impossible to determine via generic heuristics (triggers warning W06) </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4848-xhtml1-strict_FPI-SI-mismatch.xhtml">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4848-xhtml1-strict_FPI-SI-mismatch.xhtml">with v.w.o</a> - + <a href="4848-xhtml1-strict_FPI-SI-mismatch.xhtml">view</a>: + FPI/SI doctype declaration mismatch (system Id refers to a 404) + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4848-html40-transitional_FPI-SI-mismatch.html">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4848-html40-transitional_FPI-SI-mismatch.html">with v.w.o</a> - + <a href="4848-html40-transitional_FPI-SI-mismatch.html">view</a>: + FPI/SI doctype declaration mismatch (html 4 doc with system Id refers to xhtml) + </li> + <li> <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/shorttags.html">validate</a> - <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/shorttags.html">with v.w.o</a> - |