Hey Mark, thanks for the informative article! I'm trying to implement your PHP code snippet on my sites. However, when I insert the code and then validate at validator.w3.org using "verbose output" as you suggest, I still get "text/html" rather than "application/xhtml+xml". If I just say 'header("Content-type: application/xhtml+xml");' then validator.w3.org reports "application/xhtml+xml" as we want, but then since that header is being served for all browsers my sites break in some of them. When I do more testing, it seems that the HTTP_ACCEPT value being sent by the validator is a null string, but that can't be right, right? I figure I must be doing something wrong. Any suggestions?
|