Re: [VE][47] A non-empty XHTML page with correct <?xml ... ?> header doesn't get validated at all

Hi Jukka,

On 16-May-08, at 11:50 AM, Jukka K. Korpela wrote:
>> Your server sends
>>
>>  Content-Type: application/xhtml+xml
>>  Content-Encoding: utf-8
>>
>> That is wrong.
>
> I missed that one... but technically, utf-8 is the default encoding  
> for
> application/xhtml+xml and the malformed Content-Encoding header should
> be ignored. So there's probably a bug to be fixed in the validator.
> Perhaps it somehow gets I/O error when trying to apply an undefined
> content encoding.

I would agree with your diagnosis. Unfortunately Ewgenij seems to have  
fixed the original problematic resource, and the issue went away. I  
note that the headers now sent for http://www.math.tu-berlin.de/coga/people/index.xhtml
have:
Content-Type: text/html; charset=utf-8
Content-Type: application/xhtml+xml; charset=utf-8
... which is wrong, but at least it doesn't trip up the validator as  
badly.

> Surely, but the validator should still be able to handle the  
> situation.

It would be great if someone can cook a reduced test case (e.g a  
little php script sending the offending header) and enter a bugzilla  
entry:
http://www.w3.org/Bugs/Public/enter_bug.cgi?product=Validator

Given how rare and pathological the issue is, I don't know if it  
should be solved in priority, but keeping a record of it would be  
valuable.

-- 
olivier

Received on Tuesday, 27 May 2008 13:00:37 UTC