- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 28 Jul 2008 04:44:56 +0000
- To: www-validator-cvs@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5900
Olivier Thereaux <ot@w3.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ot@w3.org
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Olivier Thereaux <ot@w3.org> 2008-07-28 04:44:56 ---
(In reply to comment #0)
> I am serving an XHTML 1.1 Strict document via PHP. I use the fallowing PHP
> code to check if the browser supports the "application/xhtml+xml" content type
> and serve the appropriate type:
>
> header("Vary: Accept");
> if(stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml"))
> header("Content-Type: application/xhtml+xml; charset=utf-8");
> else
> header("Content-Type: text/html; charset=utf-8");
You could send application/xhtml+xml if no Accept: is sent, and only send as
text/html for agents that send an Accept: but do not include
application/xhtml+xml.
> This code works very well for actual browsers, but creates a warning if I try
> to validate the site.
The warning has been removed from the version to be released.
http://qa-dev.w3.org/wmvs/HEAD/
This is because your site doesn't provide the proper
> information in it's HTTP header. I know this is a minor bug, but it's
> frustrating having perfect markup, but still having that one error pop up every
> time.
Warning, not error. Also, if that really frustrates you, you may want to look
into
http://validator.localhost/docs/users.html#option-accept
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 28 July 2008 04:45:31 UTC