- From: Nikodem <nikn1@gazeta.pl>
- Date: Wed, 26 Sep 2007 15:16:44 +0200
- To: www-validator@w3.org
Does validator even send application/xhtml+xml in Accept header?! It always complains that my page with such code: $xhtml = false; if(preg_match('/application\/xhtml\+xml(?![+a-z])(;q=(0\.\d{1,3}|[01]))?/i', $_SERVER['HTTP_ACCEPT'], $matches)) { $xhtmlQ = isset($matches[2])?$matches[2]:1; if($xhtmlQ!=0) $xhtml = true; } header('Content-Type: '.($xhtml?'application/xhtml+xml':'text/html').'; charset=utf-8'); has differences between Content-Type and DTD. -- Nikodem JID: nikn@jabber.org
Received on Wednesday, 26 September 2007 13:17:05 UTC