|
I can test if a page is being validated by the W3C, and alter the MIME type accordingly (see below; pardon the line breaks). But that's stupid.
I infer, however, that there is no other way to get the validator to see the web page as application/xhtml+xml and not break the page in ie6. Am I missing something?
<?php
if ((isset($_SERVER["HTTP_ACCEPT"]) and
stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) or
stristr($_SERVER["HTTP_USER_AGENT"], "W3C_Validator") )
{
header("Content-type: application/xhtml+xml");
print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
}
else
{
header("Content-type: text/html; charset=utf-8");
}
?>
|