views:

83

answers:

1

Here is the DOCTYPE and XML declaration that I am using:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;

But still IE7 is always going to quirks mode...

Does anyone have any idea as to why?

Thanks in advance!

+1  A: 

If you have anything before the DOCTYPE apart from the XML prolog, then you will trigger quirks mode in IE7. This includes white space and comments.

The XML prolog will only trigger quirks mode in IE6.

Rupert
Grrr..thank you thank you! This is my first Java environment and we were declaring the java libraries before the doctype...works as expected now. Thanks again! StackOverflow rules!
ThePixelProdigy