views:

213

answers:

4

I'm working within the parameters of an un-reachable developer, whom has created an html generation system for our products.. Whenever a new page is generated he places:

<!-- updated page at 05/MAY/2010 02:58.58 -->
<!-- You must use the template manager to modify the formatting of this page. --> 

resulting in my code looking like:

<!-- updated page at 05/MAY/2010 02:55.30 -->
<!-- You must use the template manager to modify the formatting of this page. -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

I don't believe IE read's this doctype at all, as when looking at the developer screen, it renders in Quirks mode... is there any other way to force IE out of this horrible Quirks mode? I've been trying to reach the developer but he has been rather un-available..

Thank you in advance for any help you might have to offer.

//EDIT:

Is this possible to do via javascript, to hit the parent page with an on load command?

A: 

How are the pages being generated?

If you are using PHP, you could use output buffering to keep the template comments from being output.

George Edison
Sadly i have 0 control on how they are even being generated :/ I hit build, and the html pages are built, and I'm stuck with whatever is on the page, I can re-build but that comment is consistently sticking on top.
Frederico
+2  A: 

There is nothing you can do. Your content management system is failing. You either need to find the developer and have them fix this faulty system or get a new content management system.

bummer.. i'll continue my email spree. Thank you
Frederico
A: 

If you are stuck with that code, then why not add a last step to the build process, one that strips these comments?

Sean Kinsey
+1  A: 

You can force IE to use standards mode by adding

<meta http-equiv="X-UA-Compatible" content="IE=8" />

to the beginning of your head section for the HTML, or you can add the equivalent HTTP header via server configuration. This will only work on IE8 or above, however.

jrduncans