Forum Moderators: open

Message Too Old, No Replies

IE6 showing only the XHTML code

Cant fathom reason. Neigter can my host

         

Nightfall

5:07 pm on Apr 29, 2007 (gmt 0)

10+ Year Member



Hi all,

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".

DanA

5:24 pm on Apr 29, 2007 (gmt 0)

10+ Year Member



Do you have
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />
in the head section?

encyclo

6:12 pm on Apr 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Nightfall. :)

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:

  • Internet Explorer MIME Handling Enforcement [microsoft.com]
  • Nightfall

    6:14 pm on Apr 29, 2007 (gmt 0)

    10+ Year Member



    Thanks for the reply DanA

    I had to take out the iso reference because the W3C validators were displaying warnings about it (because the header info fromt he host said the document was served as a utf-8 document)

    Nightfall

    6:24 pm on Apr 29, 2007 (gmt 0)

    10+ Year Member



    Thanks encyclo

    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.

    Nightfall

    6:32 pm on Apr 29, 2007 (gmt 0)

    10+ Year Member



    encyclo.. I dont think the issue is related to XP service pack 2. For got to mention, my test machines are using windows 98 running IE6

    other people who have received just the code not the page are using IE6 on XP

    Problem seems to be accros the board