- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 15 Aug 2007 01:31:58 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/htdocs/dev/tests In directory hutz:/tmp/cvs-serv22512 Modified Files: index.html Added Files: charset_mismatch-http_meta.html.utf8 charset_mismatch-http_xmldec.xhtml.utf8 Log Message: adding tests for charset mismatch --- NEW FILE: charset_mismatch-http_meta.html.utf8 --- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>ünti†lø∂</title> </head> <body> <p>This UTF-8 encoded document (served via HTTP as UTF-8) declares its charset as being iso-8859-1 (in the head meta elements). HTTP has precedence and the parsing should proceed properly as utf-8, with a warning about the HTTP/meta charset mismatch.</p> </body> </html> Index: index.html =================================================================== RCS file: /sources/public/validator/htdocs/dev/tests/index.html,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- index.html 6 Aug 2007 05:40:34 -0000 1.82 +++ index.html 15 Aug 2007 01:31:55 -0000 1.83 @@ -484,6 +484,19 @@ <li><a href="../../check?uri=http://www.vir.si/">windows-1250 encoded document (Slovenian)</a></li> <li><a href="../../check?uri=http://www.w3.org/TR/ruby/">utf-8 encoded document</a></li> <li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/plane20-char.xml">XML file with a "Plane 20" character (bogus).</a></li> + + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/charset_mismatch-http_xmldec.xhtml.utf8;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/charset_mismatch-http_xmldec.xhtml.utf8;ss">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/charset_mismatch-http_xmldec.xhtml.utf8">view</a>: + Charset mismatch: HTTP Content-Type and XML Declaration (sends warning, proceed with HTTP and pass) + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/charset_mismatch-http_meta.html.utf8;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/charset_mismatch-http_meta.html.utf8;ss">with v.w.o</a> - + <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/charset_mismatch-http_meta.html.utf8">view</a>: + Charset mismatch: HTTP Content-Type and meta http-equiv (sends warning, proceed with HTTP and pass) + </li> </ul> <h3 id="errors">Error conditions & strange cases</h3> --- NEW FILE: charset_mismatch-http_xmldec.xhtml.utf8 --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>ünti†lø∂</title> </head> <body> <p>This UTF-8 encoded document (served via HTTP as UTF-8) declares its charset as being iso-8859-1 (in the XML decl). HTTP has precedence and the parsing should proceed properly as utf-8, with a warning about the HTTP/XMLdecl charset mismatch.</p> </body> </html>
Received on Wednesday, 15 August 2007 01:32:00 UTC