- From: Sierk Bornemann <sierkb@gmx.de>
- Date: Fri, 20 Jul 2007 12:51:12 +0200
- To: Olivier Thereaux <ot@w3.org>
- Cc: www-validator Community <www-validator@w3.org>
Am 20.07.2007 um 05:10 schrieb Olivier Thereaux via cvs-syncmail:
>
> Update of /sources/public/validator/htdocs
> In directory hutz:/tmp/cvs-serv25398/htdocs
>
> Modified Files:
> header.html
> Log Message:
> Since we are (still) serving as text/html:
> * removing the potentially problematic xml decl
> http://www.w3.org/International/articles/serving-xhtml/
> Overview.en.php#declaration
>
> Index: header.html
> ===================================================================
> RCS file: /sources/public/validator/htdocs/header.html,v
> retrieving revision 1.50
> retrieving revision 1.51
> diff -u -d -r1.50 -r1.51
> --- header.html 17 Jul 2007 05:17:56 -0000 1.50
> +++ header.html 20 Jul 2007 03:10:56 -0000 1.51
> @@ -1,9 +1,9 @@
> -<?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">
I think, this is only useful if *only* serving as text/html as of today.
If serving as both, text/html or application/xhtml+xml (maybe in
future releases), I suggest the following:
.htaccess:
BrowserMatchNoCase "MSIE [4-6]\.[0-9]" IELegacy
header.html:
<!--#if expr="${IELegacy}" --><!--#else --><?xml version="1.0"
encoding="utf-8"?>
<!--#endif --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Since the validator uses SSI and IE < version 7 seems to be the only
one browser out there, which makes problems, this solution is very
easy to be implemented, and it works very well. :-)
--
Sierk Bornemann
email: sierkb@gmx.de
WWW: http://sierkbornemann.de/
Received on Friday, 20 July 2007 10:52:21 UTC