Topic: XHTML page started to display as XML-tree in IE (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: Odessa, Ukraine |
![]() The site wortked fine using XHTML files with .htm extention. |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() either get a logging proxy, or use httplook (free trial) |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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. |