Skip to main content
Participant
February 20, 2007
Question

Quirks Mode and CF

  • February 20, 2007
  • 3 replies
  • 301 views
Cold Fusion is returning the following comment at the top of the page for a site I am developing -- <!-- Admin template --> and thereby causing IE to go into quirks mode and screw up my css.

I've taken this same page, ran it in firefox, copy and pasted the html, and created a new cf document with it. Oddly, even this page is returning the comment in the first line (i.e. this version has no cold fusion code in it).

Any ideas what might be causing this? Is it a server side issue?

ps. I should have added that the html and css are both validating....

Thanks
    This topic has been closed for replies.

    3 replies

    dcomdicoAuthor
    Participant
    February 21, 2007
    Thanks so much. It turned out there was an html comment in application.cfm.
    Inspiring
    February 20, 2007
    Check any application.cfm pages or application.cfc/onRequestStart() methods that you have associated with the directory (or parent directory) you are working in. That would be one of the only things that would be including anything into your CFM document without any include code.
    Inspiring
    February 20, 2007
    Man, Ian, you are FAST with your responses.
    Inspiring
    February 20, 2007
    Do you have an Application.cfm or Application.cfc in the same directory
    or any parent directory as the file you are running with that string in it.

    These files are automatically included with any file that is run in the
    matching directories and they can add code to the resulting output. It
    is their purpose in life to do things for every template in an application.