- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 28 Jul 2008 00:30:22 +0000
- To: www-validator-cvs@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5900 Summary: Dynamic Content-Type Product: Validator Version: HEAD Platform: All URL: http://validator.w3.org/ OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Parser AssignedTo: dave.null@w3.org ReportedBy: hannemanp@gmail.com QAContact: www-validator-cvs@w3.org 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"); This code works very well for actual browsers, but creates a warning if I try to validate the site. 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. Thanks for looking into this! - Peter Hanneman hannemanp@gmail.com -- 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 00:30:55 UTC