
Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
> I believe the problem is that IE doesn't support XHTML and treats it as
> HTML.
Don't believe this :) IE supports XHTML 1.1
The problem is that IE does not support a single character before the
DOCTYPE declaration. In your case this is "<?xml version="1.0"
encoding="utf-8"?>
" instruction that spoils the whole thing.
Remove everything before DOCTYPE, even a comment would be enough for IE to
get ignorant to your DOCTYPE.
THE question to MS guys is: why'o'why is this so...fragile?!
Oh man, I've spent an hour to find it out. It ran me nuts.

Signature
Eugene U. Zverev,
Senior Programmer
Herfried K. Wagner [MVP] - 17 Jan 2006 18:27 GMT
"e_zverev" <ezverev@discussions.microsoft.com> schrieb:
>> I believe the problem is that IE doesn't support XHTML and treats it as
>> HTML.
> Don't believe this :) IE supports XHTML 1.1
Not really. It supports XHTML 1.0/1.1 if it is provided as 'text/html' and
treats it as normal HTML. However, XHTML 1.1 is not indended to be made
available as 'text/html'. 'application/xhtml+xml' should be used as content
type for XHTML 1.1 documents instead.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Joubert Nel - 17 Jan 2006 20:28 GMT
Hello Eugene,
Some feedback inline.
Thanks
Joubert
>> I believe the problem is that IE doesn't support XHTML and treats it as
>> HTML.
> Don't believe this :) IE supports XHTML 1.1
From what I can gather on both MS and other sites (for example
http://blogs.msdn.com/ie/archive/2005/09/15/467901.aspx) this is not the
case.
For example, try to actually load XHTML into IE and then do a View Source.
Note the changes it makes
> The problem is that IE does not support a single character before the
> DOCTYPE declaration. In your case this is "<?xml version="1.0"
[quoted text clipped - 7 lines]
>
> Oh man, I've spent an hour to find it out. It ran me nuts.