Topic: XHTML page started to display as XML-tree in IE (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: Odessa, Ukraine |
posted 06-25-2004 12:46
The site wortked fine using XHTML files with .htm extention. |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 06-25-2004 13:27
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 06-25-2004 19:20
either get a logging proxy, or use httplook (free trial) |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 06-25-2004 19:57
mactep: Yep I've had this kind of problem with IE and XHTML - when something goes wrong it can (for some reason) start parsing the page as XML. Two things that could be causing the problem: |
Bipolar (III) Inmate From: Cold Sweden |
posted 06-26-2004 12:39
I don't really know why the problem appears, but after some tests I think I know what's causing it. The comment declaration after the XML declaration seems to do it. Probably because it contains some non-ASCII characters or something like that. Unfortunately, I don't have time to look further into it, and I don't know if this is a known problem. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 06-26-2004 14:04
HZR: I suspect its because the DOCTYPE doesn't specify that comments can be outside the HTML tag. I suspect some browsers will ignore it but some won't it appears. |
Bipolar (III) Inmate From: Cold Sweden |
posted 06-26-2004 14:35
Well, comment declarations _can_ appear outside the HTML element, and this is not something the DTD (I think you meant that - not the DOCTYPE) can specify. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 06-27-2004 04:17
HZR: Ahhhhh right OK - I suppose the sign that it works fine in Opera and Moz is a sign its IE doing its own special weird thing |
Bipolar (III) Inmate From: Minnesota |
posted 07-09-2004 22:57
The problem is that IE chokes on the xml declaration on the first line. It reads that and thinks its an xml file and starts to parse it. IE doesn't look at content headers from the server to determine what to do, it looks at file contents, which is why there has been a lot of problems lately. |