Forum Moderators: open
I seem to have landed on a rather sticky problem.
My coldfusion web site(s) are only displaying on IE7. Worked fine until recently. If displayed on IE6 I get nothing but xhtml code.
I have read the thread on [webmasterworld.com...]
but still no joy.
My page is validating on the w3c site and sent by my host as as txt/html (according to IEwatch)
I dont really undertand too mych about header information as I come fromt he design and marketing end but find the technical stuff more interesting.
I've readup on this what I can find but am at a loss as to why this has suddenly started happening.
It only happens on the live servers (served by crystaltech.com) and renders perfectly from my own server on my own network.
This is my DTD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
with the xml prologue shown below removed
<?xml version="1.0" encoding="utf-8"?>
Can anyone point me in the right direction on this as my host is quite indifferent to assisting and quite hapy to blame my "coding".
A couple of questions to start with:
1. What does Firefox do with the file? In FF, press Ctrl+I (Page Info), what "Type" is mentioned?
2. IE does mime-type sniffing, but it shouldn't happen in this instance. Does your file have a file extension or .xml, .html, or something else?
3. Are you using standard (X)HTML or any non-standard XML syntax in your page?
4. What happens when you temporarily remove the doctype?
You might want to check out some of the MS documentation:
1) The type from FF (version 2.0.0.1) is text/html
(CTRL-I just bought up bookmarks though ;-) )
2)file extensions are .cfm
3) I believe my XHTML is standard. Document type is XHTML1.0 Strict, Which validates)
4) temporarily removing the doctype stops the page being displayed entirely. Error message is
XML page cannot be displayed
Cannot view XML input using XSL Style Sheet. Please correct the error and then click the refresh button or try again later.