This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I played with content-type to see how browsers parse these headers. Unfortunately I found that validator refuse to validate the document with this header mentioned in summary. My code: <?php header("Content-Type:\n application/xhtml+xml"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> . . . </html> As far as I know HTTP1.1 allow the multi-lined headers. Quote from http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html 2.2 Basic Rules "HTTP/1.1 header field values can be folded onto multiple lines if the continuation line begins with a space or horizontal tab. All linear white space, including folding, has the same semantics as SP. A recipient MAY replace any linear white space with a single SP before interpreting the field value or forwarding the message downstream." So I suppose my code is good. I did some test and I found that Validator accepts the file if I change the \n to \r... Here are my test results: Firefox 1.5 \r | 13 | CR HTML \n | 10 | LF XML standard XML OPERA 9.0 \r | 13 | CR XML \n | 10 | LF XML standard XML IE 6.0 \r | 13 | CR HTML \n | 10 | LF HTML standard - W3 VALIDATOR \r | 13 | CR XML \n | 10 | LF refuse standard XML Sorry if I have a mistake... :/
I think you're right, thanks for the sample URL. Fixed in CVS: http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F%2Fspacergif.net%2F2006%2F08%2F02%2Fcontent-type-lf.php http://qa-dev.w3.org/wmvs/0.7/check?uri=http%3A%2F%2Fspacergif.net%2F2006%2F08%2F02%2Fcontent-type-lf.php http://www.w3.org/mid/E1G9Igf-0002Hh-My%40lionel-hutz.w3.org http://www.w3.org/mid/E1G9Ifn-0001z6-Ve%40lionel-hutz.w3.org